-m,--mode=MODE set file mode (as in chmod), not a=rwx - umask ?
-p,--parents
no error if existing, make parent directories as needed
如果沒有父目錄遞歸創(chuàng)建
-v,--verbose
print a message for each created directory
每次創(chuàng)建新目錄都顯示信息侵俗。
-Z,--context=CTX
set the SELinux security context of each created directory to ztx
設(shè)置每個創(chuàng)建的目錄ctx的SELinux安全上下文
rm 命令
-d? ? ? --directory? ? 刪除可能仍有數(shù)據(jù)的目錄 (只限超級用戶)
-f????? --force????????? 略過不存在的文件锨用,不顯示任何信息
-i????? --interactive 進(jìn)行任何刪除操作前必須先確認(rèn)
-r/R --recursive??? 同時刪除該目錄下的所有目錄層
-v????? --verbose???? 詳細(xì)顯示進(jìn)行的步驟
mv 命令
-b :若需覆蓋文件,則覆蓋前先行備份隘谣。
-f :force 強(qiáng)制的意思增拥,如果目標(biāo)文件已經(jīng)存在,不會詢問而直接覆蓋寻歧;
-i :若目標(biāo)文件 (destination) 已經(jīng)存在時掌栅,就會詢問是否覆蓋!
-u :若目標(biāo)文件已經(jīng)存在码泛,且 source 比較新猾封,才會更新(update)
-t? : --target-directory=DIRECTORY move all SOURCE arguments into DIRECTORY,即指定mv的目標(biāo)目錄噪珊,該選項(xiàng)適用于移動多個源文件到一個目錄的情況晌缘,此時目標(biāo)目錄在前,源文件在后痢站。