Linux--MV

Source: Internet
Author: User

MV (1) User Commands MV (1)



NAME
Mv-move (rename) files

Synopsis

To move a single file:
MV [OPTION] ... [-T] SOURCE DEST #移动一个文件到另一个地方, in fact this is a rename usage

To move multiple files or directories:
MV [OPTION] ... SOURCE ... Directory #移动多个文件到一个目录, where the file can be a normal file, or it can be a directory
MV [OPTION] ...-t DIRECTORY SOURCE ...


DESCRIPTION
Rename source to DEST, or move source (s) to DIRECTORY.

Mandatory arguments to long options is Mandatory for short options too.

--backup[=control]
Make a backup of each existing destination file

-B like--backup but does don't accept an argument



-F,--force #强制覆盖
Do not prompt before overwriting

-I.,--interactive #覆盖前进行询问
Prompt before overwrite

-N,--no-clobber #并进行覆盖
Do not overwrite an existing file

-U,--update
Move only if the SOURCE file is newer than the destination file or when the destination file is missing
#仅移动要更新的文件


-V,--verbose
Explain what's being done

#显示移动的过程


If you specify more than one of-i,-F,-N, only the final one takes effect.

--strip-trailing-slashes
Remove any trailing slashes from each SOURCE argument

-S,--suffix=suffix
Override the usual backup suffix

-T,--target-directory=directory
Move all SOURCE arguments to DIRECTORY

-T,--no-target-directory
Treat DEST as a normal file



--help Display this Help and exit

--version
Output version information and exit

The backup suffix is ' ~ ', and unless set with--suffix or Simple_backup_suffix. The version control method may be selected via the--backup
option or through the VERSION_CONTROL environment variable. Here is the values:

None, off
Never make backups (even if--backup is given)

Numbered, T
Make numbered backups

Existing, nil
Numbered if numbered backups exist, simple otherwise

Simple, never
Always do simple backups

AUTHOR
Written by Mike Parker, David MacKenzie, and Jim meyering.

REPORTING BUGS
Report MV Bugs to [email protected]
GNU coreutils Home page: General help using GNU software: Report MV translation bugs to
COPYRIGHT
copyright©2013 Free Software Foundation, Inc. License gplv3+: GNU GPL version 3 or later This was free software:you was free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

See ALSO
Rename (2)

The full documentation to MV is maintained as a Texinfo manual. If the info and MV programs is properly installed at your site, the com‐
Mand

Info coreutils ' MV invocation '

Should give you access to the complete manual.



GNU Coreutils 8.21 March 2014 MV (1)

Linux--MV

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.