Bird Brother Linux private kitchens summary of the most basic Linux command

Tab key

Tab Linux is one of the best features of the Bash shell, which has command completion and files filled and options / parameter completion of the function, which can help us avoid the wrong command or file name.

Tab input different places have different results.
If you enter after the command is the command completion.
If you enter the file name, the file is completion.

Ctrl-c button

The end of the current program (when the program ran non-stop, or when stuck).

Keys Ctrl-d

Exit (equivalent to input exit).

shift + page up or page down key

To perform certain actions pure command line interface, the command information if the output is long, it is necessary to use this key page.

Seeking help --help command

For example: date --help

man page

man is manual (instructions) shorthand.
For example: man date
of the first row is seen date (. 1), the date is the name of the command, the latter date is significant figures. This number can help us understand.
Common sense is digital:

Code On behalf of content
1 Usually the user command may operate in the shell environment or an executable file
2 Function tool system kernel callable
3 Some commonly used functions and libraries, most of the c library
4 Description of the device file
5 Format configuration file or some file
8 System administrators can manage command

man -f date date command displays all
man -k date display all system documentation characters have date

info page

Use a similar man page, the page can be thought of is the command-line mode of display data, we found only, enhanced legibility on Linux. But in order to have info page query function, it is to use the online help file info page format written in the job.

Correct shutdown method

Because Windows systems, is the case of single false multi-task, so your computer is turned off, others will not be affected, but differ on Linux, so the shutdown should pay attention to: the use of state observation system
if there are to look at who is online with the who command
If you do online network, use the command netstat -a
If you look at the background of the program with the command ps -aux
shutdown before the data is written to the hard disk you want to use the sync command
commonly used shutdown command: shutdown or poweroff
reboot: reboot

the current system used to manage all services are systemctl command this command is quite complex, and shutdown-related command: systemctl Syntax
commands include: poweroff shutdown
reboot reboot
suspend dormant
for example, systemctl suspendcan make the computer to sleep

Published 11 original articles · won praise 4 · Views 616

Guess you like

Origin blog.csdn.net/weixin_45626515/article/details/103230115
Recommended