[<user_name>@<host_name> <current_dir>]$
,$是普通用戶的命令提示符(root用戶是#)exit
命令註銷當前已登入的用戶(不是關機)su
切換到root用戶(superuser)who
查看哪些用戶在線netstat -a
查看網絡聯機狀態ps aux
檢查運行的程序sync
將內存中的數據同步寫入硬盤(shutdown/reboot/halt命令也會代爲執行)(root用戶保存全部用戶數據,非root用戶保存本身的數據)shutdown [-options] [time] [warnings]
poweroff
,重啓命令reboot
,中止系統命令halt
(屏幕可能會保留系統中止的信息,與電源管理模式有關),這三個命令都會調用systemctl
指令執行操做,至關於systemctl poweroff
,systemctl reboot
和systemctl halt
(還有systemctl suspend
,用於進入休眠模式),理論上只讓root執行init
在systemd下依然兼容,init 0
關機,init 6
重啓command [-options] parameter1 parameter2 ...
node
date [+format]
顯示日期和時間
+format
選項,格式format舉例:%Y/%m/%d或%H:%Mcal [month] [year]
顯示日曆
cal year
用來顯示一全年的日曆cal month year
用來顯示某個有效年月的日曆,無效會返回錯誤信息bc
啓動一個字符界面的簡易計算器
scale=number
,number爲結果小數點位數quit
-回車 退出nano
簡單的文本編輯器
nano <path/filename>
打開一個文件exit
-回車--help
說明選項查閱(裏面有語法,可能有簡要使用舉例)man <command/file>
查詢man man
能夠查選到類別對應表man
的手冊文件一般在/usr/share/man裏,經過修改/etc/man_db.conf(或man.conf或man.config或manpath.conf)能夠修改手冊文件的查詢位置man -f <command>
查詢和man <number> <command>
查看man -f
等效於
whatis
man -k <keyword>
查詢內容簡介中含有
man -k
等效於
apropos
info <command>
分節點(node)查詢*
來標識一個能夠進入的node,光標間移動到*
後回車能夠進入這個nodelocale
或echo $LANG
命令顯示當前選擇的語系LANG=en_US.utf8
修改成輸出信息爲顯示英文語系(僅對本次登錄有效)export LC_ALL=en_US.utf8
同步更新語系的其餘選項爲英文語系(僅對本次登錄有效)startx
命令用來在文本模式下啓動X Window(前提是沒有其餘的X Window啓動且X Window System正確安裝),不須要管理員身份,默認使用圖形界面須要將graphical.target服務設爲默認