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