From b8569df25a7df01002bd5f3656757a58b1fd33b0 Mon Sep 17 00:00:00 2001 From: pavlik_dev <121434853+pavliktt@users.noreply.github.com> Date: Thu, 22 Aug 2024 00:01:03 +0300 Subject: [PATCH] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c9518e..2adbe00 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ 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.
+And finally, copy that executable to /usr/local/bin folder. (not required)
 sudo cp fileinfo /usr/local/bin/
 
@@ -20,3 +20,7 @@ Args:
-A Output absolute path
-E Do not show emojis
+

Example

+
+pavlik@pavlik-MacBookPro9-2:~/rgb-terminal$ ls
LICENSE main.c README.md
pavlik@pavlik-MacBookPro9-2:~/rgb-terminal$ fileinfo main.c # Single file
📝 main.c:
    Name: main.c
    Type: Text
    MIME: text/x-c
    File size: 10.1 KB or 9.9 KiB (10110 bytes)
    Permissions: -rw-rw-r--
pavlik@pavlik-MacBookPro9-2:~/rgb-terminal$ fileinfo main.c -A # Single file with argument
📝 main.c:
    Name: main.c
    Type: Text
    Absolute path: /home/pavlik/rgb-terminal/main.c
    MIME: text/x-c
    File size: 10.1 KB or 9.9 KiB (10110 bytes)
    Permissions: -rw-rw-r--
pavlik@pavlik-MacBookPro9-2:~/rgb-terminal$ fileinfo * # All files in this directory
📝 LICENSE:
    Name: LICENSE
    Type: Text
    MIME: text/plain
    File size: 1.2 KB or 1.2 KiB (1211 bytes)
    Permissions: -rw-rw-r--

📝 main.c:
    Name: main.c
    Type: Text
    MIME: text/x-c
    File size: 10.1 KB or 9.9 KiB (10110 bytes)
    Permissions: -rw-rw-r--

📝 README.md:
    Name: README.md
    Type: Text
    MIME: text/plain
    File size: 173 bytes
    Permissions: -rw-rw-r--
pavlik@pavlik-MacBookPro9-2:~/rgb-terminal$ fileinfo . # Current directory
📁 rgb-terminal/:
    Name: rgb-terminal/
    Type: Folder
    MIME: inode/directory
    Contents:
        Normal: 3 files and 0 folders.
        Hidden: 0 files and 1 folders.
    Permissions: drwxrwxr-x +