Project

General

Profile

Bash tricks » History » Revision 3

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

{{>toc}} 

 h1. Bash tricks 

 h2. * 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> 

 h2. * Get CPU cpu and RAM 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