This box searches only this space. The box at the upper right searches the entire iPlant wiki.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Touch is a command that updates the access and modification times of each file to the current system time. This is a useful tool for quick and simple file creation and file management. Being able to quickly manage and alter time-stamps and reference time information poses to be valuable when working on projects will multiple files in which chronological structure is required. A user have faulty time stamps due to file migration from different machines, and seeks to organize his/her files in a given time order. Another user may want to make multiple empty files quickly as place holders. All is possible with the use of the touch command.

The format is the following:

touch [option] [file]

A couple options available include:

-a which changes only the access time

-m change only the modification time

-t uses a desired time stamp; format is--> [[CC]YY]MMDDhhmm[.ss]


If sample.txt exists, touch updates the access and modification to the current time. However, if sample.txt does not exist, it will be created.

touch sample.txt

Click on the link  listed for more command options and information on the touch linux command