Pages

Thursday, August 5, 2010

Rename directroy in linux

I love learning new tricks in cli. I learned to rename a directory I can use the mv command. Say I want to rename I directory called green in my home directory, all I need to do is use
$ mv green brown
 
That will change the directory greens name to brown I did not have to define the path since green was in the working directory of the terminal.  It is when I find little tricks like this I realise some of the wholes in my knowledge of linux. Thats good means there is plenty more to learn!