touch [options] file...Arguments explained
- file is the file to create or update.
- -c updates timestamps only if the file already exists.
- -t sets a specific timestamp.
Common examples
touch notes.txtCreates notes.txt if it does not already exist.
touch existing.logRefreshes the modification time without changing file contents.
| Field | Details |
|---|---|
| Command | touch |
| Category | File and Folder Operations |
| Primary use | Creates empty files or updates timestamps. |
| Syntax | touch [options] file... |