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