這里介紹幾個(gè)Linux的常用命令
當(dāng)在同一行的2個(gè)命令使用semicolon也就是分號(hào);分隔時(shí),表示第一個(gè)command將在后一個(gè)command開(kāi)始時(shí)完成,例如
ls -F /etc;ls -F /home
![](/d/20211018/86e4cf5a848591183f4b606a4648be33.gif)
Linux有命令行自動(dòng)補(bǔ)齊功能,輸入命令行的前面幾個(gè)字符可以連續(xù)按下2次tab鍵或者Esc鍵給出提示,如果只有以首字母開(kāi)始的唯一一個(gè)命令,則系統(tǒng)會(huì)自動(dòng)補(bǔ)齊,例如輸入dm,按下2次tab鍵或者2次Esc鍵,效果如下
![](/d/20211018/99faca1c7df7ed4a8cfb7fea7ac34df6.gif)
默認(rèn)的Linux命令行使用的是emacs編輯器,有很多功能
ctrl+b move back one character
![](/d/20211018/fb222a453e203bf950475de4ead63f59.gif)
在命令行編輯時(shí)光標(biāo)cursor的back和forward
ctrl+f=move forward one character
del=delete the character to the left of the cursor
![](/d/20211018/9368622b62cdb085ebc1369eb0097d25.gif)
ctrl+a=move to the start of the line
ctrl+e=move to the end of the line
esc+f=move forward a word
esc+b=move backward a word
ctrl+l=clear the screen,reprinting the current line at the top
按下control加小寫(xiě)的L將清除屏幕,并把當(dāng)前行移動(dòng)到屏幕的top
![](/d/20211018/484f64b2935ebc4d29895e558b3fbdc6.gif)
相關(guān)推薦:
LINUX系統(tǒng)時(shí)間怎么設(shè)置同步腳本或命令?
linux系統(tǒng)怎么用命令切換用戶?
Linux查看系統(tǒng)信息的常用命令