More useful Solaris commands

Here is a list of Solaris 10 commands that I found helpful, to monitor and optimize the performance of the system:

1. To find the top 10 largest files on the file system:
du -a /var | sort -n -r | head -n 10

2. Sort the ls command to show the largest files first:
ls -l | sort -nk5

3. Find out the top processes taking up the CPU:
prstat -s cpu

4. Find out the top processes taking up the memory:
prstat -s size

5. Find out the number of mails in the mail queue:
mailq |wc -l

6. Get the information about a specific mail in mail queue
cat /var/spool/mqueue/qf

3 comments:

  Anonymous

2/09/2010 2:45 AM

Nice blog as for me. It would be great to read a bit more about that topic. Thanx for sharing this information.

  Anonymous

2/13/2010 10:21 AM

Genial brief and this enter helped me alot in my college assignement. Thank you on your information.