Make sure that /my/dir.new does not already exist, or use another name, then very 
carefully:
        mv /my/dir/dir /my/dir.new
        rmdir /my/dir
        mv /my/dir.new /my/dir

I would probably do an ls command at each step to make sure it worked, even though if 
any of these commands fail the following commands would also fail.

-----Original Message-----
From: Marcy Cortes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 10:00 AM
To: [EMAIL PROTECTED]
Subject: Command to move everything up a directory


I need a mv incantation to move everything up a directory, i.e. change:

/my/dir/dir/files to
/my/dir/files

Thanks in advance,

Marcy Cortes

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to