原帖由 非凡公子 于 2006-1-8 00:58 發(fā)表
可以用cp 加 tar來實(shí)現(xiàn)
原帖由 chinaux 于 2006-1-9 16:43 發(fā)表
assuming the 2 new file systems are mounted on /mnt/sapmnt, /mnt/sap -
#(cd /; tar -cf - sapmnt) | ( cd /mnt; tar -xf -)
#(cd /usr; tar -cf - sap) | (cd /mnt; tar -xf -)
then, umount /sapmnt, ...
原帖由 Philmoon 于 2006-1-9 16:59 發(fā)表
正解。不過tar命令的嚴(yán)格寫法是c、x等不帶“-”(恐怕考試要扣的。
#(cd /; tar cf - sapmnt) | ( cd /mnt; tar xf -)
#(cd /usr; tar cf - sap) | (cd /mnt; tar xf -)
原帖由 chinaux 于 2006-1-9 17:16 發(fā)表
You are right according to its man page.
Just for your information, in certain cases, "-" is required, at least on Redhat Linux.:wink:
歡迎光臨 Chinaunix (http://72891.cn/) | Powered by Discuz! X3.2 |