Update README.md

This commit is contained in:
pavlik_dev 2024-08-20 20:07:33 +02:00 committed by GitHub
parent 70a7735d85
commit 0b8b0382a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,18 @@
<h1>fileinfo</h1>
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>
<pre>
./a.out [args] filename ...<br>