What does the command mount --bind do?
What does the command mount --bind do?
The command mount --bind makes the contents of one directory available in another directory. It allows you to create another access point to the same file system data without moving the actual contents. This command is particularly useful for accessing data from multiple locations or for creating specific directory structures needed for different applications without duplicating the data.
A is correct. df -hT | grep sdb1 /dev/sdb1 ext4 991M 2.6M 922M 1% /mnt root@ubuntu1804:~# mount --bind /mnt /run/media/system/Virtual_disk/ root@ubuntu1804:~# ls /mnt/ lost+found root@ubuntu1804:~# touch /mnt/file1 root@ubuntu1804:~# ls /mnt/ file1 lost+found root@ubuntu1804:~# ls /run/media/system/Virtual_disk/ file1 lost+found
Correct Answer: A https://www.baeldung.com/linux/bind-mounts
Is it B?
A is the right choice according the man page on mount
The answer is A
It makes the contents of one directory available in another directory