09-08-2023, 12:15 PM
Linux Touch Command Options
| Flag | Use Case |
|---|---|
| -a | Change the access time |
| -m | Change the modification time |
| -c | Prevent creating a new file |
| -h | Change the symbolic link timestamp |
| -h | Change the timestamp for symbolic links |
| -t <stamp> | Modify the timestamp. In this case, <stamp> follows the date-time format |
| -d=<string> | Change the timestamp based on the date string |
| -r=<file> | Change the timestamp based on the reference file |
| -v or --version | Display the touch command version |
| --help | Display the help menu |
File Timestamps: In Linux, every file and folder has a timestamp that shows when a file’s content or attributes were modified...

