The-touch,mkdir of LINUX-13 Basic command

Source: Internet
Author: User
Tags touch command

1, Touch command used to create blank files and modify file time, Format: touch[options [file];

There are three types of file time under Linux

@1, change Time (mtime): Content modification time;

@2, change permissions (ctime): Change attribute and permission time

@3, read time (atime) Read file content time

Touch command
Parameters Role
-A Modify access Time (Atime)
-M Change Time (Mitime)
-D Simultaneous modification (Atime and Mtime)
-T Time to modify [YYMMDDHHMM]

2. The mkdir command is used to create a blank folder format: mkdir[options [Catalog]

mkdir folder name
mkdir command
Parameters Role
-m=mode Default file directory permissions, such as-m755
-P Continuous creation of multi-level catalogs
-V Show creation Process

For example: Create a folder called hack

mkdir hack

viewing permissions with LS

[Email protected] home]# Ls-ld

Continuous creation of/a/b/c and display of the creation process

[Email protected] home]#  mkdir -p-v/a/c/d

The-touch,mkdir of LINUX-13 Basic command

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.