Editing Touch (command)

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{lowercase}}
 
 
<code>touch</code><ref>https://en.wikipedia.org/wiki/Touch_(command)</ref> is a command used to update the access date and/or modification date of a computer [[file]] or directory or to create it.
 
<code>touch</code><ref>https://en.wikipedia.org/wiki/Touch_(command)</ref> is a command used to update the access date and/or modification date of a computer [[file]] or directory or to create it.
  
 +
<pre>
 +
touch /etc/resolv.conf
 +
touch: cannot touch '/etc/resolv.conf': No such file or directory
 +
</pre>
  
*<code>touch [[/etc/resolv.conf]]</code>
+
  [[touch]] ~/.ssh/authorized_keys
*<code>touch: cannot touch '/etc/resolv.conf': No such file or directory</code>
 
 
 
 
 
  touch file.txt
 
touch: cannot touch 'file.txt': [[Read-only file system]]
 
 
 
 
 
* <code>[[mkdir -p]] "$(dirname "$1")" && [[touch]] "$1"</code>
 
 
 
 
 
* <code>[[touch]] ~/[[.ssh]]/[[authorized_keys]]</code>
 
 
 
 
 
*<code>touch [[.pg_service.conf]]</code>
 
 
 
===missing file operand===
 
  touch
 
touch: missing file operand
 
Try '[[touch --help]]' for more information.
 
  
  
Line 29: Line 13:
 
* <code>[[fallocate]]</code>
 
* <code>[[fallocate]]</code>
 
* <code>[[type]] nul > [[authorized_key]]</code> ([[Windows]])
 
* <code>[[type]] nul > [[authorized_key]]</code> ([[Windows]])
* <code>[[rm]]</code>
 
* <code>[[mkdir -p]]</code> or <code>[[mkdir --parents]]</code>
 
* <code>[[install]] -D /dev/null /path/to/createfile.txt</code>
 
* New-Item example.txt
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: