47.4k views
4 votes
How can you rename files in Linux from terminal?

1 Answer

4 votes

Final answer:

To rename files in Linux from the terminal, use the 'mv' command followed by the old and new filename

Step-by-step explanation:

To rename files in Linux from the terminal, you can use the `mv` command. The syntax for renaming a file is:



mv old_filename new_filename



For example, if you want to rename a file called `old.txt` to `new.txt`, you would run the following command:



mv old.txt new.txt

Learn more about Renaming files in Linux

User Jon Z
by
7.8k points