touch command in Linux/Unix

touch --help

touch --help

touch --version

touch --version

touch abc.txt

touch filename

touch 123.c def.txt 123.txt hello.html

touch file1 file2 file3

touch file{1..5}

touch filename-alphabet-integer

touch 987{a..e}

touch filename-integer-alphabet

touch -a abc.txt

touch -a filename

touch -m abc.txt

touch -m filename

touch -t YYMMDDHHMM filename

 

touch -t 1905290815 abc.txt

touch -t YYMMDDHHMM filename

touch -d yesterday abc.txt

touch -d filename

touch -am abc.txt

toch -am filename

 touch -r abc.txt 123.txt

touch -r refrence file filename


Sharing is Caring
Scroll to Top