Archive for the ‘Linux/Unix’ Category
Here’s a neat trick. I wanted to highlight some output I was watching so it would stand out, in this case a specific IP address on a load balancer. The trick is to use egrep to colorize and match your pattern or the end of line.
while : do clear ipvsadm -L -n | grep 2099 | egrep --color "10.10.0.8|$" sleep 10 done
I couldn’t get sudo to work via LDAP on RHEL6 (actually Scientific Linux 6) until I renamed /etc/ldap.conf.sudo to /etc/nss_ldap.conf as suggested on this thread: