You're browsing snippets anonymously. Log in or create an account to save and manage your own snippets.

Public Snippets
with tags: linux
Showing 2 snippets
List mounted drives
df -h --output=target,size,used,avail,pcent,source | grep -e Mounted -e $1 |  awk 'NR<2{print $0;next}{print $0| "sort"}'
By xtream1101 Updated 2025-02-08 22:44
Clean up empty dirs
# List/print empty dirs (does not delete)
find /mnt/my-data/ -type d -empty -print

# Delete empty dirs
find /mnt/my-data/ -type d -empty -delete
By xtream1101 Updated 2025-02-06 05:15
Showing 2 snippets