LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-21-2006, 07:26 AM   #1
mininovax
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
What did this linux command do?


I recently logged into a redhat machine and did the following:

cd /var/log/
find . -size +25k -exec rm {} \;

What I wanted to accomplish is to delete all log files in directory /var/log/ that were of 25K. Did I accomplish my task? Or did I delete all files 25k on my Redhat Server?

The command just seems too dangerous, and I dont know if I deleted all files on my hard drive that were 25K.

Anyone answer this question for me?

Thanks
 
Old 10-21-2006, 07:35 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
It should have done as you expected i.e. delete any files that are 25k+ in /var/log.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
Linux command sixth_sense Linux - General 4 04-13-2005 02:33 AM
unix command to linux command leonidas Linux - General 1 09-10-2004 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:43 AM.

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
Open Source Consulting | Domain Registration