Is it it's own file system?
Posted: Thu Sep 04, 2014 1:07 pm
Find out if a dir is a dir or a file system
Code: Select all
alias isdir=$'for i in $(find . -maxdepth 1 -type d | awk -F "/" \'{print $2}\' | grep -v "\."); do ism=$(df | grep $i); if [ ! "$ism" ]; then echo "Is dir=$i"; else echo "Is mount=$i"; fi; done' 2>/dev/null