Wednesday, June 27, 2007

FreeBSD Hot Tips

Home Monitoring Hot Tips
FreeBSD Hot Tips
1. Show how big are files in a list of subdirectories, sorted by size (in the curent path)

du -s * |sort -rn | head


2. Show ICMP packets on interface fxp0:

tcpdump -i fxp0 'proto \icmp'


3. Display informations about Swap partition and other informations ("The pstat utility displays open file entry, swap space utilization, terminal state, and vnode data structures", from man page).

pstat -s


4. Display system statistics about your server (virtual memory usage, for example)

systat -vmstat