1touch(1B)          SunOS/BSD Compatibility Package Commands          touch(1B)
2
3
4

NAME

6       touch - change file access and modification times
7

SYNOPSIS

9       /usr/ucb/touch [-acfm] file...
10
11

DESCRIPTION

13       touch  sets  the access and modification times of each file to the cur‐
14       rent time. file is created if it does not already exist.
15

OPTIONS

17       -a    Change the access time of file. Do not  change  the  modification
18             time unless -m is also specified.
19
20
21       -c    Do not create file if it does not exist.
22
23
24       -f    Attempt to force the touch in spite of read and write permissions
25             on file.
26
27
28       -m    Change the modification time of file. Do not  change  the  access
29             time unless -a is also specified.
30
31

USAGE

33       See  largefile(5)  for  the  description  of the behavior of touch when
34       encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
35

EXIT STATUS

37       The following exit values are returned:
38
39       0     touch executed successfully and all requested changes were made.
40
41
42       >0    An error occurred. touch returns the number of  files  for  which
43             the times could not be successfully modified.
44
45

ATTRIBUTES

47       See attributes(5) for descriptions of the following attributes:
48
49
50
51
52       ┌─────────────────────────────┬─────────────────────────────┐
53       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │Availability                 │SUNWscpu                     │
56       └─────────────────────────────┴─────────────────────────────┘
57

SEE ALSO

59       touch(1), attributes(5), largefile(5)
60
61
62
63SunOS 5.11                        26 Oct 1995                        touch(1B)
Impressum