[SOLVED] tmpwatch a dangerous button to push for a newbie :0
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
tmpwatch a dangerous button to push for a newbie :0
Long story short, I notice this rpm tmpwatch-2.9.7-1.1.el5.5.x86_64.rpm
in a directory full of rpm's. Looks insteresting so I type
It complains that it wants a directory and a time (in hours). Fine I can accomodate that:
tmpwatch . 0.1
My hypothesis is that it will temporarily monitor the directory and report on any reads, writes or failed attempts to open/find a file. I could just look that the man page, but hey, I am the man and I do as I please.
I get the curser back. Hmm not much out put. Nothing like the old fliemonNT kind of output I was expecting.
Then I do a #[root home/RPMS] ls -al
This is sort of a dramatic moment. Did I start punching my monitor? Nope.
Did I call the sysadmin over and say "hey man i think there is something wrong with your file system?" No way. That guys a looks like he is about to go off on someone all the time.
Did I call Lisa the intern over? Hey Lisa check out what I am doing. Just type ls there... LISA! what did you do? I said ls not rm -Rf *, We better call the admin over. No of course not. this is not my style. I am ashamed I even imagined it.
When I was a kid I used to throw toy electric cars against the wall so I could get a look at all their parts. It was pretty fun. As an adult I find it relaxing to hack around on the system and see what happens and then make a few notes things that seem cool.
In the end no worries. The bank is too big to fail and my playing around didn't hurt any body. The losses are de minimis, and non-material. Hmm there should be a bonus in this for me.
Nope, I will I just delete the VM. This is my home system and I am the only lunatic on the system. So it's all good. It has been a great intro to tmpwatch.
By the way, whenever I find a command that I think is useful
I type the word useful and it gets appended to my list of cool commands. In my .bashrc I define useful like this:
alias useful='fc -ln -1 | xargs echo >> ~/useful.txt'
That tmpwatch command is in my useful list. I'll use it to purge some old log files and some old load files that tend to collect on my server.[/FONT]