Linux Learning (2) file operations

Source: Internet
Author: User
Tags create directory

PWD Displays the current directory


Touch to create a blank file or to update the time of an existing file


. The file that starts with is a hidden file


Listing Directory Contents


Ls-a Show all files including hidden files

Ls-r Show Details

LS-R display the structure of subdirectories

LS-LD display of directory and linked information



File view types of files


CD Switch Directory


Copy CP source file destination file (directory)

Copy folder cp-r source folder destination Folder

Displays the details of the replication cp-v


Moving the MV File destination directory

Move and modify the file name MV File destination Directory/file name

Rename the MV file filename


Delete File rm

Interactive -I.

Delete Folder -R

Force Delete -F


Create directory MkDir

Delete directory RmDir cannot be deleted as empty folder


This article from "PURP1E's personal blog" blog, declined reprint!

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.