Linux Terminal Glossary
›
File Operations
touch -t 202301011200 file.txt
Category:
File Operations
touch -t 202301011200 file.txt
Copy command
Set a specific timestamp on a file
Sets a specific date and time on a file's timestamp. The format is YYYYMMDDhhmm. Useful for testing or sorting files by date.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.