How to change the file name in CentOS?

To rename a file on CentOS, you can use the mv command, which is used to move or rename files. To rename a file, simply specify the original file name and the new file name as parameters. For example, to rename a file named file1.txt to file2.txt, you can use the following command:

mv file1.txt file2.txt

Please note that the “mv” command can also be used to move files to different directories.

Leave a Reply 0

Your email address will not be published. Required fields are marked *