i v1.1 - get a lot of info about a file

Moderator: Forum moderators

Post Reply
User avatar
JakeSFR
Posts: 270
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 157 times

i v1.1 - get a lot of info about a file

Post by JakeSFR »

A new toy.
This is a simple shell script to get a lot of info about files. But also dirs, why not.

i_cli.gif
i_cli.gif (518.18 KiB) Viewed 500 times

i can utilize the following commands:

  • file

  • xdg-mime

  • rox

  • df

  • lsblk

  • mountpoint

  • findmnt

  • lsof

  • fdisk

  • find

  • ls

  • du

  • stat

  • getfacl

  • chacl

  • getfattr

  • lsattr

  • fatattr

  • exfatattrib

  • ntfssecaudit

  • filefrag

  • wc

  • rdjpgcom

  • exiv2

  • feh

  • gifsicle

  • tiffinfo

  • webpng

  • webpinfo

  • xcfinfo

  • xcur2png

  • fc-scan

  • ftdump

  • ogginfo

  • metaflac

  • sndfile-info

  • ffprobe

  • ctorrent

  • pdfinfo

  • pdfimages

  • pdffonts

  • pdfdetach

  • unzip

  • isoinfo

  • udfinfo

  • dpkg-deb

  • rpm

  • unsquashfs

  • wiminfo

  • btrfs-compsize

  • upx

  • gzip

  • xz

  • zstd

  • zipinfo

  • sqlite3

  • cryptsetup

  • modinfo

  • readelf

  • objdump

  • ldd

i was meant as a pure CLI utility, but, as a measure of convenience, it also installs itself as a ROX and/or Thunar (needs to be restarted with thunar -q) right-click option.
When invoked this way, it uses a simple YAD GUI; otherwise a terminal will be used, as a fallback:

i_gui.gif
i_gui.gif (143 KiB) Viewed 500 times

Btw, the YAD GUI may freeze occasionally after clicking Close or X button.
In such a case, just give it 10 sec. or so, and it should go away eventually.

Program icon, as per usual, was created using @vovchik's excellent Pikona.
___________

Attached packages:

  • PET - for regular Puppies

  • XBPS - for Void-based Pups that use it (KLV, maybe others)

___________

Changelog

Version 1.1:
- added feh (basic info about images)
- added fdisk (info about disk images)
- added unzip (meta from ODF/OOXML documents)
- bugfixes, improvements, refactoring

Version 1.0:
- initial release

Have fun &
Greetings!

Attachments
i-1.1.pet
MD5: fce09b9b0396dc4d71c21c8aacd66e75 i-1.1.pet
(12.13 KiB) Downloaded 5 times
i-1.1_1.noarch.xbps
MD5: 271cc50beeb255f80e8919cb6a6e40a4 i-1.1_1.noarch.xbps
(13.49 KiB) Downloaded 3 times
i-1.0.pet
MD5: 342811d2f6b1f4c03f975b580bd9d44d i-1.0.pet
(11.71 KiB) Downloaded 39 times
i-1.0_1.noarch.xbps
MD5: 46ea0995f162edbe234935ffde8947c4 i-1.0_1.noarch.xbps
(13.04 KiB) Downloaded 16 times
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
Jasper
Posts: 1833
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 775 times
Been thanked: 428 times

Re: i v1.0 - get a lot of info about a file

Post by Jasper »

@JakeSFR

Thanks for this :thumbup:

I tried to install the Xbps offering on VoidPup64 but my OS only gave me the option to 'extract' the application, so had to use the supplied Pet instead.

I was wondering if could view checksums (not all of them!!) too in a future update?

testing.jpg
testing.jpg (48.67 KiB) Viewed 372 times
I.jpg
I.jpg (71.08 KiB) Viewed 370 times
User avatar
JakeSFR
Posts: 270
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 157 times

Re: i v1.0 - get a lot of info about a file

Post by JakeSFR »

Jasper wrote: Sun Sep 15, 2024 12:14 pm

@JakeSFR

Thanks for this :thumbup:

Hey @Jasper, you're welcome!

