List mounted drives

Command

df-ls

Snippet

df -h --output=target,size,used,avail,pcent,source | grep -e Mounted -e $1 |  awk 'NR<2{print $0;next}{print $0| "sort"}'

Description

Used to filter and sort the list of drives mounted and listed under the df command. The first and only argument is the name to filter the disks by.

My use case for my server is to run this:

dsc df-ls data-disk

dsc df-ls bulk
By xtream1101 Updated 2025-02-08 22:44