xref: /original-bsd/usr.bin/touch/touch.1 (revision 3651b6b8)
1.\" Copyright (c) 1991 Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" %sccs.include.redist.man%
8.\"
9.\"     @(#)touch.1	6.4 (Berkeley) 06/27/91
10.\"
11.Dd
12.Dt TOUCH 1
13.Os
14.Sh NAME
15.Nm touch
16.Nd update date last modified of a file
17.Sh SYNOPSIS
18.Nm touch
19.Op Fl c
20.Op Fl f
21.Ar file ...
22.Sh DESCRIPTION
23The
24.Nm touch
25utility
26changes the modification and or access times
27of the given
28.Ar file .
29.Pp
30Available options:
31.Bl -tag -width Ds
32.It Fl c
33Do not create a specified file if it does not exist.
34Do not write any diagnostic messages concerning this
35condition.
36.It Fl f
37Attempt to force the
38.Nm touch
39in spite of read and write permissions on a
40.Ar file .
41.Sh SEE ALSO
42.Xr utimes 2
43.Sh HISTORY
44A
45.Nm
46command appeared in
47.At v7 .
48This command is
49.Ud .
50