Three major systems:
1,linux 2Windows 3 Unix
A shutdown, reboot some settings
Shutdown-h now "shut down immediately"
or Poweroff.
Shutdown-h 10 "Shut down after 10 minutes"
Shutdown-h 22:30 "22:30 shutdown"
Init 0 shutdown
Shutdown-r Now "reboot immediately"
or reboot.
Shutdown-r 10 "10-minute reboot"
Shutdown-r 22:30 "22;30 Restart"
Init 6 Restart
Shutdown-c "Cancel shutdown restart Settings"
Two virtual consoles
CTRL+ALT+F2 "First Virtual Console"
Ctrl+alt+f1 "Back to the first Virtual Console"
1 The corresponding introduction
[Email protected] ~]#
Root indicates the current user name
LocalHost indicates the current host name
~ Indicates the current directory
Indicates the user logged in
2 Basic View command word
[[email protected] ~]# whoami "View Current User"
Root
[[email protected] ~]# su-chen "Switch User"
[Email protected] ~]$
[[email protected] ~]# hostname-s "View host name"
localhost
Three: Command format
command word [options] [parameters]
The command word indicates the specific command to complete the corresponding operation
Options indicate the requirements of the command
Parameters represent the objects that the command acts on
[] Indicates an option, see the specific situation
四:常用命令
1 Directory class commands
PWD "View current directory"
mkdir "Create directory"
CD directory Name "Go to Directory"
Cd.. "Back to top level"
Cd.. /.. "Return to the upper level of the previous level"
CD/"Go straight back to the root directory"
mkdir xixi haha "can create multiple directories, spaces separated"
RmDir xixi haha "can delete multiple directories, spaces separated"
Cd-p 6/66/666 "can open the specified directory, enter the corresponding directory"
Du statistics directory and spatial usage of files
-a "show all sizes of files in bytes"
-H "Display information in more readable byte units (k,m)"
-S "show the size of all files"
Basic knowledge of Linux in three major systems