Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> Ubuntu Linux

Ubuntu終端的切換與開關機常用指令

本文以 Ubuntu LTS 16.04 為例,介紹終端切換、開關機與幾個常用工具指令。

1. 切換終端

[ctrl]+[alt]+[F1-F6] 進入命令行終端;[ctrl]+[alt]+[F7] 回到圖形界面;echo $LANG 顯示目前語言;LANG=en_us 可改為英語。

2. 關機相關

 ps -aux 後台執行程序 shutdown -h now 立即關機 shutdown -h 20:25 定時關機 shutdown -h +10 十分鐘後關機 shutdown -r now 立即重啟 shutdown -r +30 "The system will reboot" 30分鐘後重啟並通知用戶

3. man 求助

man date 後按 /string 向下找、?string 向上找、n/N 繼續查找、q 退出;man -k man 查找含 man 的文檔;man -f man 獲取更多相關資訊。

4. 常用工具

顯示時間 date,date +%Y/%m/%d、date +%H:%M;%Y 年、%m 月、%d 日、%H 時、%S 秒。

顯示日曆 cal,cal 2017 顯示整年、cal 10 2017 顯示指定月份。

計算器 bc,scale=3 設定小數位(預設整數運算),quit 退出。

Copyright © Linux教程網 All Rights Reserved