Start using CentOS:
Command prompt:
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/A7/10/wKioL1ngKUOBsHRKAAAKntIq2Mw744.png-wh_500x0-wm_ 3-wmp_4-s_3996843202.png "title=" 1.png "alt=" Wkiol1ngkuobshrkaaakntiq2mw744.png-wh_50 "/>
[Email protected] ~]#
Root: The name of the user account that is currently successfully logged on to the system
localhost: The host name part of the current host name;
~: Working directory for current user operation, ~ meaning home directory
#: User's identity prompt
#: Represents the identity of super users
$: Indicates normal user identity
Format of the command:
COMMAND OPTIONS ARGUMENT
Command option Parameters
COMMAND: The action that you want to perform, the process that you want to initiate
Internal command: Also called BUILTIN command or built-in command, directly built with shell commands
External commands: Commands installed by installing certain applications
OPTIONS: An integral part of correcting the execution effect of a command
Short options:
-char
-a,-b,-i,...
Some special commands also have special short options:
+char
+c,...
When you use multiple short options at the same time, you can combine them in writing, such as:
-a-b-I. <=>-abi
Long options:
--word
--help,--all,--verbose,--list,...
Note: It is not possible to combine writing when there are multiple long options in one command;
Attention:
1, some options, the options themselves need parameters;
2, some special commands in the writing options, you can not write "-"; some special commands, when writing options, must not write "-";
3, some special command of the long option, can only use a "-";
ARGUMENT (PARAMETERS): Object of the operation target of this execution command
Note: 1, some commands do not need to write parameters;
2, some commands must write parameters;
3, some commands must write several parameters;
For the entire command format:
Note: 1. The command, OPTIONS, and agument must be spaced with at least one white-space character when writing the order format;
2. In the execution of some orders, options and agument can exchange positions;
3. Due to the limitation of the file system, the command part, the options part and the agumrnt part of the order must be case-sensitive.
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/A7/10/wKioL1ngLKaTEeGzAACayPEiFC0378.png-wh_500x0-wm_ 3-wmp_4-s_1194415371.png "title=" 2.png "alt=" Wkiol1nglkateegzaacaypeifc0378.png-wh_50 "/>
There must be spaces (at least one space) between commands, adding options and parameters to decorate and adjust the commands to show more accurate results.
Simple System Management Class commands:
Logout: Just log out, other programs may not be interrupted
Exit
Logout
Ctrl+d
Reboot: will run in memory so the process shuts down, shuts down the system kernel, recharges all computer parts, loads the kernel, launches the application, prints the login prompt
Reboot
Shutdown-r (reboot)-T (time, reboot after how many minutes) #|now|time (recommended)
#: number that represents the relative time, which is the # minute after reboot
Now: Reboot immediately, equivalent to--T 0;
time:12:00
Init 6
Shut down the system: shuts down all processes running in memory, shuts down the system core, and loses power to all computer components
Halt
Poweroff
Init 0
shutdown-h {#|now|time} (recommended)
This article mainly introduces, Basic command format and simple format introduction.
Command prompt and command format description for Linux systems