I. Shortcuts commonly used in the shell
Shortcut keys in the man interface:
? Keyword up search keyword keyword,n down search, n continue search up
/keyword down search keywords keyword,n continue search down, n search
Q Exit man page
Ii. directives
1. Shutdown restart or shutdown
Shutdown is a command to safely shut down or restart the Linux system, the system will notify all logged-in users before shutting down, the system is about to shut down, at this time all new users can not log in, and shutdown functions similar to the command and Init, Halt, Poweroff, Reboot
shutdown [Options] [ time ] [ warning message ]
Time: Specify the time when the system shuts down! The example of time is explained below. If you do not have this item, the default 1 automatically after a minute .
Time:
[Email protected] ~]# shutdown-h now
Immediately shuts down, where now is equivalent to a state of 0 time
[Email protected] ~]# shutdown-h 20:25
System in today's 20:25 session shutdown, if the command is issued at 21:25, the genius shut down the machine
[Email protected] ~]# shutdown-h +10
The system automatically shuts down after ten minutes
reboot, Shutdown: reboot, Halt, Poweroff
[[Email protected] ~]# sync; Sync Sync Reboot
[[email protected] ~]# Halt # System Stop ~ screen may keep messages that the system has stopped!
[[email protected] ~]# Poweroff # system shuts down, so no extra power is provided, the screen is blank!
warning Message:
Use with the-K parameter
2. Shutdown and restart command: Halt/poweroff/reboot
These instructions are similar to the shutdown above
A common set of shutdown, restart, and logoff commands under Linux:
3. pwd
Displays the absolute path of the current working directory
Format: pwd [options]
4. CD: Switch directory
5. Tree
Display the contents of a directory in a tree-shaped structure
6, MkDir
Create a directory,
By default, if the directory you want to create already exists, then LJ will prompt that the file exists I and will not continue to create the directory
Usage:
mkdir [OPTION] ... DIRECTORY ...
7. Touch
Create an empty file or change the timestamp property of a file
The touch command has two functions: one is to create a new empty file, and the other is to change the timestamp property of the existing file.
Knowledge Supplement:
8, LS
Display content and related property information in the directory
Commands commonly used in Linux operations