MV Command--linux command to apply a large dictionary 729 commands interpretation

Source: Internet
Author: User

The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"

tell 729 commands, 1935 examples

Learn about the Linux system's reference books, desk book, encountered the command or command not understand the options can be found

Strive to publish content every day


airfish2000 "blog, More commands to view blogs:

http://airfish2000.blog.51cto.com/10829608/1883683


MV Command

use the MV command to change the names of files and directories and to move the paths of files and directories.
Command syntax:

MV [ Options ] [ source file | Directory ] [ destination file | Catalogue ]

The meanings of the options in the command are as follows is shown.

table mv command option meaning

Options

Meaning

-I.

Ask before overwriting

-F

Do not ask before overwriting

-N

Do not overwrite existing files

-U

Move only if the source file file is newer than the destination file or the destination file does not exist

example 4.38: move All files under the/root/pic directory with the suffix ". png" to the/usr/local/share/pic directory.

[Email protected]~]# mv-f/root/pic/*.png/usr/local/share/pic

example 4.39: Renaming the/root/pic/kpic.png file to /root/pic/life.png.

[[Email protected]~]# mv/root/pic/kpic.png/root/pic/life.png

Example 4.40: Change the directory /root/pic name to/root/mypic.

[[Email protected]~]# mv/root/pic/root/mypic


This article is from the "airfish2000" blog, make sure to keep this source http://airfish2000.blog.51cto.com/10829608/1883683

MV Command--linux command to apply a large dictionary 729 commands interpretation

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.