Home >Operation and Maintenance >Linux Operation and Maintenance >How to use the mv command under linux
The mv command is the abbreviation of move. This command can be used to move files or rename files (move (rename) files). It is a commonly used command in Linux systems and is often used. to back up files or directories.
(Recommended tutorial: linux tutorial)
mv command format:
mv [选项] 源文件或目录 目标文件或目录
Example 1:
Command:
mv test.log test1.txt
Rename the test.log file to the test1.txt file;
Example 2:
Command:
mv test1.txt test3
Move the test1.txt file to the directory test3 middle;
The above is the detailed content of How to use the mv command under linux. For more information, please follow other related articles on the PHP Chinese website!