[Study notes] basic Linux operations (3) --- Basic Linux File operation management

Source: Internet
Author: User
Course connection: Linux file basic operations management copy file and directory cp Source File (folder) target File (folder) if copied in the same working directory need to be renamed.

Course connection: Basic Linux File operation management

Copy files and directories

Cp Source File (folder) target File (folder)

You need to rename a copy in the same working directory.

-R copy folder-v shows how to move the copied details, rename the file and directory

Mv Source File (folder) target path/name

If it is moved to the same working directory, it is renamed.

-R mobile folder-v displays the details of mobile file creation and deletion.

Touch creates a file

Rm delete File

-R recursively delete folders (including folder content)-I interactive delete-f force delete create and delete folders

Create a folder using mkdir

Rmdir: Delete a folder (non-empty folders cannot be deleted)

Rm-r can delete non-empty folders.

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.