у меня такой: http://commmunity.linux.com/guides/abs-guide/sample-bashrc.shtml
плюс добавил:
umask 0077
export HISTFILE=/dev/null
function psc {
ps --cols=1000 --sort='-%cpu,uid,pgid,ppid,pid' -e \
-o user,pid,ppid,pgid,stime,stat,wchan,time,pcpu,pmem,vsz,rss,sz,args |
sed 's/^/ /' | less
}
function psm {
ps --cols=1000 --sort='-vsz,uid,pgid,ppid,pid' -e \
-o user,pid,ppid,pgid,stime,stat,wchan,time,pcpu,pmem,vsz,rss,sz,args |
sed 's/^/ /' | less
}
function tree(){
dir=${1:-.}
(cd $dir; pwd)
find $dir -type d -print | sort -f | sed -e "s,^$1,," -e "/^$/d" -e "s,[^/]*/\([^/]*\)$,\`---\1," -e "s,[^/]*/,| ,g"
}
function get()
{
h=${1#http://}
h=${h%%/*}
p=${h#*:}
if [ "$p" = "$h" ]; then
p='80'
fi
f=${1#http://*/}
if [ "$f" = "$1" ]; then
f='/'
else
if [ -z "$f" ]; then
f='/'
else
f="/$f"
fi
fi
( echo -e "GET $f HTTP/1.0\r\nHost: $h\r\n\r\n" 1>&3 & cat 0<&3 )3<>/dev/tcp/$h/$p | (read i; while [ "$(echo $i | tr -d '\r')" != "" ]; do read i; done; cat)
}
у кого еще есть что полезное?