mv

初級
1/6
user@linux:~/workspace$
mv oldname.txt newname.txt

Explanation

Renames oldname.txt to newname.txt in the same directory.

Options

-vVerbose mode (show what's being moved)
-iPrompt before overwriting
-nDon't overwrite existing files
-fForce move without prompting
1This file will be renamed using the mv command.