1、修改本機的語言環境
locale -a
檢視本機支援的所有語言環境
echo $lang
顯示當前使用的語言環境
(echo命令的功能是在顯示器上顯示一段文字,一般起到乙個提示的作用,加$表示後面的字串作為乙個變數,輸出變數的值,也可以輸出字串的值)
lang=zh_cn.gbk
gcc編譯時,提示亂碼 ,用此語言
2、ls 列出檔案(list file)
rm filename 刪除檔案(remove file)
rm -rf directory 刪除目錄
cp sourcefilename destfilename 複製,帶路徑和檔名 (copy file)
mv sourcefilename destfilename 移動 (move file)
mkdir 建立目錄(make driectory)
pwd:(print work directory )列印當前目錄
su :切換使用者 (switch user)
ps: 檢視程序狀態 (process status)
4、tar 壓縮解壓縮
5、檢視當前版本 lsb_release -a
當使用某些命令,顯示超過螢幕顯示,可以使用 pageup 鍵向上翻頁
Linux命令使用記錄
在終端中,輸入命令的前幾個字母,按tab按鍵,可進行命令補全 按兩次或多次tab按鍵,可將所有的命令列出來。顯示歷史命令。print shared object dependencies.ldd usr lib x86 64 linux gnu mesa libgl.so.1 顯示隱式鏈結的動態鏈結...
Linux命令使用記錄
檢視當前時間和時區 date r 常規日期格式均可 如 yyyy mm dd,hh mm ss 將當前時間和日期寫入bios hwclock w 設定修改時區 方法1 tzselect 方法2 timeconfig 僅限於redhat linux 和 centos 方法3 dpkg reconfig...
Linux 命令使用記錄
root zdw01 zdw sed i s 1.txt 1 sed i 3s old new file 對檔案中的第3行,進行替換 sed i s aaa fff g file 對包含 的行,進行替換 sed i 3s fff gp file 對檔案中的第3行,將其中的 號或是 號進行替換 tcp...