my own log

Just a thought and log of my life

Archive for the ‘centos’ tag

Removing a lot of file with rm

with one comment

Ever trying to remove a lot of file like this ?

[root@blah]# ls -l log/ | wc -l
2041335

It wont work if you just remove it with rm because there will be an error message (i.e. /bin/rm: Argument list too long). So how to remove it ?? I use this command to remove it

[root@blah]# find ./ -name ‘msg.*’ | xargs rm -fv

I’m using msg.* becasue the filenames I want to remove begin with msg.. You can vary it depend on your need.

source of inspiration

Popularity: 15% [?]

Written by Yuda

Juli 16th, 2009 at 2:25 pm

Posted in daily, percobaan

Tagged with , , , ,

Sudo and audit-libs

with 2 comments

Today my fight with sudo is over, I finally can conquer it. Once this error come to me when I using sudo on centos :

Fatal error (bad version): sudo: symbol lookup error: sudo: undefined symbol: audit_log_user_command

After quite long searching for the solution finally got it today. It turns out a simple solution, In my case after I upgrade the audit and it libs sudo works fine. So my mistakes is I’m using the newest sudo but I didn’t upgrade the audit-libs.

Ha, a simple solution but makes me very confused :D

Popularity: 20% [?]

Written by Yuda

Januari 12th, 2009 at 4:04 pm