Network commands in linux

write explain Command name: write Command path / usr/bin/write Execute permission: all users Function Description: send information to the user, and save with Ctrl+D grammar Write < user name > Example # Send a message to tenentity write eternity [root@izm5e2q95pbpe1hh0kkwoiz ~]# write eternity write: eternity is logged in more than o ...

Posted by pdpullmn612 on Wed, 19 Feb 2020 04:49:04 -0800

Custom systemctl management service

Brief introductionsystemd is to control power on service, power on level and other functions by means of management unit.In / usr/lib/systemd/system directory, there are various unit files, including service unit with service suffix, power on level unit with target suffix, etc. here are the files about service suffix. Because system D needs t ...

Posted by baennaeck on Thu, 06 Feb 2020 01:46:46 -0800

15 basic 'ls' command examples in Linux

ls command is one of the most commonly used commands in Linux. If you're right, the ls command is the first command the entrant uses to enter the Linux Box command prompt. We may not know or use all the available ls options, but we use ls commands frequently every day. In this article, we'll discuss the basic ls commands, and try to cover as ma ...

Posted by twinedev on Tue, 12 Nov 2019 00:42:39 -0800

Startup, shutdown and view of firewall and selinux under Linux

Under CentOS7.X: 1. firewall View firewall status: [root@localhost sunan]# systemctl status firewalld.service ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: man:firewalld(1) Where Active is inactive ( ...

Posted by kts on Mon, 21 Oct 2019 08:16:16 -0700

sort and uniq: sorting tools for Shell programming

This article mainly writes some shell script sorting tools. sort Summary Sort is a tool to sort the contents of files in behavioral units, or according to different data types. usage sort parameter -f: ignore case-b: ignore the space before each line-M: sort by month-n: sort by number-r: reverse sort-u: equivalent to uniq, indicating that o ...

Posted by Bluemercury on Wed, 16 Oct 2019 14:01:17 -0700

The second week assignment of Linux Basic Introduction [Linux Micro Position]

1. What are the file management commands on Linux, their common usage methods and related examples.1. Directory management class commands:mkdir: Create directoriesCommon parameters:- p: Automatically create parent directory on demand- v: Display the detailed process- m MODE: Given permissions directly[root@localhost ~]# mkdir -pv ...

Posted by JoeZ on Tue, 02 Jul 2019 15:27:47 -0700

Introduction to the Use of System CTL Tools

Systemctl is a system D tool, which is mainly responsible for controlling the system D system and service manager. Systemd is a collection of system management daemons, tools, and libraries that replace the initial process of System V. Systemd's function is to centrally manage and configure UNIX-like systems. In the Linux ecosystem, ...

Posted by Yucky on Fri, 24 May 2019 15:33:34 -0700

Shell commands - head, tail for file and content processing

File and content processing - head, tail 1. head: Display the file content header Functional description of head command The head command is used to display the contents of the file header. By default, executing the head command will output 10 lines at the beginning of the file. The grammatical format of the head command head [OPTION]... [ ...

Posted by Robert07 on Wed, 15 May 2019 22:47:48 -0700

Linux virtual machine suddenly failed to start: Failed to start LSB: Bring up/down networking.

The newly installed virtual machine suddenly can't access the Internet. The error reporting is very weird. The specific error reporting is as follows: /etc/init.d/network restart Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "jou ...

Posted by CoderGoblin on Tue, 12 Feb 2019 21:15:19 -0800

linux Learning Lesson 28

Catalog 1 awk command 1 awk command Copy exercise files [root@worker1 dir9]# cp /etc/passwd ./testpasswd Print the first field [root@worker1 dir9]# head -n2 testpasswd | awk -F ':' '{print $1}' ROOT bin Print entire line [root@worker1 dir9]# head -n2 testpasswd | awk -F ':' '{print $0}' ROOT:x:0:0:roooot:/root:/bin/ ...

Posted by stickynote427 on Wed, 30 Jan 2019 21:06:14 -0800