Flat 80% OFF + Addl. 10% OFF on All EICT (IIT Roorkee) Courses. Use Coupon Code 10PLUS during Checkout | Expires in

 Enroll Now

Linux Basics

20 / 87

Move Files & Directories

mv command is used to move or rename files and directories.

  1. Create a file myfirstfile.txt.

    nano myfirstfile.txt
  2. Add the text "a clever fox" into the editor and press "control+x" followed by "y" to save.

  3. rename myfirstfile.txt to firstfile.txt.

    mv myfirstfile.txt firstfile.txt