elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
unused
/
image_stats.sh
File editor
#!/bin/sh # Show misc. statistics for ELKS disk images MTPT=/mnt/elks IMAGES="root comb360 comb comb_net full5 full3 full1680" echo echo " ELKS disk image file statistics" echo "-----------------------------------" printf "|%7s %s %5s|%5s|%5s|%5s|\n" "Image" '|' "Total" "Used" "Free" "%use" echo '+--------+------+-----+-----+-----+' umount $MTPT 2>/dev/null umount $MTPT 2>/dev/null for X in $IMAGES do if [ -e $X ] then mount $X $MTPT INODES="$(find $MTPT | wc -l)" TOTAL="$(df $MTPT | grep "$MTPT" | sed 's/ */ /g' | cut -d' ' -f2)" USED="$(df $MTPT | grep "$MTPT" | sed 's/ */ /g' | cut -d' ' -f3)" FREE="$(df $MTPT | grep "$MTPT" | sed 's/ */ /g' | cut -d' ' -f4)" PCT="$(df $MTPT | grep "$MTPT" | sed 's/ */ /g' | cut -d' ' -f5)" printf "%8s %s %5s %5s %5s %5s\n" "$X" '|' "$TOTAL" "$USED" "$FREE" "$PCT" umount $MTPT fi done echo
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history