当前位置: 技术问答>linux和unix
如何移动文件夹下全部文件到另一个文件夹下
来源: 互联网 发布时间:2017-01-13
本文导语: 如何移动文件夹下全部文件到另一个文件夹下,而不是移动这个文件夹,例如/usr/local/arm/arm中的全部子文件到/usr/local/arm下,尝试命令1 root@spr-desktop:/home/spr# mv /usr/local/arm/arm/ /usr/local/arm 结果 mv: `/usr/local/arm/arm/' and...
如何移动文件夹下全部文件到另一个文件夹下,而不是移动这个文件夹,例如/usr/local/arm/arm中的全部子文件到/usr/local/arm下,尝试命令1
root@spr-desktop:/home/spr# mv /usr/local/arm/arm/ /usr/local/arm
结果
mv: `/usr/local/arm/arm/' and `/usr/local/arm/arm' are the same file
尝试命令2
root@spr-desktop:/home/spr# mv /usr/local/arm/arm /usr/local/
结果:
mv: cannot move `/usr/local/arm/arm' to `/usr/local/arm': Directory not empty
哪位大哥帮忙解决下!
不会一个一个文件的移动吧?
root@spr-desktop:/home/spr# mv /usr/local/arm/arm/ /usr/local/arm
结果
mv: `/usr/local/arm/arm/' and `/usr/local/arm/arm' are the same file
尝试命令2
root@spr-desktop:/home/spr# mv /usr/local/arm/arm /usr/local/
结果:
mv: cannot move `/usr/local/arm/arm' to `/usr/local/arm': Directory not empty
哪位大哥帮忙解决下!
不会一个一个文件的移动吧?
|
mv /usr/local/arm/arm/* /usr/local/arm/
|
mv /usr/local/arm/arm/* /usr/local/arm/
|
UP
|
参照楼上,很简单的命令
|
分数这么少
|
1楼OK,我倒觉得这么简单的问题分不少了