Subscribe to How-To Geek Підписатись на How-To Geek

Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Get Last Accessed File Time In Ubuntu Linux Отримати останнього доступу файлу Час в Ubuntu Linux

Ubuntu Linux has a rich set of commands for manipulating and accessing files. Ubuntu Linux має багатий набір команд для управління і доступу до файлів. The stat utility gives detailed access to file information, including last accessed and last modified file time. Стат утиліта надає доступ до докладної інформації про файли, включаючи останнього доступу і останньої зміни файлів.

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 [Geek @ Ubuntu Firefox] # стат Firefox-BIN 
   File: `firefox-bin' Файл: `Firefox-бін 
   Size: 9781136         Blocks: 19136      IO Block: 4096   Regular File Розмір: 9781136 блоків: 19136 IO Блок: 4096 звичайного файлу 
 Device: 302h/770d       Inode: 555615      Links: 1 Пристрій: 302h/770d Inode: 555615 Links: 1 
 Access: (0755/-rwxr-xr-x)  Uid: (  500/  geek)   Gid: (  500/  geek) Доступ: (0755/-rwxr-xr-x) Uid: (500 / Geek) Gid: (500 / Geek) 
 Access: 2006-01-14 17:41:15.000000000 -0500 Доступ: 2006-01-14 17:41:15.000000000 -0500 
 Modify: 2005-05-11 14:17:00.000000000 -0400 Змініть: 2005-05-11 14:17:00.000000000 -0400 
 Change: 2005-05-13 23:31:44.000000000 -0400 Зміни: 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 було 14 січня.

This article was originally written on 11/26/06 Tagged with: Ця стаття була спочатку написана на 11/26/06 тегами: Ubuntu Ubuntu , , Ubuntu Tips & Tweaks Ubuntu Поради & Tweaks

Daily Email Updates Email Щоденні оновлення

You can get our how-to articles in your inbox each day for free. Ви можете отримати наші довідкові статті у Вашу поштову скриньку щодня безкоштовно. Just enter your name and email below: Просто введіть ваші ім'я та адресу електронної пошти нижче:


Name: Ім'я:
Email: Електронна пошта:

Comments (1) Коментарі (1)

  1. kash каш

    Is there any way to know who accessed the file last time. Чи є спосіб дізнатися, хто отримав доступ до файлу в останній раз.


Our Friends Наші друзі
Getting Started Приступаючи до роботи


About How-To Geek Про How-To Geek
What Is That Process? Що це за процес?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. Всі права захищені.