How to know last Accessed File Time in Ubuntu

This post was written by admin on August 29, 2009
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:

  1. Add “open as root” to File/Folder Right-Click menu in Ubuntu
  2. Howto expand swap space by adding a swap file in Ubuntu
  3. Instant LAN File Sharing with one command in Ubuntu
  4. Ask for a password to access recovery mode root console
  5. How to find specific command for launching application

    Tags:

    Reader Comments

    Thanks,that’s what I need.

    [Reply]

    #1 
    Written By Joe on September 4th, 2009 @ 4:09 am

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address