Categories of commands:
Built-in command: The command that comes with the shell program,
External command: has independent executable program file
Use the type command to distinguish between a built-in command or an external command
The composition of the command:
Command + options + parameters
Options are divided into:
Short options:-l-d, etc., short options can be combined write,-ld
Long option:--help
参数:命令作用的对象ls -ld /bin查看命令的使用帮助help command
Command--help
Mans command
Man Manual: A total of 8 chapters;
/usr/share/man
Man1 ... man8
Man1: User command Use Help
MAN2: System invoke use Help
MAN3:C Library Call Usage Help
MAN4: Device files and special file use Help
MAN5: Configuration file format usage Help
MAN6: Game Use Help
MAN7: Miscellaneous Use Help
MAN8: Managing commands for classes, managing tools using Help
#man Chapter Command
Note: Not every command has a manual under all chapters;
Man queries out the manuals, if more:
Tap the space bar: turn down the screen
B: Flip the screen to the header
#g: Jump to a specified line
Keyword search function:/keyword, starting from the first search;
? Keyword search from the rear
q :退出 查看某个命令在哪些章节有手册,使用: #whatis comman
Several basic commands:
Tty, view current terminal equipment
Ssh IP address: Pseudo terminal command to connect to Linux terminal
IFCONFIG\IP Add list: View IP address
Echo: Echoes the echo character, "Hello word", which shows Hello Word, or add variable, ¥
Ping IP address, press CTRL + C to terminate command execution
CTRL + C: can terminate execution or delete vanity line
Shut down: ~ "#systemctl poweroff, or Poweroff, halt
Reboot: ~ "#systemctl reboot, or reboot
Getting Started with basic concepts about Linux commands