Solved

Files Status----how to check it

Posted on 2001-07-22
4
193 Views
Last Modified: 2010-05-19
 if i want to check a file's status,such like:when it was
excuated last time,who excuated it,etc. i know by using "
ls -l",i can see the most close time it was changed,but if
i want to see more info of this file (or Directory),how sh
ould i do & where the OS keep those info ??
0
Comment
Question by:wingboad
  • 2
  • 2
4 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6308601
> last access time:
perl -e '@x=lstat("yourfile");print "access time=$x[8]\n";'

> who excuated
not possible i.g., just if there is special software (I don't know off some)

> where the OS keep those info
in the file (directory)'s i-node
0
 

Author Comment

by:wingboad
ID: 6310742
 but is there any command to check those info of files (di
rectory),and i know inode keep those info,how can i see it
,thanks.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 20 total points
ID: 6311380
ls -l -i --time=access
0
 

Author Comment

by:wingboad
ID: 6315637
ok,thanks a lot,i will accept it
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now