LInux own service (command)

First, the mode of operation

Here Insert Picture Description
the init
Here Insert Picture Description
the init run level corresponds to the configuration file: inittab
View: #cat / etc / inittab
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
① switch to the command mode pure
# init3
Here Insert Picture Description
② switch back to the desktop
# init5
③ not permanently setting mode command mode
Here Insert Picture Description

Second, the user and user group management

Three profiles
/ etc / passwd store user information
/ etc / group store user group information
/ etc / shadow store password information
Here Insert Picture Description

1, user management

Add User ①
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
② modify user
Here Insert Picture Description
Here Insert Picture Description
③ set a password
Here Insert Picture Description
to view the password settings: # tail -3 / etc / Shadow
Here Insert Picture Description
④ delete user
Here Insert Picture Description
#userdel -r username
Here Insert Picture Description

2, user group management

Here Insert Picture Description
Here Insert Picture Description
Adding user groups ①
Here Insert Picture Description
Here Insert Picture Description
② user group editing
Here Insert Picture Description
③ remove a user group
#groupdel User Group Name
Here Insert Picture Description

Third, the network settings

NIC configuration file locations:
/ etc / sysconfig / Network-scripts
Here Insert Picture Description
Here Insert Picture Description

Restart card
method 1: service network restart
Method 2: # / etc / init.d / Network restart
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
== extensions: Create Shortcut (soft link)
Syntax: Path #ln -s original file path shortcut
Here Insert Picture Description
to restart when a card
# eth0 ifdown
#ifup eth0
Here Insert Picture Description

Four, ssh service

Here Insert Picture Description
Here Insert Picture Description
Remote terminal tool
Xshell, secureCRT, Putty
file transfer tools: Filezilla
Here Insert Picture Description
Here Insert Picture Description

Extended 3: transfer files via the command-line tool

Tools: PSCP.exe
Here Insert Picture Description
downloaded to Windows
Here Insert Picture Description
uploaded to Linux
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_41141058/article/details/89413073