Project

General

Profile

Bash tricks » History » Revision 2

Revision 1 (Alexis Jeandet, 06/11/2013 09:28 PM) → Revision 2/14 (Alexis Jeandet, 06/11/2013 09:33 PM)

h1. Bash tricks 

 * Get disk usage 

 <pre><code class="bash"> 
 df -h 
 </code></pre>  

 Will give you something like this: 

 <pre> 
 Sys. de fichiers         Taille Utilisé Dispo Uti% Monté sur 
 /dev/sde1                  110G      8,1G     97G     8% / 
 devtmpfs                   126G         0    126G     0% /dev 
 tmpfs                      126G         0    126G     0% /dev/shm 
 tmpfs                      126G      920K    126G     1% /run 
 tmpfs                      126G         0    126G     0% /sys/fs/cgroup 
 tmpfs                      126G      4,0K    126G     1% /tmp 
 /dev/mapper/ddf1_DATA2      15T      7,7G     14T     1% /home 
 </pre> 

 * Get cpu and ram usage 

 <pre><code class="bash"> 
 htop 
 </code></pre>  

 Will give you something like this: 

 p=. !{width: 80%}htop.png(htop screenshot example)! 

 To get more information about htop see "here":http://htop.sourceforge.net/index.php?page=main