Solved

tracking where file was copied from ?

Posted on 2004-03-28
7
228 Views
Last Modified: 2013-12-27
Dear all,

I would like to know if there is some kind of log file giving information from where I copied a specific file from .

Most of the time I keep copying files from one location to other within my directory and also from my co-workers directory . So if i delete the file or remove it , I kind of have to use find command to locate the file.. If there is any log file kind , I can check that and see where I copied that file from..

Thanks
0
Comment
Question by:sunray_2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 10700083
About your only option is your shell history (assuming you are running a non bourne shell), otherwise you may be able to extract the information from the BSM logs if you have auditing turned on.
0
 
LVL 49

Author Comment

by:sunray_2003
ID: 10700508
Tintin,

regarding shell history , which file i need to check . I use Tcsh or csh

and regarding BSM logs, as a user can I turn it on or should I ask Sys admin
0
 
LVL 48

Expert Comment

by:Tintin
ID: 10700522
Type in the 'history' command to see your command history.

The BSM logs are probably not the way to go as they can generate HUGE amount of logs and actually processing them to gain anything useful is not particularly easy.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 49

Author Comment

by:sunray_2003
ID: 10701038
OH , TinTin.. I was very much familiar with history command... But i forget sometimes after copying or moving a file say a week ago.. I was wondering if that can got ..

I shall wait for other experts comments here and close the question

Thanks
0
 
LVL 49

Author Comment

by:sunray_2003
ID: 10701042
>> I shall wait for other experts comments

oops.. DIdnot mean to cut you off.. What I meant was .. " I shall wait for some other comments "
0
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 10701121
Perhaps you could create a 'cd' alias that cd's and creates a log for you.
0
 
LVL 49

Author Comment

by:sunray_2003
ID: 10701331
>> Perhaps you could create a 'cd' alias that cd's and creates a log for you

OK.. I shall try this

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

691 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