[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Renaming a directory..



Hi,
>>"Bruno" == Bruno Simoes <bsimoes@pcsbi11.if.usp.br> writes:

Bruno> Hi all Does somebody know if there's some command to *rename*
Bruno> either a file or directory in Linux. I don't want to move them
Bruno> to another files/dirs. Thank you Bruno

	On the same filesystem, 
 % mv dir1 dir2

	On different file systems,
 % mkdir /filesystem2/dir2
 % cd /filesystem1/dir1
 % tar cf - . | (cd /filesystem2/dir2; tar xvvpf -)
 % cd /filesystem1
 % rm -rf dir1

	manoj
-- 
 "Do you know that doing your best is not good enough?  First you must
 know what to do." manufacturing-quality theorist W. Edwards Deming
Manoj Srivastava  <srivasta@acm.org> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: