How to rename files in Linux
In Linux, you can use the mv command to rename files.
The command format is: mv [options] source file destination file
For example, to rename the file old.txt to new.txt, you can use the following command:
mv old.txt new.txt
If the new file name is in the same directory as the existing file, you can simply use the new file name. If the new file name is not in the same directory as the existing file, you will need to specify the full path of the new file name.
Additionally, if you want to move the file to another directory and rename it, you can use the following command:
mv old.txt /path/to/new_directory/new.txt
Note: The mv command can also be used to move files or directories.