1.ls [選項] [目錄名 | 列出相關(guān)目錄下的所有目錄和文件
-a 列出包括.a開頭的隱藏文件的所有文件
-A 通-alinux命令大全,但不列出"."和".."
-l 列出文件的詳細(xì)信息
-c 根據(jù)ctime排序顯示
-t 根據(jù)文件修改時間排序
re never to look at me during the daylinux命令大全, we must always part by sunrise, and we can never say "i and when it is over i will send you a card that will simply say goodbye... those are the rules...。re never to look at me during the day, we must always part by sunrise, and we can never say “i and when it is over i will send you a card that will simply say goodbye… those are the rules…。for all those people in brazil, for all his fans all around the world, he will always be young. ayrton senna will always be fast. he will never be old. he will always be the champion of brazil and of the world. the grief, even today..., maybe the greatest statement i can make about what he did when i meet a brazilian soon after that i have t.........更多。
白色:表示普通文件
藍(lán)色:表示目錄
綠色:表示可執(zhí)行文件
紅色:表示壓縮文件
淺藍(lán)色:鏈接文件
紅色閃爍:表示鏈接的文件有問題
黃色:表示設(shè)備文件
灰色:表示其它文件
2.mv [選項] 源文件或目錄目錄或多個源文件 | 移動或重命名文件
-b 覆蓋前做備份
-f 如存在不詢問而強(qiáng)制覆蓋
-i 如存在則詢問是否覆蓋
-u 較新才覆蓋
-t 將多個源文件移動到統(tǒng)一目錄下,目錄參數(shù)在前,文件參數(shù)在后
eg:
mv a /tmp/ 將文件a移動到 /tmp目錄下
mv a b 將a命名為b
mv /home/zenghao test1.txt test2.txt test3.txt
3.cp [選項] 源文件或目錄目錄或多個源文件 | 將源文件復(fù)制至目標(biāo)文件,或?qū)⒍鄠源文件復(fù)制至目標(biāo)目錄。
-r -R 遞歸復(fù)制該目錄及其子目錄內(nèi)容
-p 連同檔案屬性一起復(fù)制過去
-f 不詢問而強(qiáng)制復(fù)制
-s 生成快捷方式
-a 將檔案的所有特性都一起復(fù)制
4.scp [參數(shù)] [原路徑] [目標(biāo)路徑] | 在Linux服務(wù)器之間復(fù)制文件和目錄
-v 詳細(xì)顯示輸出的具體情況
-r 遞歸復(fù)制整個目錄
(1) 復(fù)制文件:
命令格式:
scp local_file remote_username@remote_ip:remote_folder
或者
scp local_file remote_username@remote_ip:remote_file