看板FreeBSD
标 题Re: [问题] 移动资料
发信站小鹿鹿 BBS (Sun Sep 11 09:49:41 2005)
转信站ptt!ctu-reader!news.nctu!abpe.org
※ 引述《[email protected] (Time Stamp)》之铭言:
> ==> [email protected] (拼老命) 提到:
> : 请问一下 要把A资料夹的东西 全部移到B资料夹的的指令怎麽打
> man mv
> 保险起见劝你先用cp再用rm
啊... mv 也是这样做啊...
As the rename(2) call does not work across file systems, mv uses cp(1)
and rm(1) to accomplish the move. The effect is equivalent to:
rm -f destination_path && \
cp -pRP source_file destination && \
rm -rf source_file
--
Resistance is futile.
http://blog.gslin.org/ & <
[email protected]>
--
※ Origin: 邪恶小鹿鹿 <Deer.twbbs.org> ◆ From: 140.113.22.90