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