Thursday, February 14, 2013

MV command - Two different types of arguments

In mac terminal mv command is capable of doing 2 things based on arguments supplied, mv command can both move and rename files.

1. If two file name is supplied

mv filename1 filename2

This command renames filename1 to filename2


2. If the filename and the destination file is supplied

mv filename1  ./desktop/folder1

This command moves filename1 to folder1

No comments:

Post a Comment