Forrest logo
tool overview
On this page you find all important commands for the CLI tool touch. If the command you are looking for is missing please ask our AI.

touch

The touch utility sets the modification and access times of files. If any file does not exist, it is created with default permissions

List of commands for touch:

  • linux:files:create Create or update a file.
    $ touch ${filename}
    try on your machine
    explain this command
  • linux:files:move:file Move a file to another destination (or just rename it).
    $ touch ${filename}
    try on your machine
    explain this command
  • touch:tldr:53417 touch: Set the file time of a specific file to the time of anothe[r] file and don't [c]reate file if it doesn't exist.
    $ touch -c -r ${~--emacs} ${filename1 filename2 ---}
    try on your machine
    explain this command
  • touch:tldr:9c1ce touch: Set the file [a]ccess or [m]odification times to the current one and don't [c]reate file if it doesn't exist.
    $ touch -c -${select} ${filename1 filename2 ---}
    try on your machine
    explain this command
  • touch:tldr:ad572 touch: Set the file [t]ime to a specific value and don't [c]reate file if it doesn't exist.
    $ touch -c -t ${YYYYMMDDHHMM-SS} ${filename1 filename2 ---}
    try on your machine
    explain this command
tool overview