How would I rename a file, say
new.txt, in Linux using shell commands?
migrated from stackoverflow.com May 20 '10 at 1:40
This question came from our site for professional and enthusiast programmers.
mv is a command that "moves" the file given as the first argument to the name specified in the second. In this case, you're just moving the file from one name to another in the same directory.