stat and touch - Unix

This is a discussion on stat and touch - Unix ; 1. how can i know if a file has been touched , i.e its access time has been modified? 2. The following output is part of what is obtained on using stat . what does 0600 signify here? Access: 2004-01-12 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: stat and touch

  1. stat and touch

    1. how can i know if a file has been touched , i.e its access time has
    been modified?
    2. The following output is part of what is obtained on using stat .
    what does 0600 signify here?
    Access: 2004-01-12 15:00:17.000000000 -0600
    Modify: 20054-01-12 15:00:17.000000000 -0600
    Change: 2004-01-12 15:00:17.000000000 -0600


  2. Re: stat and touch

    On 2005-11-13, sarah wrote:
    > 1. how can i know if a file has been touched , i.e its access time has
    > been modified?


    The touch command changes the access and modification times,
    unless the -a option is used.

    IF the file has been accessed since the last modification time,
    then the access time will be newer than the modification time.

    What exactly do you want to know?

    > 2. The following output is part of what is obtained on using stat .
    > what does 0600 signify here?
    > Access: 2004-01-12 15:00:17.000000000 -0600
    > Modify: 20054-01-12 15:00:17.000000000 -0600
    > Change: 2004-01-12 15:00:17.000000000 -0600


    The offset from Universal Co-ordinated Time (UTC).

    --
    Chris F.A. Johnson. Author, | If posting from Google Groups,
    Shell Scripting Recipes: | please see
    A Problem-Solution Approach |

+ Reply to Thread