Home  >  Article  >  Operation and Maintenance  >  How to use the mv command under linux

How to use the mv command under linux

王林
王林Original
2020-06-19 13:47:004268browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn