touch
Verified for current stable LTS
Touch Command: Set Timestamp By Parsing String
Use for set timestamp by parsing string with Touch. Exact CLI syntax to set timestamp by parsing string using Touch.
When to use this: Use for set timestamp by parsing string with Touch.
Command Syntax
touch -d "<last year|5 hours|next thursday|nov 14|...>" <path/to/file> touch -d "<last year|5 hours|next thursday|nov 14|...>" <path/to/file> Command Breakdown
-d- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to set timestamp by parsing string using Touch.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Touch Command: Create Multiple Files Increasing Number
touch {{path/to/file{1..10}}} Touch Command: Create Multiple Files Letter Range touch {{path/to/file{a..z}}} Touch Command: Create Specific Files touch <path/to/file1 path/to/file2 ...> Touch Command: Set Access Modification Time Current No Create touch -c <-a|-m> <path/to/file1 path/to/file2 ...> Touch Command: Set Time To Specific Value No Create touch -c -t <YYYYMMDDHHMM.SS> <path/to/file1 path/to/file2 ...>