在Ubuntu Linux中获取上次访问的文件时间
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具有一組豐富的用于操作和訪問(wèn)文件的命令。 stat實(shí)用程序可提供對(duì)文件信息的詳細(xì)訪問(wèn),包括上次訪問(wèn)和上次修改的文件時(shí)間。
From the terminal window, run the command with this syntax:
在終端窗口中,使用以下語(yǔ)法運(yùn)行命令:
stat filename
統(tǒng)計(jì)文件名
Here’s an example of checking the last time I’ve run Firefox on one of my machines:
這是檢查我上次在其中一臺(tái)計(jì)算機(jī)上運(yùn)行Firefox的示例:
[geek@ubuntu firefox]# stat firefox-binFile: `firefox-bin'Size: 9781136 Blocks: 19136 IO Block: 4096 Regular File Device: 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 -0500 Modify: 2005-05-11 14:17:00.000000000 -0400 Change: 2005-05-13 23:31:44.000000000 -0400 [geek@ubuntu firefox]# stat firefox-binFile: `firefox-bin'Size: 9781136 Blocks: 19136 IO Block: 4096 Regular File Device: 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 -0500 Modify: 2005-05-11 14:17:00.000000000 -0400 Change: 2005-05-13 23:31:44.000000000 -0400I guess I haven’t used that box in a while… last time I used firefox was january 14th.
我想我已經(jīng)有一段時(shí)間沒(méi)用那個(gè)盒子了……上一次我使用Firefox是1月14日。
翻譯自: https://www.howtogeek.com/howto/ubuntu/get-last-accessed-file-time-in-ubuntu-linux/
總結(jié)
以上是生活随笔為你收集整理的在Ubuntu Linux中获取上次访问的文件时间的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 短语密码_使用密码短语以提高安全性
- 下一篇: 在Linux中修复U盘