Tuesday 10 October 2017

touch command

In Unix and Linux touch command use for creating empty file,updating access time and modification time.


  Command  Desc
syntax touch [option] file_name(s)
touch file1 file2 file3This command would create three new empty files.
touch -am file3access(-a) and modification(-m) times to the current time
touch -r file4 file5[-r] is use for reference , to use the times of fille4 for file5
touch -d '1 May 2005 10:22' file8To change the last access time of file8 to 10:22 a.m. May 1, 2005
touch -d '14 May' file9[-d] Partial date change Only the date need be provided.

No comments:

Post a Comment