Difference between revisions of "Touch (command)"

From wikieduonline
Jump to navigation Jump to search
Line 31: Line 31:
 
* <code>[[rm]]</code>
 
* <code>[[rm]]</code>
 
* <code>[[mkdir -p]]</code>
 
* <code>[[mkdir -p]]</code>
install -D /dev/null /path/to/createfile.txt
+
* <code>[[install]] -D /dev/null /path/to/createfile.txt</code>
  
 
== See also ==
 
== See also ==

Revision as of 01:20, 4 February 2022

touch[1] is a command used to update the access date and/or modification date of a computer file or directory or to create it.


  • touch /etc/resolv.conf
  • touch: cannot touch '/etc/resolv.conf': No such file or directory


touch file.txt
touch: cannot touch 'file.txt': Read-only file system




missing file operand

 touch
touch: missing file operand
Try 'touch --help' for more information.


Related commands

See also

  • https://en.wikipedia.org/wiki/Touch_(command)
  • Advertising: