1834460 Members
2950 Online
110067 Solutions
New Discussion

renaming a directory

 
SOLVED
Go to solution
Ravinder Singh Gill
Regular Advisor

renaming a directory

how do i rename a directory?
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: renaming a directory

Use the mv command.

# mv dir1 dir2

# man mv

will give you lots of information.
Bharat Katkar
Honored Contributor

Re: renaming a directory

Hi,
There is no rename command as such in UNIX as it is there in DOS/WINDOWS. But the renaming can be achieved using "move" command.

# mv file1 file2

This will do the trick.

Regards,
You need to know a lot to actually know how little you know
Indrajit_1
Valued Contributor

Re: renaming a directory

Hi;

Try mv command

#mv dir_name1 dir_newname

Cheers
indrajit
Never Ever Give Up
Sivakumar TS
Honored Contributor

Re: renaming a directory

Hi,

for renaming file as well as directory you can use #mv command.

Regards,

Siva.
Nothing is Impossible !
Ravinder Singh Gill
Regular Advisor

Re: renaming a directory

thanks