interm: add md5, fs: add du

git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@225 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
bevilj 2018-11-15 22:31:10 +00:00
parent 7c50f0896e
commit 326bc1e458
2 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,33 @@
---
layout: page
category-title: Intermediate commands
category-page: intermediate
tags: integrity checksum
author: Joey Bevilacqua
title: md5
---
The command <code>md5</code> calculates an unique string for each input given as
argument using the <i>md5</i> algorithm.
<pre>
md5 [flags] [arg1] [arg2]
</pre>
Where [flags] are the (optional) md5 flags, read below for more info,
and [arg1], [arg2] are the path for files or string (depending on the flags).
Example: md5 sum of the string <i>Hello there</i>
<pre>
md5 -s "Hello there"
MD5 ("Hello there") = e8ea7a8d1e93e8764a84a0f3df4644de
</pre>
<h3>Flags</h3>
<ul>q
<li><b>-s</b>: computes the md5 sum of a string instead of a file</li>
<li><b>-q</b>: prints the md5 sum without the file or string name</li>
<li><b>-r</b>: reverses the format of the output</li>
</ul>

29
site/pages/fs/du.html Normal file
View File

@ -0,0 +1,29 @@
---
layout: page
category-page: fs
category-title: FileSystem
tags: disk usage file size
author: Joey Bevilacqua
title: du
---
The <code>du</code> command is used to display files and directories sizes.<br>
The name stands for <i>Disk Usage</i>.
<pre>
du [flags] [file1] [file2] [directory1] ...
</pre>
<h3>Flags</h3>
<ul>
<li><b>-a</b>: shows the size of each individual file inside a given folder,
not the folder total size.
</li>
<li><b>-c</b>: shows the total size of all the files passed as arguments</li>
<li><b>-d</b>: select the max depth of folder recursion</li>
<li><b>-h</b>: shows the sizes in an human-readable format</li>
<li><b>-g</b>: shows the sizes with GB units</li>
<li><b>-m</b>: shows the sizes with MB units</li>
<li><b>-k</b>: shows the sizes with KB units</li>
</ul>