How it works...

  1. We used the ext4 file system. In the mount command, we first specified which directory we wanted to mount, followed by the directory in which we will mount it with the ro and noexec options.
  2. We mounted the directories using the default options.
  3. We used the scp command to copy files from a remote host to the local host.

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.