Wednesday, August 8, 2012

What is the difference between 'MV' and 'CP' command?

mv :
- used to rename a file or move a file from one location to other.
- doesn't change timestamp.
- works like Cut+Paste.

cp :
- used to copy a file or create a duplicate of a file
- modifies the timestamp.
- works like Copy+Paste.

No comments :