Project

General

Profile

Bash tricks » History » Version 1

Alexis Jeandet, 06/11/2013 09:28 PM

1 1 Alexis Jeandet
h1. Bash tricks
2
3
* Get disk usage
4
5
<pre><code class="bash">
6
df -h
7
</code></pre> 
8
9
Will give you something like this:
10
11
<pre>
12
Sys. de fichiers       Taille Utilisé Dispo Uti% Monté sur
13
/dev/sde1                110G    8,1G   97G   8% /
14
devtmpfs                 126G       0  126G   0% /dev
15
tmpfs                    126G       0  126G   0% /dev/shm
16
tmpfs                    126G    920K  126G   1% /run
17
tmpfs                    126G       0  126G   0% /sys/fs/cgroup
18
tmpfs                    126G    4,0K  126G   1% /tmp
19
/dev/mapper/ddf1_DATA2    15T    7,7G   14T   1% /home
20
</pre>
21
22
* Get cpu and ram usage
23
24
<pre><code class="bash">
25
htop
26
</code></pre> 
27
28
Will give you something like this:
29
30
p=. !{width: 80%}htop.png(htop screenshot example)!