How to know last Accessed File Time in Ubuntu
This post was written by admin on August 29, 2009
Posted Under: General
Posted Under: General
Ubuntu has a utility called stat that shows detailed access to file information, including the size,last accessed and modified file time.
In the terminal window,go to the folder that include the file you want.Run following command
stat filename
For example,
wraith@wraith-desktop:~$ stat install_flash_player_10_linux.tar.gz
File: `install_flash_player_10_linux.tar.gz'
Size: 4044751 Blocks: 7912 IO Block: 4096 regular file
Device: 807h/2055d Inode: 1310747 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2009-08-29 20:09:23.000000000 +0800
Modify: 2009-07-25 08:07:31.000000000 +0800
Change: 2009-08-29 19:57:28.000000000 +0800
Here shows last accessed and modified time,and the size in B.
Related posts:
- Synchronise different time clock in Windows and Ubuntu dual-boot system
- Add “open as root” to File/Folder Right-Click menu in Ubuntu
- Instant LAN File Sharing with one command in Ubuntu
- How to set Ubuntu Server System Clock
- Howto expand swap space by adding a swap file in Ubuntu
Tags: tips

Reader Comments
Thanks,that’s what I need.
[Reply]