Difference between revisions of "Touch (command)"
Jump to navigation
Jump to search
↑ https://en.wikipedia.org/wiki/Touch_(command)
Line 1: | Line 1: | ||
<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. | ||
− | + | ||
− | touch /etc/resolv.conf | + | touch [[/etc/resolv.conf]] |
touch: cannot touch '/etc/resolv.conf': No such file or directory | touch: cannot touch '/etc/resolv.conf': No such file or directory | ||
− | + | ||
+ | touch file.txt | ||
+ | touch: cannot touch 'file.txt': [[Read-only file system]] | ||
[[touch]] ~/[[.ssh]]/[[authorized_keys]] | [[touch]] ~/[[.ssh]]/[[authorized_keys]] |
Revision as of 12:21, 5 October 2020
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
touch ~/.ssh/authorized_keys
Related commands
See also
- file, File system, directory,
touch
,mkdir
,ls
,ln
truncate
,fallocate
,split
,stat
, inode, File descriptor, superblock, block size (blockdev
),fuser
,lsof
,scrub
,chattr
, ulimit (nofiles),cp
,mv
,file (command)
,mkfifo
,chmod
Advertising: