Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

utimes(2)



TOUCH(1)                COMMAND REFERENCE                TOUCH(1)



NAME
     touch - update last modification date of a file

SYNOPSIS
     touch [ -c ] [ -f ] [ -a | -m ] [ -t mmddhhmm[yy] ] [
     filename(s) ]

DESCRIPTION
     Touch attempts to set the modified date of each filename.
     If a filename exists, this is done by reading the first
     character from the file and writing it back.  If a filename
     does not exist, an attempt will be made to create it unless
     the -c option is specified.  The -f option will attempt to
     force the touch in spite of read and write permissions on a
     filename.

OPTIONS
     -a Set the "access time" only. Do not set the "last
        modification" time.

     -c Unless -c is specified, an attempt will be made to create
        filename if it does not exist.

     -f An attempt is made to force the touch in spite of read
        and write permissions on a filename.

     m  Set the "last modification time" only.  Do not set the
        "access" time.

     -t mmddhhmm[yy]
        Set the time(s0 to month day hours minutes (year), rather
        than the current time. If the -t option is not used, the
        current time is the default.

        The -a and -m options cannot be used together.  However,
        either can be used independently of the -t option or with
        -t.

EXAMPLES
     The following example with update the last modification date
     of all files in the directory /tmp:

          touch /tmp/*

RETURN VALUE
     [NO_ERRS]      Command completed without error.

     [USAGE]        Incorrect command line syntax. Execution
                    terminated.

     [NP_WARN]      An error warranting a warning message
                    occurred. Execution continues.



Printed 4/6/89                                                  1





TOUCH(1)                COMMAND REFERENCE                TOUCH(1)



     [P_WARN]       A system error occurred. Execution continues.
                    See intro(2) for more information on system
                    errors.

SEE ALSO
     utimes(2).

















































Printed 4/6/89                                                  2



%%index%%
na:264,99;
sy:363,466;
de:829,675;
op:1504,1062;
ex:2566,227;
rv:2793,380;3509,171;
se:3680,155;
%%index%%000000000130

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026