You're browsing snippets anonymously. Log in or create an account to save and manage your own snippets.
Public Snippets
Showing
2 snippets
with
tags:
linux
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
Showing
2 snippets
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