touch

初級
1/5
user@linux:~/workspace$
touch newfile.txt

Explanation

Creates an empty file named newfile.txt. If the file already exists, only its timestamp is updated.

Options

-tSet specific timestamp (YYYYMMDDhhmm)
-cDon't create file if it doesn't exist
-aChange only access time
-mChange only modification time
1This is a newly created file for ownership practice.