linux 文件和文件夹的ctime,mtime,atime的差别
多了不再赘述,看以下解释
st_atime
Time when file data was last accessed.
Changed by the
following functions: creat(), mknod(), pipe(),
utime(2), and read(2).
st_mtime
Time when data was last modified.
Changed by the fol-
lowing functions: creat(), mknod(), pipe(), utime(),
and write(2).
st_ctime
Time when file status was last changed.
Changed by the
following functions: chmod(), chown(), creat(),
link(2), mknod(), pipe(), unlink(2), utime(), and
write().
ctime不是create。是change的意思。
注意:
ls 中的时间。是mtime
ls -lc filename 列出文件的 ctime
ls -lu filename 列出文件的 atime
ls -l filename 列出文件的 mtime
最新文章
- C#创建DBF自由库 [转]
- Java GC工作原理以及Minor GC、Major GC、Full GC简单总结
- CUBRID学习笔记 31 通过select创建表
- css font-face自定义字体
- 两台windows服务器----SVN的迁移
- sql 参数
- 菱形java代码
- HDU 1045(质因数分解)
- 跨平台编程中的宏定义(__LINE__和__DATE__极其有用)
- jQuery选择器(内容过滤选择器)第四节
- Linux 文件时间记录属性 调优
- Java多线程入门中几个常用的方法
- win10 x64中 windbg x64 安装配置符号库
- Table转换成实体、Table转换成实体集合(可转换成对象和值类型)
- 基于docker的spark-hadoop分布式集群之一: 环境搭建
- Android Room使用详解
- 搭建Eclipse和MyEclipse的开发环境
- 第83天:jQuery中操作form表单
- Jquery常用正则验证
- [软件工程基础]团队作业Week3