看板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