Page 1 of 1
i v1.1 - get a lot of info about a file
Posted: Sat Sep 14, 2024 2:47 pm
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 (518.18 KiB) Viewed 502 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 (143 KiB) Viewed 502 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:
___________
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!
Re: i v1.0 - get a lot of info about a file
Posted: Sun Sep 15, 2024 12:14 pm
by Jasper
@JakeSFR
Thanks for this
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 (48.67 KiB) Viewed 374 times
- I.jpg (71.08 KiB) Viewed 372 times
Re: i v1.0 - get a lot of info about a file
Posted: Sun Sep 15, 2024 1:40 pm
by JakeSFR
Jasper wrote: ↑Sun Sep 15, 2024 12:14 pm
@JakeSFR
Thanks for this
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!
Re: i v1.0 - get a lot of info about a file
Posted: Sun Sep 15, 2024 2:39 pm
by Jasper
No worries ........... already installed and in using it.
Another simple and effective tool
Re: i v1.0 - get a lot of info about a file
Posted: Mon Sep 16, 2024 11:56 pm
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
Re: i v1.0 - get a lot of info about a file
Posted: Tue Sep 17, 2024 3:33 am
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.
Re: i v1.0 - get a lot of info about a file
Posted: Tue Sep 17, 2024 8:32 pm
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.
Greetings!
Re: i v1.1 - get a lot of info about a file
Posted: Fri Sep 20, 2024 6:27 pm
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!
Re: i v1.1 - get a lot of info about a file
Posted: Fri Sep 20, 2024 7:22 pm
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.....