64. Shell Command, MV, RM, mkdir

Source: Internet
Author: User

1. mv

1) mV-move (rename) files

MV [Option] source dest

MV [Option]... source... directory

Rename source to DEST, or move source (s) to directory.

2) Options

①-F, do not prompt before Overwriting

②-I, prompt before Overwrite

③-N, -- no-clobber do not overwrite an existing file

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

④-U, -- Update move only when the source file is newer than the destination file or when the destination file is missing

⑤-V, -- verbose explain what is being done

2. rm

1) Rm-removes each specified file. By default, it does not remove directories.

Rm-Remove files or directories

Rm [Option]... file...

2) Options

①-F, ignore nonexistent files, never prompt

②-I Prompt before every removal

③-R, remove directories and their contents recursively

④-V, explain what is being done

3. mkdir

1) mkdir-make Directories

Mkdir [Option]... directory...

2) Option

①-M, set file mode (as in chmod), not a = rwx-umask

②-P, no error if existing, make parent directories as needed

③-V, print a message for each Created directory

4. rmdir

Reference

[1] MAN Manual

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.