[wplug] Favorite handy one line commands
John
john at strangeness.org
Wed Jun 4 22:04:08 EDT 2003
Just thought I'd send people a few of the commands I seem to type a lot when
working on systems. Add to the list and keep it going if you see something
you can add to the list. Feel free to complain about crappy syntax or
things you might can add to as well! :)
- John
rpm -qa | grep packages
rpm -q packagename
kill -9 `ps aux | grep processname | awk '{print $2}'`
Simple loop (handy for TONS of things)
for i in `cat listofhosts`
do
rsh $i ntpdate xxx.xxx.xxx.xxx
done
More information about the wplug
mailing list