Understand the classification and definition of the operating system after entering learn the basic use of Linux command! !
- aims
Understanding the causes of learning Linux terminal commands
Common Linux command experience
- Reason for learning Linux terminal commands
- And not just Linux graphical interface when available, all operations thanks to the completion of the command, such as disk operations , file access , directory operations , process management , file permissions settings, etc.
- In the workplace, a large number of server maintenance are in remote through SSH client to complete, and no graphical interface, all maintenance work needed to be done through the command
- In the workplace, as a back-end programmer must be more or less have some common Linux terminal commands
- Linux distribution Command probably more than 200, but only just over 10 frequently used commands
Study skills Terminal command:
- It does not require rote, for commonly used commands, with more naturally to remember
- Do not try to learn all the commands, some commands are not very common, encountered temporary, temporary Baidu can
Commonly used Linux terminal command basic use:
No. | command | English correspondence | effect |
01 | ls | list | View the contents of the current folder |
02 | pwd | print wrok directory | View the current working directory |
03 | cd [directory name] | change directory | Switching the working directory |
04 | touch [filename] | touch | Create a file |
05 | mkdir [directory name] | make directory | Create a directory |
06 | rm [filename] | remove | Delete the specified file or directory |
07 | clear | clear | Clear screen |
Common commands operating experience (using Ubuntu experience)
Tips
ctrl + +
Amplifying terminal window fontctrl + -
Narrowing of the terminal window font- Press
上
/下
cursor key can be used to switch between commands back and forth once - If you want to opt-out, and do not want to execute the currently selected command, you can press
ctrl + c
Autocomplete
- In the knock-out
文件
/目录
/命令
after the first few letters, presstab
the key - If the input is not ambiguous, the system will auto-complete
- If there are other
文件
/ /目录
,命令
then click thetab
command button, the system will prompt may exist
Linux terminal command format
aims
- Learn the terminal command format
- He knows how to review Terminal Command Help
Terminal Command Format
command [-options] parameter
Description:
command
: Command name, abbreviated English word or words corresponding function[-options]
: The option can be used to control the command can be omittedparameter
: The parameters passed to the command, and may be zero , one or more- [] On behalf of Options
Check command help
prompt
- At this stage only you need to know that you can query the information in two ways to help
- First learn common commands and common option is to use the can, if you have problems at work can make use of search
1 command --help
Description: Displays command help command
2 man command
Description: man is manual abbreviated, is a Linux provides a manual that contains most of the commands, functions detailed instructions