1. 程式人生 > >Linux常用命令及目錄

Linux常用命令及目錄

1.原始檔:/etc/apt/sources.list,更新源:sudo apt-get update

2.hosts:/etc/hosts

3.重啟網路:/etc/init.d/networking restart

4.環境變數: /etc/environment;/etc/profile

5. 修改管理員密碼:sudo passwd root

6. ls -lrt:按時間排序,且不顯示.和..目錄

7. 檢視磁碟使用情況:df -h

8. 檢視CPU:top,檢視記憶體:free -m