Linux MV Command

Source: Internet
Author: User

MV command is the abbreviation for move, commonly used to file, directory, 1): Mobile, 2): renaming

1. Usage

MV [Options] [parameters:]

2. Command options

-B When the file exists, before overwriting, create a backup for it;
-F,--force not ask before overwriting
-I,--interactive ask before overwriting
-N,--no-clobber does not overwrite existing files, if you specify multiple in-I,-F,-N, only the last one takes effect.
-U,--update Update if the target file exists and source is newer

3. Example

1) Rename the file and rename Test.txt to Aaa.txt

ls Anaconda-ks.cfg  test  mv  test.txt  lsaaa.txt  Anaconda-ks.cfg  Test

2) Move the file and move the aaa.txt to the test directory

mv aaa.txt test/~]# Tree.├──anaconda-ks.cfg└──test    └──aaa.txt

The MV command is the abbreviation for move, which can be used to move files or rename files, which is also a common command, often used to back up files or directories.

Linux MV Command

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.