Configuration: Grep
export GREP_OPTIONS=’–color=auto’ GREP_COLOR=’100;8′
export GREP_OPTIONS=’–color=auto’ GREP_COLOR=’100;8′
#Advanced Options “/S /v”/qn REBOOT=R””
RPM Based Linux Flavors like CentOS need additional information in the Init script in order to work properly with chkconfig : # description: Description of the script # processname: squid chkconfig –level 2345 scriptname #!/bin/sh # this script…
#!/usr/bin/perl # wgrep.pl – windowed grep utility
0: Which process has port 22 open? #!/usr/bin/ksh # # PCP (PID con Port) # v1.10 08/10/2010 Sam Nelson sam @ unix.ms # # If you have a Solaris 8, 9 or 10 box and you can’t # install lsof,…
Found another useful thing on the web. This is the quick guide to rescan and configure newly added LUNS in Linux. To configure the newly added LUNS on RHEL: # ls /sys/class/fc_host host0 host1 host2 host3 fdisk -l 2>/dev/null |…
perl -e ‘use POSIX qw(strftime); print strftime “%a %b %e %H:%M:%S %Y”,localtime(time()- 3600*24*2);’
#mysql alias mysql=”mysql –pager=’less -niSFX'”
$ for drive in 0 1 2 3 4 5 6 7 > do > mt -f /dev/rmt/$drive status > done
mysql> pager less; PAGER set to ‘less’ Выводим информацию о текущих установках глобальных переменных: mysql> SHOW VARIABLES; | slow_query_log | OFF | | slow_query_log_file | Включаем ведение лога: mysql> set global log_slow_queries=’ON’; Query OK, 0 rows affected,…