Dashboard > Linux > Tips and tricks
Linux Log In   View a printable version of the current page.
Tips and tricks
Added by Alex Polvi, last edited by Alex Polvi on Jan 11, 2005
Labels: 
(None)

Random things we have collected.

Gentoo fame gave us these:

alias ak-emerge="ACCEPT_KEYWORDS=~x86 emerge"
alias du-max='du -h --max-depth=1'
function ipban { /sbin/iptables -t mangle -p tcp -A PREROUTING -s ${1} -j DROP; }
function ipunban { /sbin/iptables -t mangle -p tcp -D PREROUTING -s ${1} -j DROP; }
function hup { /bin/kill -HUP `/bin/pidof ${1}`; }
function topconn { netstat -tn | grep :80 | awk '{print $5}' | sed -e 's/:.*//' | sort | uniq -c | sort -r | head -n 25; }

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.7 Build:#524 Jul 28, 2006) - Bug/feature request - Contact Administrators