Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux check if dir is mounted

if mountpoint -q -- "$dir"; then
  printf '%s
' "$dir is a mount point"
fi
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #linux #check #dir #mounted
ADD COMMENT
Topic
Name
8+5 =