mv in linux is a command in linux, used to rename files or directories, or move files or directories to other locations; the syntax of the mv command is "mv [options] source dest mv [options] source... directory".
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
What does mv mean in Linux?
Linux mv command
The Linux mv (full English spelling: move file) command is used to rename a file or directory, or move a file or directory to another location.
Syntax
1 2 |
|
Parameter description:
1 2 3 4 5 |
|
mv parameter setting and running results
Example
Rename the file aaa to bbb:
1 |
|
Put the info directory into the logs directory. Note that if the logs directory does not exist, this command will rename info to logs.
1 |
|
Another example is to move all files and directories under /usr/runoob to the current directory. The command line is:
1 |
|
Recommended learning: "linux video tutorial"
The above is the detailed content of What does mv mean in linux. For more information, please follow other related articles on the PHP Chinese website!