Posts

Showing posts from June, 2011

Seq

seq 'prints' (sends to standard output) a sequence of numbers). greg@workstation:~$ seq 10 1 2 3 4 5 6 7 8 9 10 greg@workstation:~$ seq 3 9 3 4 5 6 7 8 9 greg@workstation:~$ seq 10 10 110 10 20 30 40 50 60 70 80 90 100 110 [root@localhost tmp]# seq -f "ashish%02g" 10 ashish01 ashish02 ashish03 ashish04 ashish05 ashish06 ashish07 ashish08 ashish09 ashish10 touch $(seq -f "ashish%02g" 10) ashish01 ashish02 ashish03 ashish04 ashish05 ashish06 ashish07 ashish08 ashish09 ashish10

SAR

Display the CPU Load : sar -P ALL [root@testserver ~]# sar -P ALL -f /var/log/sa/sa25 Linux 2.6.9-023stab048.6-smp (testserver.thomas-krenn.com) 00:00:01 CPU  %user  %nice  %system  %iowait  %idle 00:10:01 all 9.63 0.00 3.81 6.20 80.36 00:10:01 0 8.69 0.00 3.63 7.18 80.50 00:10:01 1 9.28 0.00 3.96 4.47 82.29 00:10:01 2 10.22 0.00 3.86 6.31 79.62 00:10:01 3 9.84 0.00 3.66 6.91 79.59 00:10:01 4 9.86 0.00 3.94 5.28 80.92 00:10:01 5 9.97 0.00 3.84 6.37 79.81 00:10:01 6 9.90 0.00 4.04 7.21 78.85 00:10:01 7 9.32 0.00 3.54 ...