I tried to install the Xbps offering on VoidPup64 but my OS only gave me the option to 'extract' the application, so had to use the supplied Pet instead.

Yeah, although VoidPup64 has xbps utilities pre-installed, apparently it doesn't use them for package management, unlike e.g. KLV-Airedale.

I was wondering if could view checksums (not all of them!!) too in a future update?

I was briefly considering checksums, but processing big files, like ISOs and videos, especially on HDD, would be painfully slow (times the number of checksums).
Besides, I'm not sure if it can be considered an info about a file, it's more like reductive scrambling of file's data.
So, it's not only for practical, but also philosophical reasons. ;)

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
Jasper
Posts: 1833
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 775 times
Been thanked: 428 times

Re: i v1.0 - get a lot of info about a file

Post by Jasper »

No worries :lol: ........... already installed and in using it.

Another simple and effective tool :thumbup2:

User avatar
rockedge
Site Admin
Posts: 6378
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2579 times
Been thanked: 2534 times
Contact:

Re: i v1.0 - get a lot of info about a file

Post by rockedge »

@JakeSFR

Excellent work!

This is a good utility script so I will install i into KLV-Airedale and KLV-Spectr as a default utility during the next upgrade cycle. After short time of using it in KLV-Boxer, and after getting used it being available, I realized it is quite a handy tool to have onboard.

Thanks :thumbup:

User avatar
wiak
Posts: 4022
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 61 times
Been thanked: 1167 times
Contact:

Re: i v1.0 - get a lot of info about a file

Post by wiak »

Very nice utility

Wish my never-ending house build issues would finish so I could get back into all this in even partly focussed way. But been sick with fever for a week and was in middle of two back to back major tropical cyclones so landslides and floods all around and every roof leaking. Didnt help that I accidentally left car window open after driving through flood one rainy night... Clearly I need a wee Linux box in the car and another few on our property with sensors and detectors for all potential issues including security. So much to do that could be done using specially crafted forum distros... Yad makes great front ends. I also need to figure out how to connect everything up when plot is more than 100m long and sometimes 50m wide and is more like a lake with various small rivers running through it at the moment. Relying a lot on solar but no sun means lithium device batteries long discharged. Interesting project scenarios, but too busy just surviving the loss of municipal water supply, often whole day electricity brownouts, and the countless leaks and flooded access roads. Funnily enough the fibre internet strung on flimsy poles through trees continues to work with help of lead acid battery based UPS with AVR connected to the modem... Back now to my coffee - like an ostrich I am hiding my head in the sandy surrounds of a nearby beach resort cafe that has reliable facilities including diesel backup generators and Elon Musk Starlink...

I should get stemsee to help me build an Ark instead of the house.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
JakeSFR
Posts: 270
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 157 times

Re: i v1.0 - get a lot of info about a file

Post by JakeSFR »

Thanks guys, glad you like it!
I wasn't entirely sure myself if it's actually useful, or if it's just a gimmick, but as it turned out, I've also been using it quite often since the inception.

@wiak: oh man... Hope the bad streak is over soon, and good luck with your future endeavours. :thumbup:

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
JakeSFR
Posts: 270
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 157 times

Re: i v1.1 - get a lot of info about a file

Post by JakeSFR »

Version 1.1:

- added feh (basic info about images)
- added fdisk (info about disk images)
- added unzip (meta from ODF/OOXML documents)
- bugfixes, improvements, refactoring

First post updated.

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
rockedge
Site Admin
Posts: 6378
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2579 times
Been thanked: 2534 times
Contact:

Re: i v1.1 - get a lot of info about a file

Post by rockedge »

JakeSFR wrote: Fri Sep 20, 2024 6:27 pm

Version 1.1:

- added feh (basic info about images)
- added fdisk (info about disk images)
- added unzip (meta from ODF/OOXML documents)
- bugfixes, improvements, refactoring

First post updated.

Greetings!

After just assembling KLV-Airedale-sr15 I see these great additions so now I will add this in and repackage the entire distro. Good stuff..... :geek: :thumbup:

Post Reply

Return to “Utilities”