BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SBSA_T
Calcite | Level 5

Hello,

 

How do I go about finding out when last a file was accessed(Read)? We can find out when last it was written or modified but not read.

- We do not have Environment Manager enabled.

- We are on Linux Suse

- One Linux Suse server

 

thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User
ls -ul filename

is the UNIX command to display the last access timestamp of a file.

Be aware that this might not really tell you much, as each complete backup will read the file.

And everytime someone uses sashelp.vtable or sashelp.vcolumn every table in every currently assigend library will be read.

View solution in original post

4 REPLIES 4
Kurt_Bremser
Super User
ls -ul filename

is the UNIX command to display the last access timestamp of a file.

Be aware that this might not really tell you much, as each complete backup will read the file.

And everytime someone uses sashelp.vtable or sashelp.vcolumn every table in every currently assigend library will be read.

SBSA_T
Calcite | Level 5

Thanks Kurt. This helps.

ronan
Lapis Lazuli | Level 10

Very useful. There is also the stat / istat commands to display the same information taken out from the filesystem  with the 3 three components of timestamp. Linux stat might offer some additonal functionality fbeing able to

customise the output sometimes, reducing the amount of information.

 

eg, istat command for AIX 7.1 (IBM Unix)

 

https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.cmds3/istat.htm

 

  • Date of the last i-node update ("physical storage information")
  • Date of the last file modification
  • Date of the last reference to the file  ("last access") 
SBSA_T
Calcite | Level 5

Thanks Ronan. This is very helpful indeed 🙂

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 2476 views
  • 2 likes
  • 3 in conversation