CSC373/406: linux: mv: Rename a file/directory [20/42] |
Arguments: existing_file new_file
Options: -i
Description: Renames existing_file to have the name new_file -i Prompts if mv would overwrite an existing file.
Example:
$ ls code output.c test.cpp thrd.c~ file sample_busy test.txt homework2 sample_busy.cpp thrd output test thrd.c $ mv output.c input.c $ ls code output test.cpp thrd.c~ file sample_busy test.txt homework2 sample_busy.cpp thrd input.c test thrd.c