How To Rename Directory Name In Linux

RegisterLogin
How To Rename Directory Name In Linux
Post Description: How To Rename Directory Name In Linux
Tags: How, To, Rename, Directory, Name, In, Linux
This Post Was Posted On Sep 28, 2009 By Tyler #2446
i have a directory that i need to change the name, but i dont know how to do that. i tried the DOS command RENAME but that doesn't work

is there a special command that i can use in linux
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
webune
#2442 1
if you want to change the name of a file or a direcotory in linux you use the mv command

for example, lets say i have this directory:

/home/root/old_name

and i want to rename it to old_name

so i send this command:

go to the directory where the file or directory you want to change the name of
cd /home/root/


send the sehll command:
mv old_name new_name


now the direcotry will be called new_name
/home/root/new_name
Sep 28, 2009 Reply Report abuse
©2012 Webune Forums - Fri Dec 14, 2012 1:43 pm
Powered by: Webune Forums V3