Create empty files or update the timestamp of existing files.
Command | Description |
---|---|
touch test.txt | Create an Empty File |
touch test1.txt test2.txt test3.txt | Create Multiple Files |
touch existing_test.txt | Update the Timestamp of an Existing File |
touch -t 202402171230 test.txt | Change Timestamp to a Specific Date and Time |
touch /home/user/newtest.txt | Create a File in a Specific Directory |
touch -r oldtest.txt newtest.txt | Use Reference File Timestamp |
touch --no-create test.txt | Create a File Without Overwriting an Existing One |
This tool helps you build Linux touch
commands easily. Select options from the checkboxes and input fields to generate the command. The live preview will be updated automatically.