在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具有一組豐富的用于操作和訪問文件的命令。 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-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 -0400

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

我想我已經有一段時間沒用那個盒子了……上一次我使用Firefox是1月14日。

翻譯自: https://www.howtogeek.com/howto/ubuntu/get-last-accessed-file-time-in-ubuntu-linux/

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/278168.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/278168.shtml
英文地址,請注明出處:http://en.pswp.cn/news/278168.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

MySQL新增從庫

項目背景描述:在項目的開始只有一個MySQL實例在運行,后期因為安全性,壓力,備份等原因需要在此實例的基礎上面新增一個從庫。分析:MySQL主從是基于binlog日志來實現的,那么需要主服務器開啟binlog&#xff0…

第一個議題

① 在每個問題后面,請說明哪一章節的什么內容引起了你的提問,提供一些上下文 ② 列出一些事例或資料,支持你的提問 。 ③ 說說你提問題的原因,你說因為自己的假設和書中的不同而提問,還是不懂書中的術語,還…

在Windows Vista中使用符號鏈接

One of the long-awaited features in Windows Vista was the ability to use symbolic links, the way you can in linux. Sadly, they don’t work quite as well as they could, but it’s a big upgrade from prior versions, and has solved a number of problems for me …

shell學習筆記--自我總結

一、文件 touch file # 創建空白文件 rm -rf 目錄名 # 不提示刪除非空目錄(-r:遞歸刪除 -f強制) dos2unix # windows文本轉linux文本 unix2dos # linux文本轉windows文本 enca filename # 查看編碼 安裝 yu…

201671030107胡文艷實驗三作業互評與改進報告

任務1:要給出所點評作業的鏈接地址,點評內容和閱讀心得 讀了你的這篇博客,一方面給我的印象就是排版整齊,內容充實,態度認真;另外一方面就是通過別人反省自己,看了你的博客,我覺得我…

進程handle獲取線程_獲取進程中的線程列表

進程handle獲取線程The System.Diagnostics namespace contains functions that allow you to manage processes, threads, eventlogs and performance information. System.Diagnostics命名空間包含允許您管理進程,線程,事件日志和性能信息的函數。 The…

2018-3-28Linux系統管理(16)計算機網絡基礎

在這一章當中我們講述計算機網絡基礎。一、計算機網絡網絡通信就像人與人之間的交流一樣,說同一種語言,而后雙方進行無障礙的通信交流,那么兩臺主機通信時,它們彼此交換數據的格式的前提為互相理解才可以,我們此前也有…

從Ubuntu命令行按進程名稱殺死進程

There are a number of ways to kill a process if you know the name of the process. Here’s a couple different ways you can accomplish this. We are going to assume that the process we are trying to kill is named irssi 如果您知道進程的名稱,則有多種…

18 南京 D

裸的最小球覆蓋。 坐標范圍大一些所以我們把初始的溫度也設置的大一些。 1 #include <bits/stdc.h>2 using namespace std;3 typedef long long ll;4 typedef double db;5 const db INF 1e100;6 const db delta 0.98;7 const db eps 1e-8;8 struct p3{9 db x,y,z;…

如何在iPhone或iPad的控制中心中控制智能家居設備

Apple’s Home app offers quick controls for controlling smart lights, doorbells, thermostats, and other smart home devices—right in your iPhone or iPad’s Control Center. Here’s how to set it up and use it. Apple的Home應用程序可在iPhone或iPad的控制中心內…

亞信安全與安徽電信共創“云網融合”安全新局面

全面提升公共安全能力 聯合推“天翼U盾”保障移動政務安全 在近日舉辦的安徽“互聯網”產業合作峰會上&#xff0c;亞信安全宣布與中國電信安徽公司達成戰略合作&#xff0c;雙方將在“云網融合”的生態基礎上打造特色安全服務、促進政企協同安全監管、共創網絡安全平安城市等…

idea中開啟Run Dashboard

若沒有 下一步 ok 轉載于:https://www.cnblogs.com/aijiajia1314/p/10551007.html

電臺復活節_如何玩Android 11的隱藏復活節彩蛋游戲

電臺復活節Justin Duino賈斯汀杜伊諾(Justin Duino)Google includes a hidden “Easter Egg” with each new Android version. Android 11 has one of the more elaborate Easter Eggs as it’s actually a game you can play. We’ll show you how to find it and play. Goog…

AQS源碼閱讀筆記(一)

AQS源碼閱讀筆記 先看下這個類張非常重要的一個靜態內部類Node。如下&#xff1a; static final class Node {//表示當前節點以共享模式等待鎖static final Node SHARED new Node();//表示當前模式以獨占模式等待鎖static final Node EXCLUSIVE null;//表示當前線程等待鎖的動…

python之實現從ftp下載文件到本地

#!/usr/bin/python # codingutf-8 import os from ftplib import FTP # 引入ftp模塊class MyFtp:ftp FTP()def __init__(self,host,port21):self.ftp.connect(host,port)def login(self,username,pwd):self.ftp.set_debuglevel(2) # 打開調試級別2&#xff0c;顯示詳細信息s…

如何在Instagram上過濾冒犯性評論

Shubham AgarwalShubham AgarwalIf you have a public Instagram profile, chances are you’ve been a victim of inappropriate comments from strangers. Given the social network’s vast size, it’s practically impossible to escape such bad actors. Thankfully, Ins…

復雜性思維中文第二版 附錄 A、算法分析

附錄 A、算法分析 原文&#xff1a;Appendix A Analysis of algorithms 譯者&#xff1a;飛龍 協議&#xff1a;CC BY-NC-SA 4.0 自豪地采用谷歌翻譯 部分參考了《Think Python 2e 中譯本 第二十一章&#xff1a;算法分析》 算法分析 (Analysis of algorithms) 是計算機科學的一…

如何在Windows 8.1中獲取Windows 10樣式的開始菜單

On January 21, Microsoft officially announced the new features that would be included in Windows 10. While you’ll have to wait for the release to enjoy most of the new features, you can take advantage of the new Windows 10 Start menu today. 1月21日&#x…

Android工程中javax annotation Nullable找不到的替代方案

我們在某些Android開源庫中會遇到下面的引用找不到的問題&#xff1a;import javax.annotation.Nonnull;import javax.annotation.Nullable; 其實Android實現了javax的類似注解&#xff0c;可以使用下面的引用替換&#xff1a;import android.support.annotation.NonNull;impor…

HDU1561:The more, The Better——題解

http://acm.hdu.edu.cn/showproblem.php?pid1561 ACboy很喜歡玩一種戰略游戲&#xff0c;在一個地圖上&#xff0c;有N座城堡&#xff0c;每座城堡都有一定的寶物&#xff0c;在每次游戲中ACboy允許攻克M個城堡并獲得里面的寶物。但由于地理位置原因&#xff0c;有些城堡不能直…