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

How to use the mv command under linux

王林
Release: 2020-06-19 13:47:00
Original
4387 people have browsed it

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 [选项] 源文件或目录 目标文件或目录
Copy after login

Example 1:

Command:

mv test.log test1.txt
Copy after login

Rename the test.log file to the test1.txt file;

Example 2:

Command:

mv test1.txt test3
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template