Linux files and Directory Operations Basic command: MV command

Source: Internet
Author: User
Keywords LINUX MV commands Directory operations
Tags basic basic command directory directory operations displays file files home directory

To move the file, use the MV command. Common options for MV include:

-i-interaction. If the file you select will overwrite the existing file in the target, it will prompt you. This is a practical option because, like the-i option in CP, it gives you an opportunity to confirm the replacement of the saved file.

f coercion. It goes beyond the interactive mode and moves the file without prompting. This option is dangerous unless you know what you're doing. Use this option carefully before you have confidence in your system.

-v-details. Displays the progress of the file's movement.

If you want to move the file from your home directory to another existing directory, type the following command (you need to be in your home directory):

MV Sneakers.txt Tigger

Another approach is to use the same command, but use an absolute path, such as:

MV Sneakers.txt/home/newuser/sneakers.txt/home/newuser/tigger

Related Article

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.