|
|
发表于 2006-8-30 10:02:25
|
显示全部楼层
看一看 touch 的 man page
NAME
touch - change file timestamps
SYNOPSIS
touch [OPTION]... FILE...
DESCRIPTION
Update the access and modification times of each FILE to the current
time.
-c, --no-create
do not create any files
如果 touch 找不到 FILE, 它就会创建一个空的 FILE,加上 -c 可以关掉这个功能
在 Linux 中,一切都是文件,目录也是文件,在一个目录中,“.” 表示当前目录,即 `pwd`
如果执行 touch .,就是将当前目录的时间戳改为当前时间, ls -l 不会显示".", 使用 ls -la 可以
由于每一个目录下都有 ".", 所以在每一个目录下执行 find -name . 都会有返回值 |
|