I am using
mount -o bind /some/directory/here /foo/bar
I want to check /foo/bar
though with a bash script, and see if its been mounted? If not, then call the above mount command, else do something else. How can I do this?
CentOS is the operating system.
See Question&Answers more detail:os