previous contents up next

Unix for Advanced Users

6. Manipulating Files

6.1. Creating Files

6.1.2 touch

The touch command creates empty files where none previously existed. If you use an existing file as the argument to the touch command then the last accessed time is changed to the time when the touch command was run.

Create a file and look at its timestamp using ls -l
Touch the file using the touch command and recheck the timestamp

previous contents up next