Linux common commands brief--mkdir and Touch

Source: Internet
Author: User
Tags parent directory
First, Introduction
1. mkdir is used to create a directory. Syntax: mkdir [options] [parameters]
2. Touch is used to create files. Syntax: Touch [options] [parameters]
Second, common options
1, mkdir
-Z: Sets the security context, which is valid with SELinux;
-m< target attribute;: Set directory permissions while setting directory;
-P: Established together with parent directory;
-V: Displays the creation process details;
--version display version information;
--help view Help options;
2. Touch
-A: Change the file read time;
-C: Do not create any files;
-D < time date >: Use a custom DateTime instead of a system time;
-F: Ignore the non-processing, only responsible for the BSD version of the touch directive compatibility issues;
-M: The time when the content of the file was created or modified;
-R < Reference file or directory >: Set the date and time of the specified file or directory to the same date and time as the reference file or directory;
-T < datetime >: Use time in [[CC]YY]MMDDHHMM[.SS] format instead of current time;
--version display version information;
--help view Help options;

Linux common commands brief--mkdir and Touch

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.