Galaxie Shell 0.2.6 documentation


Navigation:   | Index   | Search   | Top   | Up   | Prev   | Next   |
Table of Content: |touch |

© Copyright 2020-2024, Galaxie Shell Team.

Top » Manuals Pages » touch

touchΒΆ

NAME
  touch - change file access and modification times

SYNOPSIS
  touch [-acm] [-r ref_file|-t time|-d date_time] file...

DESCRIPTION
  The touch utility shall change the last data modification timestamps, the last
  data access timestamps, or both.

  The time used can be specified by the -t time
  option-argument, the corresponding time fields of the file referenced by the -r
  ref_file option-argument, or the -d date_time option-argument, as specified in
  the following sections. If none of these are specified, touch shall use the
  current time.

OPERANDS
  file  A pathname of a file whose times shall be modified.

OPTIONS
  -a  Change the access time of file. Do not change the modification time
      unless -m is also specified.
  -c  Do not create a specified file if it does not exist. Do not write any
      diagnostic messages concerning this condition.
  -m  Change the modification time of file. Do not change the access time
      unless -a is also specified.
  -d  Use the specified date_time instead of the current time
  -r  Use the corresponding time of the file named by the pathname ref_file
      instead of the current time.
  -t  Use the specified time instead of the current time. The option-argument
      shall be a decimal number of the form

EXIT STATUS
  0   The utility executed successfully and all requested changes were made.
  >0  An error occurred.

Top » Manuals Pages » touch

© Copyright 2020-2024, Galaxie Shell Team.
This page is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License (CC BY-NC-SA 4.0).
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

Last updated on None.
Created using Sphinx 8.0.2.