Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Who to know

Status
Not open for further replies.

amarg

Programmer
Nov 19, 2002
106
IN
Hi,

By using ls command with -al option we can get creation_date of the file
By using ls command with -ul option we can get last_access_date of the file.
Is and possibility to find out the last process name who access that file ?


Thanks for you help
Amar
 
ls -al will actually tell you the last modification date (which may have been the time of creation). ls -cl might tell you the creation date, or the last time the file's permissions were modified.

It isn't possible to find out the last process that accessed the file (unless you're using some fancy kind of system accounting perhaps?). You can only tell while the file is still open by using something like fuser.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top