Saturday, 18 February 2017

Touch Command Options


Create empty file 

# touch myfile.txt

Create Multiple Files 

# touch myfile.txt myfile2.txt myfile3.txt 

Update Access and modification times 

# touch -m myfile.txt

Explicitly set the access and modification time

# touch -c -t 15101730 myfile.txt

For example the following command sets the access and modification date and time to a file myfile.txt as 17:30 (17:30 p.m.) December 10 of the current year (2015).





No comments:

Post a Comment