LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 09-18-2012, 03:18 AM   #1
j0ax
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
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

tmpwatch

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]
 
Old 09-18-2012, 07:09 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,247
Blog Entries: 11

Rep: Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287
You da man tmpwatch!
 
Old 09-18-2012, 08:15 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Thanks for sharing but the post would have been better off in your personal web log IMHO.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Booting -- Choices at the push of a button? MT_Keg Linux - General 2 07-27-2010 10:02 AM
TeamSpeak2 - Logitech MX1000 - Side Button Push to Talk nutnut Linux - Software 1 08-14-2007 12:31 PM
LXer: InMage and Xiotech Announce Partnership to Provide Industry First in Disaster Recovery, Push-Button Application Failover LXer Syndicated Linux News 0 05-15-2006 10:21 PM
Not exactly a newbie, but still dangerous jhenager LinuxQuestions.org Member Intro 2 09-19-2005 02:51 PM
Left_ctrl-push-button??>? matt3333 Slackware 7 12-15-2002 09:45 PM


All times are GMT -5. The time now is 12:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration