touch.1

来自「minix操作系统最新版本(3.1.1)的源代码」· 1 代码 · 共 50 行

1
50
字号
.TH TOUCH 1.SH NAMEtouch \- change file access and modification times.SH SYNOPSIS\fBtouch\fR [\fB\-c\fR] [\fB\-a\fR] [\fB\-m\fR] [\fB\-r\fR file] [\fB\-t\fR [CC[YY]]MMDDhhmm[.ss]] [MMDDhhmm[YY]] \fIfile\fR ...\fR.br.de FL.TP\\fB\\$1\\fR\\$2...de EX.TP 20\\fB\\$1\\fR# \\$2...SH OPTIONS.FL "\-c" "Do not create the file if it doesn't already exist".FL "\-a" "Change access time".FL "\-m" "Change modification time".FL "\-r file" "Apply time of specified file".FL "\-t [CC[YY]]MMDDhhmm[.ss]]" "Apply time specified".FL "\-t [MMDDhhmm[YY]]" "Apply time specified (alternate form)".SH EXAMPLES.EX "touch *.h" "Make the \fI.h\fP files look recent".EX "touch -t 199610010000 *" "Change date and time of all files in current directory to midnight Oct 1, 1996".SH DESCRIPTION.PPWith no options specified, the times of last modification and last access are set to the current time.This command is mostly used to trick.I makeinto thinking that a file is more recent than it really is.If the file being touched does not exist, it is created, unless the \fB\-c\fRflag is present..PPThe \fB\-a\fR or \fB\-m\fR flag may be used to change only the access or modification time. The \fB\-r\fR or \fB\-t\fR flag may be used to change the times to match the times of another file or to a specified time..SH "SEE ALSO".BR utime (2)..SH "AUTHOR".PPOriginal author unknown.  Rewritten for POSIX by Peter Holzer(hp@vmars.tuwien.ac.at)..\" man page updated by A. S. Woodhull 2005-01-15

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?