From 0b8b0382a2e3b53560886ed8f53af1909b976546 Mon Sep 17 00:00:00 2001 From: pavlik_dev <121434853+pavliktt@users.noreply.github.com> Date: Tue, 20 Aug 2024 20:07:33 +0200 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b2c0006..a20b68a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,18 @@

fileinfo

A simple C++ program that displays information about files and folders. +

Installation

+First, install libmagic-dev:
+
+sudo apt install libmagic-dev
+

+Now, compile the source code. Note the -lmagic at the end!
+
+g++  -lmagic -o fileinfo
+

+And finally, copy that executable to /usr/local/bin folder.
+
+sudo cp fileinfo /usr/local/bin/
+

Usage

 ./a.out [args] filename ...