A simple C++ program that displays information about files and folders.
Go to file
2024-08-21 23:44:01 +03:00
.gitignore Initial commit 2024-08-20 19:39:18 +02:00
LICENSE Initial commit 2024-08-20 19:39:18 +02:00
main.cpp Add files via upload 2024-08-20 19:51:21 +02:00
README.md Update README.md 2024-08-21 23:44:01 +03:00

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++ <path/to/source.cpp> -lmagic -o fileinfo

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

Usage

./a.out [args] filename ...
Args:
-A Output absolute path
-E Do not show emojis