Moving a file in linux is as easy as using the mv command:
mv filename.txt foo/bar/newname.txt
The command above would move a file named filename.txt into the bar directory with a new name (newname.txt). If you only specify the directory, the name of the file will not change.





