1th: How commands are executed online help shutdown
ls command: Lists the files of the current directory, equivalent to the Dir under DOS
Date command: Displays the current date and time only the date: Date +%y-%m-%d only look at time: Date +%h:%m
The command line is too long to handle:
No newline: (View profile) Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Case of line break: Vi/etc/sysconfig/network-\ Scripts/ifcfg-eth0
Cal Command: Displays the Calendar command format for the current month: Cal [month] [year]
If the year-round calendar is displayed, enter: Cal: Cal 2014
BC Command: Calculation software (computable subtraction and modulo arithmetic and exponential operation) input BC ENTER
Use scale to specify the number of digits after the decimal point for the result to be displayed, such as: scale=3 1/3 shows the result as:. 333
Enter quit to quit BC software
Important hotkeys: Tab CTRL + C CTRL+D
tab is after the first word of a string of commands, or command completion
tab is followed by the second word of a string of commands, then "file is padded"
CTRL + C If you enter the wrong command or parameter, causing the command or program to run continuously under the system, press CTRL + C to interrupt the current command or program
Ctrl+d means that the keyboard input ends EOF or end of input (input end), which can replace the input of exit
Clear command: Clear the screen
Cat command: View file contents
At the command line, you can output all the commands by pressing the TAB key directly without losing any parameters.
Man page meaning of common numbers
1 commands or executables that a user can manipulate
2 functions and tools that can be called by the system core
3 Some common functions and library functions
4 description of the device file
5 format of the settings file or some files
6 games
7 conventions and protocols, such as Linux standard file system, network protocol and other content
8 Administrative commands available to system administrators
9 Kernel-related files
Part of the man page
Name short command, data name description
Synopsis Brief Command syntax (syntax) introduction
DESCRIPTION a more complete description
OPTIONS for the Synopsis section, the example shows all available parameters
COMMANDS commands that can be issued in this program when the program is executed
Files This program or data is used, referenced, or connected to some file
See ALSO Other reference notes related to this command or data
EXAMPLE Some reference examples BUGS if there are related errors
Common parameters for command shutdown for shutdown
-T sec:-t plus seconds, indicating shutdown in a few seconds
-K: Don't really shut down, just send a warning message out
-R: Reboot after the system service has been stopped
-H: Shut down the system immediately after the service is stopped
-N: Shut down directly with shutdown function without the INIT program (initialization program)
-F: A disk check that forces a bypass of fsck after shutting down and powering on
-F: Force a disk check for fsck after the system reboots
-C: Cancels the contents of the shutdown instruction already in progress
such as: Shutdown-h 23:00 designated at 23:00 shutdown
Shutdown-r now restart
Other similar commands:
Reboot and Shutdown-r now are almost identical.
Halt
Poweroff
Before executing these commands, it is best to perform a few more sync to write the contents of the memory to disk
Brother Bird's private dish Linux video Tutorial Learning notes (Episode I)