Sunday, December 28, 2014

Rename a file in linux

So you have forgotten or are just a newbee looking for how to rename a file in linux, these two tricks are for you:
  1.  Using mv command: yourdir$ mv oldname newname
  2. Using copy and delete: 
  • copy old file to new file with cp command: yourdir$ cp oldname newname
  • delete old file with rm command: yourdir$ rm odname

No comments:

Post a Comment