Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 09-19-2004, 03:55 PM   #1
LQ Newbie
Registered: Sep 2004
Location: prague
Distribution: Debian testing
Posts: 2

Rep: Reputation: 0
grep -r foo /*

hallo all

I try grep some world on remote server, but unfortunately don't know, grep /dev and /proc is not good idea. during this process shut down sshd, apache, and i thing all network services, because i can't ping to the machine.
my question is, can i broke the system by this command? the last messages are:

bender:~# grep -r starabaskora /*
grep: /boot/boot.b: No such file or directory
grep: /dev/kmem: Bad address
Binary file /dev/mem matches
Binary file /dev/core matches
Old 09-19-2004, 05:50 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
That command shouldn't break the system, even when run as root. It will probably shoot the CPU load (and possibly memory usage) way up though, making the system less responsive. It's possible you could've overloaded the system to the point where it couldn't cope any longer and started killing processes. If the kernel is buggy, it could've possibly crashed it. You can wait a few minutes to see if the system recovers (this actually happened to me once, testing new software on a remote server), or have your hosting facility (if it's in one) reboot it and examine the logs to see what (if anything) happened.
Old 09-19-2004, 06:20 PM   #3
LQ Newbie
Registered: Sep 2004
Location: prague
Distribution: Debian testing
Posts: 2

Original Poster
Rep: Reputation: 0
thank you for ansver.
i try apply this commant to my testing linux and nothing happend (i mean no crash).
now i have better grep command:
grep `ls / |grep -v /proc|grep -v /dev `
I will see tomorow, after reboot.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is foo bar satimis Programming 25 04-26-2019 08:21 PM
For foo in bar; do angel115 Programming 1 11-16-2005 04:52 PM
python mkdir ~/.foo datadriven Programming 1 01-31-2005 11:51 PM
ps -ef|grep -v root|grep apache<<result maelstrombob Linux - Newbie 1 09-24-2003 11:38 AM
Foo? MasterC Linux - General 2 05-27-2003 03:17 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:08 PM.

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