Archive for the ‘centos’ tag
Removing a lot of file with rm
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.
Popularity: 15% [?]
Sudo and audit-libs
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
Popularity: 20% [?]










