×

This article covers a few basic examples of the touch command. For more information use 'man touch' to view the manual page. In fact, the touch command is a standard command used in UNIX/Linux operating system which is used to create, change and modify timestamps of a file.


Touch Command Options

  • -a to change the access time only.
  • -c if the file does not exist, do not create it.
  • -d to update the access and modification times.
  • -m to change the modification time only.
  • -r to use the access and modification times of file.
  • -t creates a file using a specified time.



This article will guide you on how to use the #cat #command to display or create a new file on #Linux. To save a file, you must first be in Command mode. Press Esc to enter Command mode, and then type :wq to write and quit the file. The other, quicker option is to use the keyboard shortcut ZZ to write and quit.




More Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on IbmiMedia.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com