Linux Common commands

Source: Internet
Author: User
Tags touch command file permissions

First, Touch command

Atime: Modified time for file permissions or properties touch-a to modify

Mtime: Modification time of file content touch-c to modify

touch-d simultaneous modification of these two times

Second, mkdir create a blank directory

The main command is Mkdir-p A/B/C/D, which creates a file directory with nested relationships in the stack

Third, CP command

Cp-p preserve the original file's property copy

-D If the object is a "linked file", the properties of the connection file are preserved

-R recursive replication for directory------Common

-I if the target file is present, ask whether to overwrite

-A equals-pdr

Four, mv command: For cutting files that move files, or renaming files,

RM command: Used to delete files or directories,

The-f parameter is to cancel the confirmation before each deletion, that is, force the delete

The-r parameter is a recursive delete directory,

Linux Common commands

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.