The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to log DNS activity? mbak AIX 3 02-13-2008 03:39 PM
Logging all console activity to a file - how? patwa UNIX for Dummies Questions & Answers 4 06-13-2007 11:09 PM
Disk activity tovohery AIX 3 08-01-2006 10:21 AM
Recording X or VNC Activity to a Video File? deckard Linux 3 03-03-2005 10:41 AM
file activity (open/closed) file descriptor info using KORN shell scripting Gary Dunn UNIX for Dummies Questions & Answers 3 06-07-2004 02:54 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-13-2006
Terrible
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
activity on a file

is there anyway to tell when an activity is happening on a file.

i'm talking about something deeper than what ls -l can give.

when i say activity, i want to know exactly when any commands was run on a specific file. i.e, did anyone run the mail command on this file. did anyone cat this file. did anyone, cp this file anywhere. is this possible in unix?
  #2 (permalink)  
Old 08-13-2006
nathan nathan is offline VIP Member  
Supporter
  
 

Join Date: Jul 2006
Posts: 156
From the man page on 'ls':


Code:
LS(1)                            User Commands                           LS(1)

NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

DESCRIPTION
       List  information about the FILEs (the current directory by default).  Sort entries
       alphabetically if none of -cftuSUX nor --sort.

       Mandatory arguments to long options are mandatory for short options too.
...
       -u     with -lt: sort by, and show, access time with -l: show access time and  sort
              by name otherwise: sort by access time

Other than checking the last access time, no, there is no detailed information about how/what programs accessed a file. Get a man on 'stat' if you want to know what information about a file is stored.
  #3 (permalink)  
Old 08-13-2006
Terrible
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
thanks a million
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0