42.9. LABS 1 Exercise 42.1: Security and Mount Options
I am trying to understand one part of this lab, but am pretty confused. Step 2 instructs to "Copy an executable file to it from somewhere else on your system and test that it works in the new location." In the solution, we copy /bin/ls to mountpoint with "sudo cp /bin/ls mountpoint". This far I totally follow, but what comes next confuses me:
Why does this work?
To test, I then also copied /bin/ps over and ran:
This worked, also.
However, when I moved into ~/Documents and tried mountpoint/ls and mountpoint/ps they did not work, why?
[email protected]:~/Documents$ mountpoint/ls
bash: mountpoint/ls: No such file or directory
[email protected]:~/Documents$ mountpoint/ps
bash: mountpoint/ps: No such file or directory