Linux免費卻不失為一個非常優(yōu)秀的操作系統(tǒng),學(xué)習(xí)Linux,主要是命令太多,提供一些主要命令,希望大家能盡快進入到Linux的世界里,成為玩轉(zhuǎn)Linux高手.....
文件管理:
cat chattr chgrp chmod chown cksum cmp
diff diffstat file find git gitview indent
cut ln less locate isattr mattrib mc
mdel mdir mktemp more mmove mread mren
mtools mtoolstest mv od paste patch rcp
rm slocate split tee tmpwatch touch umask
which cp in mcopy mshowfat rhmask whereis
磁盤管理:
cd df dirs du edquota eject
mcd mdeltree mdu mkdir mlabel mmd
mrd mzip pwd quota mount mmount
rmdir rmt stat tree umount ls
quotacheck quotaoff lndir repquota quotaon
...
cat
使用權(quán)限:所有使用者
使用方式:cat [-AbeEnstTuv] [--help] [--version] fileName
說明:把檔案串連接后傳到基本輸出(螢?zāi)换蚣?> fileName 到另一個檔案)
參數(shù):
-n 或 --number 由 1 開始對所有輸出的行數(shù)編號
-b 或 --number-nonblank 和 -n 相似,只不過對于空白行不編號
-s 或 --squeeze-blank 當(dāng)遇到有連續(xù)兩行以上的空白行,就代換為一行的空白行
-v 或 --show-nonprinting
范例:
cat -n textfile1 > textfile2 把 textfile1 的檔案內(nèi)容加上行號后輸入 textfile2 這個檔案里
cat -b textfile1 textfile2 >> textfile3 把 textfile1 和 textfile2 的檔案內(nèi)容加上行號(空白行不加)之后將內(nèi)容附加到 textfile3 里。
...