系統(tǒng)信息
arch%20顯示機(jī)器的處理器架構(gòu)
uname%20-m%20顯示機(jī)器的處理器架構(gòu)
uname%20-r%20顯示正在使用的內(nèi)核版本
dmidecode%20-q%20顯示硬件系統(tǒng)部件%20-%20(SMBIOS%20/%20DMI)
hdparm%20-i%20/dev/hda%20羅列一個(gè)磁盤(pán)的架構(gòu)特性
hdparm%20-tT%20/dev/sda%20在磁盤(pán)上執(zhí)行測(cè)試性讀取操作
cat%20/proc/cpuinfo%20顯示CPU%20info的信息
cat%20/proc/interrupts%20顯示中斷
cat%20/proc/meminfo%20校驗(yàn)內(nèi)存使用
cat%20/proc/swaps%20顯示哪些swap被使用
cat%20/proc/version%20顯示內(nèi)核的版本
cat%20/proc/net/dev%20顯示網(wǎng)絡(luò)適配器及統(tǒng)計(jì)
cat%20/proc/mounts%20顯示已加載的文件系統(tǒng)
lspci%20-tv%20羅列%20PCI%20設(shè)備
lsusb%20-tv%20顯示%20USB%20設(shè)備
date%20顯示系統(tǒng)日期
cal%202007%20顯示2007年的日歷表
date%20041217002007.00%20設(shè)置日期和時(shí)間%20-%20月日時(shí)分年.秒
clock%20-w%20將時(shí)間修改保存到%20BIOS
關(guān)機(jī)%20(系統(tǒng)的關(guān)機(jī)、重啟以及登出%20)
shutdown%20-h%20now%20關(guān)閉系統(tǒng)
init%200%20關(guān)閉系統(tǒng)
telinit%200%20關(guān)閉系統(tǒng)
shutdown%20-h%20hours:minutes%20&%20按預(yù)定時(shí)間關(guān)閉系統(tǒng)
shutdown%20-c%20取消按預(yù)定時(shí)間關(guān)閉系統(tǒng)
shutdown%20-r%20now%20重啟
reboot%20重啟
logout%20注銷(xiāo)
文件和目錄
cd%20/home%20進(jìn)入%20'/%20home'%20目錄'
cd%20..%20返回上一級(jí)目錄
cd%20../..%20返回上兩級(jí)目錄
cd%20進(jìn)入個(gè)人的主目錄
cd%20~user1%20進(jìn)入個(gè)人的主目錄
cd%20-%20返回上次所在的目錄
pwd%20顯示工作路徑
ls%20查看目錄中的文件
ls%20-F%20查看目錄中的文件
ls%20-l%20顯示文件和目錄的詳細(xì)資料
ls%20-a%20顯示隱藏文件
ls%20*[0-9]*%20顯示包含數(shù)字的文件名和目錄名
tree%20顯示文件和目錄由根目錄開(kāi)始的樹(shù)形結(jié)構(gòu)
lstree%20顯示文件和目錄由根目錄開(kāi)始的樹(shù)形結(jié)構(gòu)
mkdir%20dir1%20創(chuàng)建一個(gè)叫做%20'dir1'%20的目錄'
mkdir%20dir1%20dir2%20同時(shí)創(chuàng)建兩個(gè)目錄
mkdir%20-p%20/tmp/dir1/dir2%20創(chuàng)建一個(gè)目錄樹(shù)
rm%20-f%20file1%20刪除一個(gè)叫做%20'file1'%20的文件'
rmdir%20dir1%20刪除一個(gè)叫做%20'dir1'%20的目錄'
rm%20-rf%20dir1%20刪除一個(gè)叫做%20'dir1'%20的目錄并同時(shí)刪除其內(nèi)容
rm%20-rf%20dir1%20dir2%20同時(shí)刪除兩個(gè)目錄及它們的內(nèi)容
mv%20dir1%20new_dir%20重命名/移動(dòng)%20一個(gè)目錄
cp%20file1%20file2%20復(fù)制一個(gè)文件
cp%20dir/*%20.%20復(fù)制一個(gè)目錄下的所有文件到當(dāng)前工作目錄
cp%20-a%20/tmp/dir1%20.%20復(fù)制一個(gè)目錄到當(dāng)前工作目錄
cp%20-a%20dir1%20dir2%20復(fù)制一個(gè)目錄
ln%20-s%20file1%20lnk1%20創(chuàng)建一個(gè)指向文件或目錄的軟鏈接
ln%20file1%20lnk1%20創(chuàng)建一個(gè)指向文件或目錄的物理鏈接
touch%20-t%200712250000%20file1%20修改一個(gè)文件或目錄的時(shí)間戳%20-%20(YYMMDDhhmm)
file%20file1%20outputs%20the%20mime%20type%20of%20the%20file%20as%20text
iconv%20-l%20列出已知的編碼
iconv%20-f%20fromEncoding%20-t%20toEncoding%20inputFile%20>%20outputFile%20creates%20a%20new%20from%20the%20given%20input%20file%20by%20assuming%20it%20is%20encoded%20in%20fromEncoding%20and%20converting%20it%20to%20toEncoding.