博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在Ubuntu Linux中获取上次访问的文件时间
阅读量:2513 次
发布时间:2019-05-11

本文共 1378 字,大约阅读时间需要 4 分钟。

Ubuntu Linux has a rich set of commands for manipulating and accessing files. The stat utility gives detailed access to file information, including last accessed and last modified file time.

Ubuntu Linux具有一组丰富的用于操作和访问文件的命令。 stat实用程序可提供对文件信息的详细访问,包括上次访问和上次修改的文件时间。

From the terminal window, run the command with this syntax:

在终端窗口中,使用以下语法运行命令:

stat filename

统计文件名

Here’s an example of checking the last time I’ve run Firefox on one of my machines:

这是检查我上次在其中一台计算机上运行Firefox的示例:

[geek@ubuntu firefox]# stat firefox-bin  File: `firefox-bin'  Size: 9781136         Blocks: 19136      IO Block: 4096   Regular FileDevice: 302h/770d       Inode: 555615      Links: 1    Access: (0755/-rwxr-xr-x)  Uid: (  500/  geek)   Gid: (  500/  geek)Access: 2006-01-14 17:41:15.000000000 -0500Modify: 2005-05-11 14:17:00.000000000 -0400Change: 2005-05-13 23:31:44.000000000 -0400
[geek@ubuntu firefox]# stat firefox-bin  File: `firefox-bin'  Size: 9781136         Blocks: 19136      IO Block: 4096   Regular FileDevice: 302h/770d       Inode: 555615      Links: 1    Access: (0755/-rwxr-xr-x)  Uid: (  500/  geek)   Gid: (  500/  geek)Access: 2006-01-14 17:41:15.000000000 -0500Modify: 2005-05-11 14:17:00.000000000 -0400Change: 2005-05-13 23:31:44.000000000 -0400

I guess I haven’t used that box in a while… last time I used firefox was january 14th.

我想我已经有一段时间没用那个盒子了……上一次我使用Firefox是1月14日。

翻译自:

转载地址:http://covwd.baihongyu.com/

你可能感兴趣的文章
四种加载React数据的技术对比(Meteor 转)
查看>>
Airthmetic_Approching
查看>>
操作文本文件
查看>>
公司项目的几个问题
查看>>
解决win7下打开Excel2007,报“向程序发送命令时出现问题”的错误
查看>>
Velocity快速入门教程
查看>>
关于集合常见的问题
查看>>
车牌正则表达式
查看>>
Win form碎知识点
查看>>
避免使用不必要的浮动
查看>>
第一节:ASP.NET开发环境配置
查看>>
sqlserver database常用命令
查看>>
rsync远程同步的基本配置与使用
查看>>
第二天作业
查看>>
访问属性和访问实例变量的区别
查看>>
Spring MVC 异常处理 - SimpleMappingExceptionResolver
查看>>
props 父组件给子组件传递参数
查看>>
【loj6038】「雅礼集训 2017 Day5」远行 树的直径+并查集+LCT
查看>>
十二种获取Spring的上下文环境ApplicationContext的方法
查看>>
UVA 11346 Probability 概率 (连续概率)
查看>>