touch 创建空文件夹及改变文件的时间戳
Syntax format: Touch "option" "File" touch [options] [file]
Attention:
1.mkdir commands and subsequent options and directories, each of which must have at least one space between each element
2. Everything in Linux is a file. Although the touch command cannot create a directory, you can modify the timestamp of the directory
Parameter options: a,m,d,r,t
Case one:
Create multiple files at the same time
Case TWO:
Change the timestamp of a file
Touch-a Ysg #<==-a change last accessed time
Touch-m ysg #<==-M changes the last modified time
Case THREE:
touch-d 20200501 data.txt Specifies the file modification time after the file is created
Touch-r 1.txt Test.txt Modify the properties of the Test.txt and match the 1.txt time properties
Touch-t 201805011030.50 Test.txt
-T is the time attribute for setting a file using [[CC]YY]MMDDHHMM[.SS] format time, that is, century, year, month, day, hour, minute, second
Linux Common Commands--touch