I have got the directory
/home/user/foo and I want to rename it to
/home/user/bar. How can I do this in a terminal?
To just rename a file or directory type this in Terminal:
with space between the old and new names.
To move a file or directory type this in Terminal.
it will move the file to the desktop.
If is a directory you should add