How do I know if my mount is successful?

Lê Minh

Member
How do I know if my mount is successful?
Answer
Using the
mount CommandOne way we can determine if a directory is mounted is by running the mount command and filtering the output. The above line will exit with 0 (success) if /mnt/backup is a mount point. Otherwise, it’ll return -1 (error).
 

Tìm kiếm

Back
Top