touch [Command]

, , Leave a comment

Command touch

Changes the timestamp of file.


touch [options] files


-c prescribes not to touch the file if it does not exist.
-d time, using the specified time.
-r file uses a timestamp of the mentioned file.
-t MMDDhhmm uses the specified date and time.


touch command lets you change the date and time of last modification file (this information is stored with the file). When you enter touch without options as timestamp file using current date and time. If the specified file does not There, touch creates a new file size 0 bytes.


touch test.txt

creates a new empty file named test.txt


Leave a Reply