[CentOS] find

2008-10-03 Thread tony . chamberlain
I am looking for something similar to the windows SEARCH FILES comman with the option "files containing ..." (that is where I can specify a string and it will find all files containing that string -- not just having the string as part of the name but actually containing it in the text). Is there

Re: [CentOS] find

2008-10-03 Thread Pintér Tibor
[EMAIL PROTECTED] írta: I am looking for something similar to the windows SEARCH FILES comman with the option "files containing ..." (that is where I can specify a string and it will find all files containing that string -- not just having the string as part of the name but actually containin

Re: [CentOS] find

2008-10-03 Thread Niki Kovacs
[EMAIL PROTECTED] a écrit : I am looking for something similar to the windows SEARCH FILES comman with the option "files containing ..." (that is where I can specify a string and it will find all files containing that string -- not just having the string as part of the name but actually contain

Re: [CentOS] find

2008-10-03 Thread Rainer Duffner
[EMAIL PROTECTED] schrieb: > I am looking for something similar to the windows SEARCH FILES comman > with the option "files containing ..." (that is where I can specify a > string and it will find all files containing that string -- not just having > the string as part of the name but actually con

Re: [CentOS] find

2008-10-03 Thread Ned Slider
[EMAIL PROTECTED] wrote: I am looking for something similar to the windows SEARCH FILES comman with the option "files containing ..." (that is where I can specify a string and it will find all files containing that string -- not just having the string as part of the name but actually containing

RE: [CentOS] find

2008-10-03 Thread Bowie Bailey
[EMAIL PROTECTED] wrote: > I am looking for something similar to the windows SEARCH FILES comman > with the option "files containing ..." (that is where I can specify a > string and it will find all files containing that string -- not just > having the string as part of the name but actually contai

Re: [CentOS] find

2008-10-03 Thread Akemi Yagi
On Fri, Oct 3, 2008 at 6:54 AM, Bo Lynch <[EMAIL PROTECTED]> wrote: > On Fri, October 3, 2008 10:00 am, [EMAIL PROTECTED] wrote: >> >> I am looking for something similar to the windows SEARCH FILES comman >> with the option "files containing ..." (that is where I can specify a >> string and it will

Re: [CentOS] find

2008-10-03 Thread Akemi Yagi
On Fri, Oct 3, 2008 at 7:24 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote: > On Fri, Oct 3, 2008 at 6:54 AM, Bo Lynch <[EMAIL PROTECTED]> wrote: >> >> I would recommend taking a look at grep. THere are many ways you can use it. > > One such example is: > > find . -type f -exec grep -il !* {} \; -exec g

Re: [CentOS] find

2008-10-03 Thread Bo Lynch
On Fri, October 3, 2008 10:00 am, [EMAIL PROTECTED] wrote: > > I am looking for something similar to the windows SEARCH FILES comman > with the option "files containing ..." (that is where I can specify a > string and it will find all files containing that string -- not just > having > the string a

Re: [CentOS] find

2008-10-03 Thread William L. Maltby
On Fri, 2008-10-03 at 16:04 +0200, Niki Kovacs wrote: > [EMAIL PROTECTED] a écrit : > > I am looking for something similar to the windows SEARCH FILES comman > > with the option "files containing ..." (that is where I can specify a > > string and it will find all files containing that string -- n

Re: [CentOS] find

2008-10-03 Thread MHR
On Fri, Oct 3, 2008 at 7:27 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote: > On Fri, Oct 3, 2008 at 7:24 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote: >> On Fri, Oct 3, 2008 at 6:54 AM, Bo Lynch <[EMAIL PROTECTED]> wrote: >>> >>> I would recommend taking a look at grep. THere are many ways you can use it. >

RE: [CentOS] find

2008-10-03 Thread Bowie Bailey
MHR wrote: > On Fri, Oct 3, 2008 at 7:27 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote: > > On Fri, Oct 3, 2008 at 7:24 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote: > > > On Fri, Oct 3, 2008 at 6:54 AM, Bo Lynch > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > I would recommend taking a look at grep. THe

Re: [CentOS] find

2008-10-03 Thread MHR
On Fri, Oct 3, 2008 at 1:08 PM, Bowie Bailey <[EMAIL PROTECTED]> wrote: > > Or you can do it like this: > > find . -type f -exec grep -H {} \; > Or this: grep -rH . Wait, that's too short :-) mhr ___ CentOS mailing list CentOS@centos.org http:/

Re: [CentOS] find

2008-10-06 Thread Ralph Angenendt
Akemi Yagi wrote: >> find . -type f -exec grep -il !* {} \; -exec grep -i !* {} \; -exec echo \; >> >> alias it to, say, findword and run: findword > > Sorry, I missed the "!" in the above paste: > > find . -type f -exec grep -il \!* {} \; -exec grep -i \!* {} \; -exec echo \; If you are usi

Re: [CentOS] find

2008-10-06 Thread MHR
On Mon, Oct 6, 2008 at 2:41 AM, Ralph Angenendt <[EMAIL PROTECTED]> wrote: > > If you are using GNU grep (well, you are using CentOS), > > grep -ri "foo" dir/to/search/in > > seems much shorter to me. > Without the -H you don't get the file names mhr __

Re: [CentOS] find

2008-10-06 Thread Ralph Angenendt
MHR wrote: > On Mon, Oct 6, 2008 at 2:41 AM, Ralph Angenendt <[EMAIL PROTECTED]> wrote: > > If you are using GNU grep (well, you are using CentOS), > > > > grep -ri "foo" dir/to/search/in > > > > seems much shorter to me. > > > > Without the -H you don't get the file names Hu? | [EMAIL PROTE

Re: [CentOS] find

2008-10-06 Thread MHR
On Mon, Oct 6, 2008 at 9:26 AM, Ralph Angenendt <[EMAIL PROTECTED]> wrote: > > Hu? > > | [EMAIL PROTECTED] httpd]$grep -ri virtu conf* | grep -v "#" > | conf.d/ssl.conf: > | conf.d/ssl.conf: > | [EMAIL PROTECTED] httpd]$grep -rHi virtu conf* | grep -v "#" > | conf.d/ssl.conf: > | conf.d/ssl.conf: >

[CentOS] find - text

2008-10-06 Thread tony . chamberlain
A while ago I sent mail about wanting to find all files that had a certain text string in it and changing it to something else. People mentioned that there is a system tool to do it (gnome has it too). I ran this, for example to find all files WITH "prog" in the name, and then I did a ps and I s

Re: [CentOS] find

2008-10-07 Thread Jeremiah Heller
On 6 Oct 2008, at 09:33, MHR wrote: On Mon, Oct 6, 2008 at 9:26 AM, Ralph Angenendt <[EMAIL PROTECTED] > wrote: Hu? | [EMAIL PROTECTED] httpd]$grep -ri virtu conf* | grep -v "#" | conf.d/ssl.conf: | conf.d/ssl.conf: | [EMAIL PROTECTED] httpd]$grep -rHi virtu conf* | grep -v "#" | conf.d/ssl.c

Re: [CentOS] find

2008-10-08 Thread Ralph Angenendt
Jeremiah Heller wrote: > On 6 Oct 2008, at 09:33, MHR wrote: > >> On Mon, Oct 6, 2008 at 9:26 AM, Ralph Angenendt <[EMAIL PROTECTED] >>> | [EMAIL PROTECTED] httpd]$grep -ri virtu conf* | grep -v "#" >>> | conf.d/ssl.conf: >>> | conf.d/ssl.conf: >> >> Doh! Of course - -r implies multiple files, so

Re: [CentOS] find

2008-10-09 Thread MHR
On Mon, Oct 6, 2008 at 2:41 AM, Ralph Angenendt <[EMAIL PROTECTED]> wrote: > Akemi Yagi wrote: >> >> Sorry, I missed the "!" in the above paste: >> >> find . -type f -exec grep -il \!* {} \; -exec grep -i \!* {} \; -exec echo >> \; > > If you are using GNU grep (well, you are using CentOS), > > g

[CentOS] find troubles

2014-10-28 Thread Tim Dunphy
Hey guys, Sorry not sure what's wrong with this statement. I've tried a few variations of trying to exclude the /var/www directory. [root@224432-24 apr-1.5.1]# find / -name "*httpd*" -type d \( ! -name www \) /usr/lib/httpd /usr/lib64/httpd /var/www/vhosts/johnnyenglish/httpdocs /var/www/lpadde

[CentOS] Find files

2008-02-22 Thread centos
Hi, I am trying to delete files that are more than 7 days old. When I run it interactively it works, no problem, but it does not run from a file stored in cron.daily. The rest of that daily file runs properly. [The execute bit is on]. I don't see anything in the /var/log/messages. -

Re: [CentOS] find - text

2008-10-06 Thread Filipe Brandenburger
Well, in your specific case you could replace it only in files that are *.c or *.h, you can easily use an additional parameter to "find" to accomplish that: On Mon, Oct 6, 2008 at 12:34, <[EMAIL PROTECTED]> wrote: > find . -type f | > while read fil > do > sed -i 's/prog/n

[CentOS] find cont'd 3

2008-10-08 Thread tony . chamberlain
Another question about find. I looked at the gnome tool and tried to simulate what it is doing. I can't use it directly because it won't do sed. Basically I want to find all files with a string (except binary) and change it. let STR be the string I am looking for. NEW is new string. I am doi

[CentOS] find cont'd 3

2008-10-10 Thread Eric Sisolak
On Wed, Oct 8, 2008 at 9:49 PM, <[EMAIL PROTECTED]> wrote: > > Basically I want to find all files with a string (except binary) > and change it. let STR be the string I am looking for. NEW is new string. Hmm, why not ditch find entirely, and just use grep? Something like: TFIL=/usr/tmp/dummy$

Re: [CentOS] find troubles

2014-10-28 Thread Chris Geldenhuis
On 10/28/2014 11:00 PM, Tim Dunphy wrote: Hey guys, Sorry not sure what's wrong with this statement. I've tried a few variations of trying to exclude the /var/www directory. [root@224432-24 apr-1.5.1]# find / -name "*httpd*" -type d \( ! -name www \) /usr/lib/httpd /usr/lib64/httpd /var/www/

Re: [CentOS] find troubles

2014-10-28 Thread Tim Dunphy
Hi find / -name "*httpd*" -type d |grep -v www\ Thanks.. Ideally I'd like to use the -delete flag to find once i have the right command. But with that I suppose I could use find / -name "*httpd*" -type d |grep -v www\ | xargs rm -rfv Assuming that the initial find doesn't do anything too scary

Re: [CentOS] find troubles

2014-10-28 Thread Eero Volotinen
2014-10-28 23:00 GMT+02:00 Tim Dunphy : > Hey guys, > > Sorry not sure what's wrong with this statement. I've tried a few > variations of trying to exclude the /var/www directory. > > > [root@224432-24 apr-1.5.1]# find / -name "*httpd*" -type d \( ! -name www > \) > /usr/lib/httpd > /usr/lib64/ht

Re: [CentOS] find troubles

2014-10-28 Thread Tim Dunphy
> > In centos, the apache package is named httpd, not apache. try removing the > packages first. (yum remove httpd) Yup! Already done. I did say I removed apache packages, realizing the name of the package is actually httpd in centos. My bad for not communicating clearly. This exercise is just t

Re: [CentOS] find troubles

2014-10-28 Thread Robert Nichols
On 10/28/2014 04:00 PM, Tim Dunphy wrote: Hey guys, Sorry not sure what's wrong with this statement. I've tried a few variations of trying to exclude the /var/www directory. [root@224432-24 apr-1.5.1]# find / -name "*httpd*" -type d \( ! -name www \) /usr/lib/httpd /usr/lib64/httpd /var/www/

Re: [CentOS] find troubles

2014-10-29 Thread Bowie Bailey
On 10/28/2014 5:32 PM, Robert Nichols wrote: On 10/28/2014 04:00 PM, Tim Dunphy wrote: Hey guys, Sorry not sure what's wrong with this statement. I've tried a few variations of trying to exclude the /var/www directory. [root@224432-24 apr-1.5.1]# find / -name "*httpd*" -type d \( ! -name w

Re: [CentOS] Find files

2008-02-22 Thread Garrick Staples
On Fri, Feb 22, 2008 at 01:40:11PM -0800, [EMAIL PROTECTED] alleged: > Hi, > > I am trying to delete files that are more than 7 days old. When I > run it interactively it works, no problem, but it does not run > from a file stored in cron.daily. The rest of that daily file > runs properly. [The e

Re: [CentOS] Find files

2008-02-22 Thread Robert
[EMAIL PROTECTED] wrote: Hi, I am trying to delete files that are more than 7 days old. When I run it interactively it works, no problem, but it does not run from a file stored in cron.daily. The rest of that daily file runs properly. [The execute bit is on]. I don't see anything in the /var

Re: [CentOS] Find files

2008-02-22 Thread Matt Shields
On Fri, Feb 22, 2008 at 9:16 PM, Robert <[EMAIL PROTECTED]> wrote: > > > [EMAIL PROTECTED] wrote: > > Hi, > > > > I am trying to delete files that are more than 7 days old. When I > > run it interactively it works, no problem, but it does not run > > from a file stored in cron.daily. The rest

Re: [CentOS] Find files

2008-02-22 Thread Steve Searle
Around 02:42am on Saturday, February 23, 2008 (UK time), Matt Shields scrawled: > You can also do it like this > > /usr/bin/find /mnt/iog -type f -name '*.tar.gz' -mtime +7 -print -exec > rm -f {} \; man tmpwatch Steve -- A: Because it messes up the order in which people normally read text.

[CentOS] Find and excluding directory

2010-02-02 Thread Tom Brown
Hi I have to use find to change the perms of a directory and files within that directory recursively but i need to exclude a directory within the top level directory, as its a netapp and so contains a read only .snapshot dir. I have tried... # find /var/data/foo -path '\.\/\.snapshot' -prune

Re: [CentOS] find cont'd 3

2008-10-10 Thread MHR
On Fri, Oct 10, 2008 at 7:19 AM, Eric Sisolak <[EMAIL PROTECTED]> wrote: > On Wed, Oct 8, 2008 at 9:49 PM, <[EMAIL PROTECTED]> wrote: >> >> Basically I want to find all files with a string (except binary) >> and change it. let STR be the string I am looking for. NEW is new >> string. > > Hmm, why

[CentOS] Find installed yum groups?

2015-04-27 Thread Les Mikesell
Is there an 'after the fact' way to find what yum groups are installed, including ones that were added with 'yum groupinstall' instead of the initial anaconda install? -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.

[CentOS] find with exclude directory

2014-05-11 Thread Tim Dunphy
Hey all, I'm trying to do a find of all files with the phrase 'varnish' in the name, but want to exclude a user home directory called /usr/local/digitalplatform. Here's what I was able to come up with: find / -path '/usr/local/digitalplatform/*' -prune -o -name "*varnish*" Which results in thi

[CentOS] find tux comic picture help

2009-05-03 Thread Erik Xavior
does anyone knows/have that comic picture of "tux" the Linux penguin that: - has four pictures in it - it defines 4 "levels" of the knowledge of tux, who is "symbolizing a learning person" - the first one: tux is just a Linux "fanboy"; second: tux is working, and say's: "...stupid rpm"; three: I c

[CentOS] Find reason for heavy load

2009-12-29 Thread Noob Centos Admin
My Centos 5 server has seen the average load jumped through the roof recently despite having no major additional clients placed on it. Previously, I was looking at an average of less than 0.6 load, I had a monitoring script that sends an email warning me if the current load stayed above 0.6 for mor

Re: [CentOS] Find and excluding directory

2010-02-02 Thread Robert Nichols
Tom Brown wrote: > Hi > > I have to use find to change the perms of a directory and files within > that directory recursively but i need to exclude a directory within the > top level directory, as its a netapp and so contains a read only > .snapshot dir. > > I have tried... > > # find /var/da

Re: [CentOS] Find and excluding directory

2010-02-02 Thread Tom Brown
> Your "-path" argument is wrong. Try this: > > find /var/data/foo -path '/var/data/foo/.snapshot' -prune -o -exec chown > usera:groupb {} + > > You need the whole path, and there is no need to escape the '.' character. > I've also used "+" as the terminator. That's just an efficiency issu

Re: [CentOS] Find installed yum groups?

2015-04-27 Thread Matthew Miller
On Mon, Apr 27, 2015 at 11:58:08AM -0500, Les Mikesell wrote: > Is there an 'after the fact' way to find what yum groups are > installed, including ones that were added with 'yum groupinstall' > instead of the initial anaconda install? Yes. "yum grouplist" will tell you the groups that are current

Re: [CentOS] Find installed yum groups?

2015-04-27 Thread Johnny Hughes
On 04/27/2015 01:47 PM, Matthew Miller wrote: > On Mon, Apr 27, 2015 at 11:58:08AM -0500, Les Mikesell wrote: >> Is there an 'after the fact' way to find what yum groups are >> installed, including ones that were added with 'yum groupinstall' >> instead of the initial anaconda install? > > Yes. "y

Re: [CentOS] Find installed yum groups?

2015-04-27 Thread Les Mikesell
On Mon, Apr 27, 2015 at 1:47 PM, Matthew Miller wrote: > On Mon, Apr 27, 2015 at 11:58:08AM -0500, Les Mikesell wrote: >> Is there an 'after the fact' way to find what yum groups are >> installed, including ones that were added with 'yum groupinstall' >> instead of the initial anaconda install? >

Re: [CentOS] Find installed yum groups?

2015-04-27 Thread Matthew Miller
On Mon, Apr 27, 2015 at 03:45:16PM -0500, Johnny Hughes wrote: > But, I think that is a YUM database and not based on the RPM database, > so it is possible that you can have all the RPMs for a group installed > and not actually have it listed as installed. > At least I sometimes find myself in that

Re: [CentOS] Find installed yum groups?

2015-04-27 Thread Matthew Miller
On Mon, Apr 27, 2015 at 04:04:41PM -0500, Les Mikesell wrote: > Interesting, but it seems to _only_ show groups that weren't included > in the anaconda install. For example where the saved anaconda-ks-cfg > shows @gnome-desktop and @development, 'yum grouplist' only shows > 'MATE Desktop' which

Re: [CentOS] Find installed yum groups?

2015-04-27 Thread Les Mikesell
On Mon, Apr 27, 2015 at 4:34 PM, Matthew Miller wrote: > On Mon, Apr 27, 2015 at 04:04:41PM -0500, Les Mikesell wrote: >> Interesting, but it seems to _only_ show groups that weren't included >> in the anaconda install. For example where the saved anaconda-ks-cfg >> shows @gnome-desktop and @de

Re: [CentOS] Find installed yum groups?

2015-04-27 Thread Les Mikesell
On Mon, Apr 27, 2015 at 4:52 PM, Les Mikesell wrote: > On Mon, Apr 27, 2015 at 4:34 PM, Matthew Miller wrote: >> On Mon, Apr 27, 2015 at 04:04:41PM -0500, Les Mikesell wrote: >>> Interesting, but it seems to _only_ show groups that weren't included >>> in the anaconda install. For example wher

Re: [CentOS] Find installed yum groups?

2015-04-28 Thread Liam O'Toole
On 2015-04-27, Les Mikesell wrote: --SNIP-- > And I guess the other piece of this would be finding individual > packages that are not encompassed by the groups - or pulled in by > dependencies.Is there some database-like approach to take the full > list of packages, then reduce it to the min

Re: [CentOS] find with exclude directory

2014-05-11 Thread Hal Wigoda
Just grep it out. find . -print | grep -v digitalplatform -v excludes On Sun, May 11, 2014 at 11:33 AM, Tim Dunphy wrote: > Hey all, > > I'm trying to do a find of all files with the phrase 'varnish' in the > name, but want to exclude a user home directory called > /usr/local/digitalplatform.

Re: [CentOS] find with exclude directory

2014-05-11 Thread Hal Wigoda
So: find / -print | grep -v digitalplatform | grep varnish On Sun, May 11, 2014 at 11:39 AM, Hal Wigoda wrote: > Just grep it out. > > find . -print | grep -v digitalplatform > > -v excludes > > On Sun, May 11, 2014 at 11:33 AM, Tim Dunphy wrote: >> Hey all, >> >> I'm trying to do a find of

Re: [CentOS] find with exclude directory

2014-05-11 Thread Tim Dunphy
Thanks. But what if I want to turn that statement into one that will delete everything it finds? I need to preserve the contents of that directory. As in : find / -path '/usr/local/digitalplatform/*' -prune -o -name "*varnish*" -exec rm -rfv {} \; I'm thinking the grep -v would be a visual thing,

Re: [CentOS] find with exclude directory

2014-05-11 Thread Hal Wigoda
find / -print | grep -v digitalplatform | grep varnish | xargs rm But test this first - you don't want to remove anything by accident. On Sun, May 11, 2014 at 11:44 AM, Tim Dunphy wrote: > Thanks. But what if I want to turn that statement into one that will delete > everything it finds? I need

Re: [CentOS] find with exclude directory

2014-05-11 Thread Brian Miller
On Sun, 2014-05-11 at 12:33 -0400, Tim Dunphy wrote: > Hey all, > > I'm trying to do a find of all files with the phrase 'varnish' in the > name, but want to exclude a user home directory called > /usr/local/digitalplatform. find / -path /usr/local/digitalplatform -prune -name \*varnish\* doesn'

Re: [CentOS] find with exclude directory

2014-05-11 Thread Tim Dunphy
Hal & Jack Both are perfect! Thanks [root@uszmpwsls014lb ~]# find / -print | grep -v digitalplatform | grep varnish /var/lib/varnish /var/lib/varnish/uszmpwsls014lb /var/lib/varnish/uszmpwsls014lb/_.vsl /var/lib/varnish/varnish_storage.bin /usr/lib64/libvarnish.so.1 /usr/lib64/libvarnishapi.so.1

Re: [CentOS] find with exclude directory

2014-05-11 Thread Stephen Harris
On Sun, May 11, 2014 at 12:33:47PM -0400, Tim Dunphy wrote: > find / -path '/usr/local/digitalplatform/*' -prune -o -name "*varnish*" Try find / -path /usr/local/digitalplatform -prune -o name '*varnish*' -print Without the explicit -print, find will implicitly add one e.g find / \( -path ..

Re: [CentOS] find with exclude directory

2014-05-11 Thread zep
On 05/11/2014 01:06 PM, Tim Dunphy wrote: > Hal & Jack > > Both are perfect! Thanks > > [root@uszmpwsls014lb ~]# find / -print | grep -v digitalplatform | grep > varnish > /var/lib/varnish > /var/lib/varnish/uszmpwsls014lb > /var/lib/varnish/uszmpwsls014lb/_.vsl > /var/lib/varnish/varnish_storage

Re: [CentOS] find with exclude directory

2014-05-12 Thread Cliff Pratt
Why not copy the directory elsewhere, then delete the rest and move it back? You'd take a copy of it anyway, if it is important, right? Cheers, Cliff On Mon, May 12, 2014 at 4:44 AM, Tim Dunphy wrote: > Thanks. But what if I want to turn that statement into one that will delete > everything i

Re: [CentOS] find with exclude directory

2014-05-12 Thread Nicolas Thierry-Mieg
> On Mon, May 12, 2014 at 4:44 AM, Tim Dunphy wrote: > >> Thanks. But what if I want to turn that statement into one that will delete >> everything it finds? I need to preserve the contents of that directory. >> >> As in : find / -path '/usr/local/digitalplatform/*' -prune -o -name >> "*varnish*"

Re: [CentOS] find with exclude directory

2014-05-13 Thread Billy Crook
don't forget to escape that exclamation point if typing on bash. On Tue, May 13, 2014 at 1:50 AM, Nicolas Thierry-Mieg < nicolas.thierry-m...@imag.fr> wrote: > > On Mon, May 12, 2014 at 4:44 AM, Tim Dunphy > wrote: > > > >> Thanks. But what if I want to turn that statement into one that will >

Re: [CentOS] Find reason for heavy load

2009-12-29 Thread John R Pierce
Noob Centos Admin wrote: > My Centos 5 server has seen the average load jumped through the roof > recently despite having no major additional clients placed on it. > Previously, I was looking at an average of less than 0.6 load, I had a > monitoring script that sends an email warning me if the c

Re: [CentOS] Find reason for heavy load

2009-12-29 Thread Ross Walker
On Dec 29, 2009, at 11:44 PM, Noob Centos Admin wrote: > My Centos 5 server has seen the average load jumped through the roof > recently despite having no major additional clients placed on it. > Previously, I was looking at an average of less than 0.6 load, I had > a monitoring script th

Re: [CentOS] Find reason for heavy load

2009-12-29 Thread Noob Centos Admin
Hi, > last time I saw something like that, it was a bunch of chinese 'bots' > hammering on my public services like ssh. >another admin had turned > pop3 on too, this created a very heavy load yet they didn't show up in > top (bunches of pop3 and ssh processes showed up in ps -auxww, > however, plu

Re: [CentOS] Find reason for heavy load

2009-12-29 Thread Noob Centos Admin
Hi, > Try blocking the IPs on the router and see if that helps. Unfortunately the server's in a DC so the router is not under our control. > You can also run iostat and look at the disk usage which also > generates load. I did try iostat and its iowait% did coincide with top's report, which is

Re: [CentOS] Find reason for heavy load

2009-12-29 Thread John R Pierce
Noob Centos Admin wrote: > However, iostat reports much lower %user and $system compared to top > running at the same time so I'm not quite sure if I can rely on its > figures. > ... > iostat > Linux 2.6.18-128.1.16.el5xen 12/30/2009 > avg-cpu: %user %nice %system %iowait %steal %idle >

Re: [CentOS] Find reason for heavy load

2009-12-29 Thread Ross Walker
On Dec 30, 2009, at 1:05 AM, Noob Centos Admin wrote: > Hi, > >> Try blocking the IPs on the router and see if that helps. > > Unfortunately the server's in a DC so the router is not under our > control. That sucks, oh well. >> You can also run iostat and look at the disk usage which also

Re: [CentOS] Find reason for heavy load

2009-12-29 Thread Christoph Maser
Am Mittwoch, den 30.12.2009, 05:44 +0100 schrieb Noob Centos Admin: > since initially it seems like the high load may be due to I/O wait Maybe this will help you to identify the IO loading process: http://dag.wieers.com/blog/red-hat-backported-io-accounting-to-rhel5 Chris financial.com AG Mun

Re: [CentOS] Find reason for heavy load

2009-12-30 Thread Thomas Harold
On 12/29/2009 11:44 PM, Noob Centos Admin wrote: > My Centos 5 server has seen the average load jumped through the roof > recently despite having no major additional clients placed on it. > Previously, I was looking at an average of less than 0.6 load, I had a > monitoring script that sends an emai

Re: [CentOS] Find reason for heavy load

2009-12-30 Thread Ugo Bellavance
On 2009-12-29 23:44, Noob Centos Admin wrote: > My Centos 5 server has seen the average load jumped through the roof > recently despite having no major additional clients placed on it. > Previously, I was looking at an average of less than 0.6 load, I had a > monitoring script that sends an email w

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Hi, > > since initially it seems like the high load may be due to I/O wait > Maybe this will help you to identify the IO loading process: > > http://dag.wieers.com/blog/red-hat-backported-io-accounting-to-rhel5 Thanks for the suggestion, I did install dstat earlier while trying to figure things

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Hi, > You should also try out "atop" instead of just using top. The major > advantage is that it gives you more information about the disk and > network utilization. Thanks for the tip, I tried it and if the red lines are any indication, it seems that atop thinks my disks (md raid 1) are the pr

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Hi, > Dstat could at least tell you if your problem is CPU or I/O. This was the result of running the following command which I obtained from reading up about two weeks ago when I started trying to investigate the abnormal server behaviour. dstat -c --top-cpu -d --top-bio --top-latency usr sys

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Chan Chung Hang Christopher
>> Look at the first two columns. What column have higher numbers? If r, >> you're CPU-bound. If b, you're I/O bound. > > procs ---memory-- ---swap-- -io --system-- > -cpu-- > r b swpd free buff cache si sobibo in cs us sy id wa > st >

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Christoph Maser
Am Donnerstag, den 31.12.2009, 12:34 +0100 schrieb Chan Chung Hang Christopher: > >> Look at the first two columns. What column have higher numbers? If r, > >> you're CPU-bound. If b, you're I/O bound. > > > > procs ---memory-- ---swap-- -io --system-- > > -cpu--

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Chan Chung Hang Christopher
Christoph Maser wrote: > Am Donnerstag, den 31.12.2009, 12:34 +0100 schrieb Chan Chung Hang > Christopher: Look at the first two columns. What column have higher numbers? If r, you're CPU-bound. If b, you're I/O bound. >>> procs ---memory-- ---swap-- -io --syste

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Hi, > Yes, these figures indicate that you are fairly close to being cpu bound. > > What kind of filtering are you doing? If you have any connection > tracking/state related rules set, you will need to be using a fair > amount of cpu. Initially, when the load start going up, I had thought the APF

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Chan Chung Hang Christopher
Noob Centos Admin wrote: > Hi, > >> Yes, these figures indicate that you are fairly close to being cpu bound. >> >> What kind of filtering are you doing? If you have any connection >> tracking/state related rules set, you will need to be using a fair >> amount of cpu. > > Initially, when the load

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Hi, > I do not know about now but I had to unload the modules in question. > Just clearing the rules was not enough to ensure that the netfilter > connection tracking modules were not using any cpu at all. Thanks for pointing this out. Being a noob admin as my pseudonym states, I'd assumed stoppi

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
I initiated services shutdown as previously planned and once the external services like exim, dovecot, httpd, crond (because it kept restarting these services), the problem child stood out like a sore thumb. There was two exim instances that didn't go away despite service exim stop. Once I killed

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Just an concluding update to anybody who might be interested :) My apologies for blaming spamassassin in the earlier email. It was taking so long because of the real problem. Apparently the odd exim processes that was related to the mail loop problem I nipped was still the culprit. I had overlook

Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Ugo Bellavance
On 2009-12-31 15:13, Noob Centos Admin wrote: > Just an concluding update to anybody who might be interested :) > > My apologies for blaming spamassassin in the earlier email. It was > taking so long because of the real problem. > > Apparently the odd exim processes that was related to the mail loo

[CentOS] find out who accessed a file

2015-01-23 Thread Tim Dunphy
Hey guys, Is there any way to find out the last user to access a file on a CentOS 6.5 system? Thanks Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailma

[CentOS] find leave packages at CentOS-8

2020-02-02 Thread d tbsky
Hi: I use to find all the leave packages with "package-cleanup --leaves --all". but the "--all" parameter no longer valid under CentOS-8. is there alternative command I can use to find out all the leave packages? ___ CentOS mailing list CentOS@centos.

[CentOS] Find user accounts with uid > 500

2008-02-28 Thread Sean Carolan
Hi all: I'm doing an audit of some Linux machines, and have used this awk one-liner to find accounts with uid > 499: awk -F: '{if ($3 > 499) print $0}' < /etc/passwd It works great if you run it on a host directly, but if I try to ssh to a remote host and run the command it fails: mybox$ ssh se

[CentOS] find most recent file update in directory

2011-12-09 Thread Helmut Drodofsky
Hello, I try to find in a directory hicharchy the most recent time of file update. I think, there could be a solution with find? Thank you for help in advance Best regards Helmut Drodofsky ___ CentOS mailing list CentOS@centos.org http://lists.cento

[CentOS] find with -mtime and -print0 = inaccurate results

2012-10-25 Thread Sean Carolan
If I run this: find /path/to/files/ -type f -mtime -2 -name *.xml.gz I get the expected results, files with modify time less than two days old. But, if I run it like this, with the print0 flag: find /path/to/files/ -print0 -type f -mtime -2 -name *.xml.gz I get older files included as well. A

[CentOS] find errors in a directory of files

2012-08-04 Thread Tim Dunphy
hello list, I'm trying to write a script that will search through a directory of trace logs for an oracle database. From what I understand new files are always being created in the directory and it's not possible to know the exact names of the files before they are created. The purpose of this is

Re: [CentOS] find out who accessed a file

2015-01-23 Thread Jonathan Billings
On Fri, Jan 23, 2015 at 03:50:44PM -0500, Tim Dunphy wrote: > Is there any way to find out the last user to access a file on a CentOS > 6.5 system? Unless you're using auditd (or a similar service) to watch the file, no. You could probably use the logs and `last` to see who was logged in at the

Re: [CentOS] find out who accessed a file

2015-01-23 Thread Valeri Galtsev
On Fri, January 23, 2015 3:13 pm, Jonathan Billings wrote: > On Fri, Jan 23, 2015 at 03:50:44PM -0500, Tim Dunphy wrote: >> Is there any way to find out the last user to access a file on a CentOS >> 6.5 system? > > Unless you're using auditd (or a similar service) to watch the file, > no. You co

Re: [CentOS] find out who accessed a file

2015-01-24 Thread Tim Dunphy
Hey guys, Unless you're using auditd (or a similar service) to watch the file, no. You could probably use the logs and `last` to see who was logged in at the time and make a guess. Also, you can look into shell history files (though that might be cleaned by users). Admin is allowed to do that

Re: [CentOS] find out who accessed a file

2015-01-24 Thread Valeri Galtsev
On Sat, January 24, 2015 11:27 am, Tim Dunphy wrote: > Hey guys, > > Unless you're using auditd (or a similar service) to watch the file, > no. You could probably use the logs and `last` to see who was logged > in at the time and make a guess. > > > > Also, you can look into shell history files (

Re: [CentOS] find out who accessed a file

2015-01-24 Thread Jonathan Billings
On Sat, Jan 24, 2015 at 12:32:01PM -0600, Valeri Galtsev wrote: > One other thing I would try: disable selinux, and see if that lets > apache read file, e.g.: > > setenforce 0 Setting SELinux to permissive temporarily is a good start, although it's also helpful to check the audit logs, with: au

[CentOS] Find out which process consumed Network bandwidth

2021-09-06 Thread Kaushal Shriyan
Hi, I am running CentOS Linux release 7.9.2009 (Core). Is there a way to find out which process consumed network bandwidth during a specific time period? For example, the Nginx process consumed how much network traffic on Sept 01, 2021. Best Regards, Kaushal

Re: [CentOS] Find user accounts with uid > 500

2008-02-28 Thread William L. Maltby
On Thu, 2008-02-28 at 02:56 -0600, Sean Carolan wrote: > Hi all: > > I'm doing an audit of some Linux machines, and have used this awk > one-liner to find accounts with uid > 499: > > awk -F: '{if ($3 > 499) print $0}' < /etc/passwd > > It works great if you run it on a host directly, but if I t

Re: [CentOS] Find user accounts with uid > 500

2008-02-28 Thread Jim Wight
On Thu, 2008-02-28 at 04:27 -0500, William L. Maltby wrote: > On Thu, 2008-02-28 at 02:56 -0600, Sean Carolan wrote: > > Hi all: > > > > I'm doing an audit of some Linux machines, and have used this awk > > one-liner to find accounts with uid > 499: > > > > awk -F: '{if ($3 > 499) print $0}' < /

Re: [CentOS] Find user accounts with uid > 500

2008-02-28 Thread William L. Maltby
On Thu, 2008-02-28 at 09:48 +, Jim Wight wrote: > On Thu, 2008-02-28 at 04:27 -0500, William L. Maltby wrote: > > On Thu, 2008-02-28 at 02:56 -0600, Sean Carolan wrote: > > > Hi all: > > > > > > I'm doing an audit of some Linux machines, and have used this awk > > > one-liner to find accounts

Re: [CentOS] Find user accounts with uid > 500

2008-02-28 Thread Sean Carolan
> > ssh servername awk -F: "'{if (\$3 > 499) print \$0}'" < /etc/passwd > > ssh servername awk -F: "'{if (\$3 > 499) print \$0}' < /etc/passwd" > > otherwise '< /etc/passwd' happens on the client. Awesome, thanks! ___ CentOS mailing list CentOS@centos.

  1   2   >