Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1458469
  • 博文数量: 187
  • 博客积分: 10375
  • 博客等级: 上将
  • 技术积分: 3127
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-07 10:58
文章分类

全部博文(187)

文章存档

2013年(1)

2012年(8)

2011年(28)

2010年(36)

2009年(47)

2008年(67)

我的朋友

分类:

2010-06-09 10:45:02

1, CST同时代表了下面4个时区。

  CST Central Standard Time (USA) UT-6:00

  CST Central Standard Time (Australia) UT 9:30

  CST China Standard Time UT 8:00

  CST Cuba Standard Time UT-4:00

在Linux系统下,用date查看当前系统时间:
[root@localhost ~]# date
Wed Jun  9 10:45:13 CST 2010
[root@localhost ~]# date -u
Wed Jun  9 02:45:16 UTC 2010
 
设定Linux系统时间(MMDDhhmm:月日时分):
[root@localhost ~]# date 06091038
 
2, Linux文件的3种时间属性:
atime(access time) 最后访问这个文件的时间
mtime(modify time) 最后修改这个文件内容的时间
ctime(change time) 变更文件权限等属性而导致inode信息发生更改的最后时间。(c有时被误认为是create)
 
查看文件时间属性的命令:
[root@localhost ~]# stat install.log
  File: `install.log'
  Size: 44677           Blocks: 96         IO Block: 4096   regular file
Device: 801h/2049d      Inode: 960002      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2009-12-21 10:51:12.000000000 +0800
Modify: 2009-07-30 21:15:08.000000000 +0800
Change: 2009-07-30 21:15:13.000000000 +0800
阅读(1050) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~