![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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? |
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|