Linux指令積累

 

將前面的輸出作爲後面命令的參數的方法(2種)

find / -name ".bash*" -exec ls {} -al ";" | grep bash 

 

find / -name ".bash*" | xargs ls -al


"apt-get install lftp" or "apt-get install lftp-ssl", i compiled it myself from lftp.yar.ru

lftp上傳&下載文件夾(只能使用lftp)

connect to your ftp and input the command:
mirror -R <the local dirname>
this will upload the whole directory.
上傳整個文件夾:mirror -R 本地文件夾

or type this:
mirror <the remote dirname> <the local dirname>
this will download the whole directory.
 下載整個文件夾:mirror 遠端文件夾 本地文件夾

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章