当文件存在时,在Linux中移动文件时“没有这样的文件或目录”

时间:2018-02-10 02:24:48

标签: linux unix mv

我试图通过删除_proc *后缀来重命名文件:

[root@mbdprod05 ~]# ls -ltr /mediation/collection/h-sgsn/*.proc*
-rw-rw-r-- 1 x340271 soul 4191657 Feb  9 22:13 /mediation/collection/h-sgsn/20180209221331_CGW1CLI_AP71_b68737.dat.proc_6181
-rw-rw-r-- 1 x340271 soul 4131571 Feb  9 22:14 /mediation/collection/h-sgsn/20180209221331_CGW1CLI_AP67_b61519.dat.proc_7243
-rw-rw-r-- 1 x340271 soul 4161847 Feb  9 22:14 /mediation/collection/h-sgsn/20180209221331_CGW1MUN_AP71_b73442.dat.proc_5278
-rw-rw-r-- 1 x340271 soul 4220105 Feb  9 22:17 /mediation/collection/h-sgsn/20180209221331_CGW1CLI_AP70_b98531.dat.proc_8133
[root@mbdprod05 ~]# mv /mediation/collection/h-sgsn/20180209221331_CGW1CLI_AP67_b61519.dat.proc_7243 /mediation/collection/h-sgsn/20180209221331_CGW1CLI_AP67_b61519.dat
mv: cannot stat `/mediation/collection/h-sgsn/20180209221331_CGW1CLI_AP67_b61519.dat.proc_7243': No such file or directory
[root@mbdprod05 ~]#

正如您所看到的,该文件存在,但我无法对其进行任何操作,而且我是管理员。

0 个答案:

没有答案