Hi all,

I have a simple question as it appears.
But am unable to get the solution.

Question is -how do I get the access time of a file in unix. please advise on the command.

Thanks

Recommended Answers

All 4 Replies

man ls

Masijade,
I already did it.
It didnt seem to work. So I created a thread for this.


Thanks

At least on Solaris "-u" is the option. For any other system you are going to have to man ls and actually read it to find out if any of the options have anything to do with access time and then actually try that option (and try it in combo with "-l", maybe).

Hi all,

I have a simple question as it appears.
But am unable to get the solution.

Question is -how do I get the access time of a file in unix. please advise on the command.

Thanks

stat might give you what you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.