Move a File
$ cat apple.txt core worm seed jewel $ cat basket.txt Layer1 = cloth Layer2 = strawberries Layer3 = fish Layer4 = chocolate Layer5 = punch cards $ mv apple.txt basket.txt $ cat apple.txt cat: apple.txt: No such file or directory $ cat basket.txt core worm seed jewel $ mv basket.txt tub.txt $ cat basket.txt cat: basket.txt: No such file or directory $ cat tub.txt core worm seed jewel $
You can also move files to other directories:
$ mkdir portfolio $ mv apple.txt portfolio $ cd portfolio $ ls apple.txt $ mv apple.txt .. $ ls $ cd .. $ ls apple.txt portfolio $