How to move and rename files with mv

linux-penguinGetting to grips with the command line in Linux will mean that you'll always be able to manage practically any Linux distribution (and there are literally hundreds) without having to learn a new interface.  Command line instructions are often quicker to implement as well.


Examples

To rename filename to filename-new

$ mv filename filename-new

 

To move the file filename to the directory "/directory"

$ mv filename /directory

 

Thanks for visiting.