Update README.md

This commit is contained in:
pavlik_dev 2024-08-22 00:01:03 +03:00 committed by GitHub
parent 59d46cf1fa
commit b8569df25a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ Now, compile the source code. <b>Note the <code>-lmagic</code> at the end!</b><b
<pre>
g++ &lt;path/to/source.cpp&gt; -lmagic -o fileinfo
</pre><br>
And finally, copy that executable to /usr/local/bin folder.<br>
And finally, copy that executable to /usr/local/bin folder. (not required)<br>
<pre>
sudo cp fileinfo /usr/local/bin/
</pre>
@ -20,3 +20,7 @@ Args:<br>
-A Output absolute path<br>
-E Do not show emojis<br>
</pre>
<h2>Example</h2>
<pre>
pavlik@pavlik-MacBookPro9-2:~/rgb-terminal$ ls<br/>LICENSE main.c README.md<br/>pavlik@pavlik-MacBookPro9-2:~/rgb-terminal$ fileinfo main.c # Single file<br/>📝 main.c:<br/>&nbsp;&nbsp;&nbsp;&nbsp;Name: main.c<br/>&nbsp;&nbsp;&nbsp;&nbsp;Type: Text<br/>&nbsp;&nbsp;&nbsp;&nbsp;MIME: text/x-c<br/>&nbsp;&nbsp;&nbsp;&nbsp;File size: 10.1 KB or 9.9 KiB (10110 bytes)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Permissions: -rw-rw-r--<br/>pavlik@pavlik-MacBookPro9-2:~/rgb-terminal$ fileinfo main.c -A # Single file with argument<br/>📝 main.c:<br/>&nbsp;&nbsp;&nbsp;&nbsp;Name: main.c<br/>&nbsp;&nbsp;&nbsp;&nbsp;Type: Text<br/>&nbsp;&nbsp;&nbsp;&nbsp;Absolute path: /home/pavlik/rgb-terminal/main.c<br/>&nbsp;&nbsp;&nbsp;&nbsp;MIME: text/x-c<br/>&nbsp;&nbsp;&nbsp;&nbsp;File size: 10.1 KB or 9.9 KiB (10110 bytes)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Permissions: -rw-rw-r--<br/>pavlik@pavlik-MacBookPro9-2:~/rgb-terminal$ fileinfo * # All files in this directory<br/>📝 LICENSE:<br/>&nbsp;&nbsp;&nbsp;&nbsp;Name: LICENSE<br/>&nbsp;&nbsp;&nbsp;&nbsp;Type: Text<br/>&nbsp;&nbsp;&nbsp;&nbsp;MIME: text/plain<br/>&nbsp;&nbsp;&nbsp;&nbsp;File size: 1.2 KB or 1.2 KiB (1211 bytes)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Permissions: -rw-rw-r--<br/><br/>📝 main.c:<br/>&nbsp;&nbsp;&nbsp;&nbsp;Name: main.c<br/>&nbsp;&nbsp;&nbsp;&nbsp;Type: Text<br/>&nbsp;&nbsp;&nbsp;&nbsp;MIME: text/x-c<br/>&nbsp;&nbsp;&nbsp;&nbsp;File size: 10.1 KB or 9.9 KiB (10110 bytes)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Permissions: -rw-rw-r--<br/><br/>📝 README.md:<br/>&nbsp;&nbsp;&nbsp;&nbsp;Name: README.md<br/>&nbsp;&nbsp;&nbsp;&nbsp;Type: Text<br/>&nbsp;&nbsp;&nbsp;&nbsp;MIME: text/plain<br/>&nbsp;&nbsp;&nbsp;&nbsp;File size: 173 bytes<br/>&nbsp;&nbsp;&nbsp;&nbsp;Permissions: -rw-rw-r--<br/>pavlik@pavlik-MacBookPro9-2:~/rgb-terminal$ fileinfo . # Current directory<br/>📁 rgb-terminal/:<br/>&nbsp;&nbsp;&nbsp;&nbsp;Name: rgb-terminal/<br/>&nbsp;&nbsp;&nbsp;&nbsp;Type: Folder<br/>&nbsp;&nbsp;&nbsp;&nbsp;MIME: inode/directory<br/>&nbsp;&nbsp;&nbsp;&nbsp;Contents:<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Normal: 3 files and 0 folders.<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hidden: 0 files and 1 folders.<br/>&nbsp;&nbsp;&nbsp;&nbsp;Permissions: drwxrwxr-x
</pre>