Logo
Web01
Ch4os1@web01:~/commands/touch
← View all bash commands

touch

Create an empty file or update the timestamp of an existing file.

Examples

touch newfile.txt
              

Create a new empty file named 'newfile.txt'.

touch existingfile.txt
              

Update the timestamp of 'existingfile.txt'.

Notes

This command affects only the current shell session.