The easiest way to rename a file from a linux terminal is simply to move it to the same directory with a different name.
mv original_name.txt new_name.txt
The example above will rename original_name.txt to new_name.txt. The same syntax will also work for a directory.





