http://news.ycombinator.com/item?id=1905991 http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html
Good start, can also take a look at the repo.or.cz monitoring that was setup.
rpm -qf /path/to/file
http://linuxcommand.org/man_pages/chkconfig8.html command use to manage links to the rc[0-6].d directories
from http://opensource.intel.com/linux-wiki/LinuxDesktop#head-5821e8deb4a31049ba106f03fe38466934698438
export GIT_PROXY_COMMAND=`echo ~`/bin/git-proxy”
bin/git-proxy #!/bin/bash PROXY=proxy-socks.jf.intel.com PORT=1080 case $1 in
git.moblin.org|gitexample.intel.com)
METHOD=”-X connect”
;;
*)
METHOD=”-X 5 -x ${PROXY}:${PORT}”
;;
esac
/usr/bin/nc
.ssh/config proxycommand nc -x proxy-socks.jf.intel.com:1080 -X 5 %h %p
Remove the 3rd line: sed ‘3d’ fileName.txt
Removal of the line containing the string “awk”: sed ‘/awk/d’ filename.txt
Remove the last line: sed ‘$d’ filename.txt
Remove all empty lines: sed ’^$/d’ filename.txt sed ’./!d’ filename.txt
Removing the interval between lines 7 and 9. sed ‘7,9d’ filename.txt
For permanent changes to the old versions (<4) use a temporary file for GNU sed use the “-i[suffix]”: sed -i”.bak” ‘3d’ filename.txt
http://www.catonmat.net/blog/wp-content/uploads/2008/09/awk1line.txt
grep awk uniq, sort, sort -n seq cut wc
rsync lsof find | xargs locate df -H du -cks * | sort -n scp strings file touch z* (zgrep, zcat, etc) tail -f, head
man ps auxf (f only on GNU) kill, -HUP, -9 sudo screen etc/init.d scripts id ^Z, fg, jobs, &
nmap dig tcpdump wget curl ifconfig
The knowledge that bash is a programming language that provides all your basic constructs (ifs, loops, variables, functions), but instead of having a library of functions, you execute simple programs instead
<, >, >>
- as stdin, e.g. “cat somefile.txt | vi -”
for i in a b c d; do echo $i; something_else $i; done alias All the goodies at http://samrowe.com/wordpress/advancing-in-the-bash-shell/