Cmd Generator

touch

Change file timestamps or create files.

touch

Examples

# Create empty file
touch newfile.txt

# Create multiple files
touch file1.txt file2.txt file3.txt

# Set specific timestamp
touch -t 202401011200 file.txt

# Use reference file
touch -r ref.txt target.txt

# Don't create if missing
touch -c existing.txt