#!/bin/sh # m -n list nfs mounts # m list local mounts # see also https://dbohdan.com/clean-mount-lists if [ "$1" = "-n" ] then mount | sort -n | perl -ane 'printf "%-38s %-30s %5s\n", $F[0], $F[2], $F[4] if $F[4]=~/nfs.?$/' else mount -l -t btrfs,fat,exfat,ext2,ext4,iso9660,ntfs3,ufs,vfat,xfs,zfs fi