How Unix moves files, renames files

Source: Internet
Author: User
Tags root directory

How to use commands for file movement or folder directories in UNIX systems, many users who have access to UNIX systems may not be very clear, this article is about how to use MV command in UNIX systems to move or life name files and directories.

The use of MV command in Unix

Command Implementation Results Description
MV File1 File2 To file1 the file2 of life.
Mv/dir/dir2 To Dir2 dir for a life. If Dir2 already exists and is not an empty directory, an error message is generated.
MV File1/dir2 Move the file1 to the Dir2 directory under the root directory.
MV File1/dir2/file2 If File2 is a directory, File1 is moved into the Dir2/file2 directory.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.