2009年2月7日 星期六

Linux 常用基本指令

cd 目錄: 切換到其他目錄.
ls: 顯示目錄內容.
ls -al: 所有目錄詳細列表.
rm -r 檔案: 刪除檔案.
mkdir 目錄: 增加目錄.
rmdir 目錄: 刪除目錄.
chmod -R 777 檔案: 檔案權限變更.
cp -a * 存檔目錄: 複製所有檔案至需存檔的目錄.
grep -rn 關鍵字 * : 蒐尋關鍵字並顯示路徑.
which 檔名: 顯示檔案路徑.
參數n: 顯示路徑與內容.
參數l: 顯示路徑.

sudo: 取得root權限, 至root工作環境.
su: 取得root權限, 一般用戶工作環境.



沒有留言:

張貼留言