Renaming Directories
Derek Atkins
warlord at MIT.EDU
Tue Sep 23 15:39:54 EDT 2008
Hi,
Quoting Bruce Labitt <bruce.labitt at verizon.net>:
> Simple question here. Say I want to rename /mnt/store to
> /mnt/store.old. I could of course do this with cp, however, I don't
> have enough disk space. So is there a way that just does a rename of
> the directory?
Yes, 'mv'
> # mv /mnt/store mnt/store.old would create a new directory full of
> files, wouldn't it?
Nope, mv is just a wrapper around "rename(1)".
> -Bruce
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnhlug-discuss
mailing list