Create a file
You will always encounter situations where empty files are created. Sometimes the application wants a log file to exist before they can write the data. At this point, you can easily create an empty file using the Touch command.
Touch creates an empty file and takes your user name as the owner of the file. The file size is 0 because you built an empty file.
Touchls -l test_one10 : test_one$
Touch modifies the file access time and modification time to the current time, which does not modify the file contents
ls -l test_one10:+Touch ls -l test_one10: test_one$
To modify access time, you need to use the-a parameter. But actually, CTime was changed with Atime.
You can use the- T parameter to specify a time instead of the current time [YY]MMDDHHMM[.SS] month day minutes and seconds
3rd Chapter Basic Bash Shell commands (2)