Linux uses the touch command to create files

Time:2021-3-9

usage method:

$ touch --help
Usage: touch [option]... File
If the specified file does not exist, a blank price is created. Otherwise, the access time and modification time of each file are set to the current time.

The parameters that long options must use are also required for short options.
  -A change access time only
  -d. -- date = string replaces the current time with the specified time
  -M only changes the modification time
  -T stamp replaces the current time with a time in [[CC] YY] mmddhhmm [. SS] format

Use example:

#Create a blank file
touch file1 file2
#Modify the most recent modification and the most recent change timestamp of the file
touch file1
#Modify the most recent access timestamp of a file
touch -a file1 -t "202010101111"
#Modify the latest modification timestamp of the file
touch -m file1 -t "202110101111"
#Modify the most recent access and most recently modified timestamp of the file
touch -d "20221010" file1