This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -eo size,pid,user,command | awk '{ hr=$1/1024 ; printf("%13.6f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | sort -n | grep -v 0.000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Monitoring on interface eth0 | |
tcpdump -i eth0 -n port 67 and port 68 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put timestamps in my bash history | |
export HISTTIMEFORMAT='%F %T ' | |
# don't put duplicate commands into the history | |
export HISTCONTROL=ignoredups | |
# record only the most recent duplicated command (see above) | |
export HISTCONTROL=ignoreboth | |
# don't record these commands in the history; who cares about ls? |
NewerOlder