touch 更改文件时间,创建时间,修改时间等。

[root@server1 /]# stat /bin/bash

File: `/bin/bash’

Size: 722684          Blocks: 1432       IO Block: 4096   regular file

Device: 802h/2050d      Inode: 3524863     Links: 1

Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)

Access: 2008-08-18 13:15:01.000000000 +0800

Modify: 2006-07-12 15:11:53.000000000 +0800

Change: 2008-05-14 12:01:18.000000000 +0800

-------------------------------------------

Here are the definitions of the different UNIX time information on a file with how they are typically referred to in  man pages and the option to list the particular time with the  ls  command.

Access Time | atime | -ul
              This is the time that the file was last accessed, read or written to.
              访问文件

Modify Time | mtime | -l
      
This is the time that the inode information (permissions, name, etc., the metadata, as it were) was last modified
              改文件内容

Change Time | ctime | -cl
              This is the last time the actual contents of the file were last modified.
              改文件名,改文件内容,改文件权限,所有者,所属组

发表回复

您的电子邮箱地址不会被公开。