Update README.md
This commit is contained in:
parent
70a7735d85
commit
0b8b0382a2
13
README.md
13
README.md
@ -1,5 +1,18 @@
|
|||||||
<h1>fileinfo</h1>
|
<h1>fileinfo</h1>
|
||||||
A simple C++ program that displays information about files and folders.
|
A simple C++ program that displays information about files and folders.
|
||||||
|
<h2>Installation</h2>
|
||||||
|
First, install libmagic-dev:<br>
|
||||||
|
<pre>
|
||||||
|
sudo apt install libmagic-dev
|
||||||
|
</pre><br>
|
||||||
|
Now, compile the source code. <b>Note the <code>-lmagic</code> at the end!</b><br>
|
||||||
|
<pre>
|
||||||
|
g++ <path/to/source.cpp> -lmagic -o fileinfo
|
||||||
|
</pre><br>
|
||||||
|
And finally, copy that executable to /usr/local/bin folder.<br>
|
||||||
|
<pre>
|
||||||
|
sudo cp fileinfo /usr/local/bin/
|
||||||
|
</pre>
|
||||||
<h2>Usage</h2>
|
<h2>Usage</h2>
|
||||||
<pre>
|
<pre>
|
||||||
./a.out [args] filename ...<br>
|
./a.out [args] filename ...<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user