
需要將檔案從來源路徑“u01/app/java/gids4/textfiles/output/foursight/request”移至目標路徑“/u01/app/java/gids4/textfiles/output/archive/foursight/request”
答案1
如果這些路徑是目錄,則執行
mv /u01/app/java/gids4/textfiles/output/foursight/request/* /u01/app/java/gids4/textfiles/output/archive/foursight/request/
答案2
如果你想移動檔案並且已經設定了路徑,你可以簡單地使用mv
指令,在參數中使用這個路徑。
path="/home/user"
mv $path"/some/folder/*" $path"/another/folder/*"