Wednesday 17 August 2011

Renaming files in Unix

Following are the commands used for renaming files in Unix,

1) $mv fileoriginal filerenamed

The above command is used to rename the file with name, 'fileoriginal' to the new name, 'filerenamed'.

2) $mv diroriginal dirrenamed

The above command is used to rename directory.

No comments:

Post a Comment