2016-12-07 1118 views
-1

我想在服務器上文件移動到另一個文件夾:如何使用Putty移動文件? (MV:缺少目標文件操作數)

mv /opsw/Customer/TEST/@/Server/TEST.test.test.com/files/Administrator/C/Temp 
/TEST_validateserver.htm /opsw/Customer/TEST/@/Server/TEST.test.test.com/files/Administrator/C/ 

,我發現了以下錯誤:

mv: missing destination file operand after `/opsw/Customer/TEST/@/Server/TEST.test.test.com/files/Administrator/C/Temp' 
Try `mv --help' for more information. 
bash: line 1: /TEST_validateserver.htm: No such file or directory 

這是怎麼回事?

+3

你不是「使用Putty」來移動文件,而是使用Putty獲得與遠程機器的控制檯連接,在該機器上運行一個正在運行shell的機器'mv'命令。 – unwind

回答

2

看起來有一個換行符/空格之間。運行這個

mv /opsw/Customer/TEST/@/Server/TEST.test.test.com/files/Administrator/C/Temp/TEST_validateserver.htm /opsw/Customer/TEST/@/Server/TEST.test.test.com/files/Administrator/C/