The method of changing a file or directory using the mren command of linux
Today, I will talk to you about the method of using linux's mren command to change files or directories, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
The mren command is used to change the name of a MS-DOS file or directory or to move a file or directory.
Mren is a MS-DOS tool instruction, which is similar to the ren instruction under DOS and can be used to change the name of the MS-DOS file or directory. The source file must be a file that already exists on the disk. If the drive letter and path are ignored, it represents the current disk and the file in the current directory. The new file name is the name of the file to be replaced. The new file name cannot be preceded by a different drive letter and path from the source file, because this command can only change the file name on the same disk.
Syntax format: mren [parameters]
Common parameters:
[source file or directory.] Source file name or source file path to perform the operation [destination file or directory] destination file name or destination file path to perform the operation
Reference example
Change the file name of the file "test.txt" under disk a to "test1.txt"
[root@linuxcool ~] # mren a:\ test.txt test1.txt after reading the above, do you have any further understanding of how to use linux's mren command to change a file or directory? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.