MANPAGE: add sub-headers to EXAMPLES
Makes linking to them easier.
This commit is contained in:
parent
f3394ae286
commit
6b492fdcb8
@ -573,18 +573,24 @@ In short:
|
||||
EXAMPLES
|
||||
========
|
||||
|
||||
### Init
|
||||
|
||||
Create an encrypted filesystem in directory "mydir.crypt", mount it on "mydir":
|
||||
|
||||
mkdir mydir.crypt mydir
|
||||
gocryptfs -init mydir.crypt
|
||||
gocryptfs mydir.crypt mydir
|
||||
|
||||
### Mount
|
||||
|
||||
Mount an encrypted view of joe's home directory using reverse mode:
|
||||
|
||||
mkdir /home/joe.crypt
|
||||
gocryptfs -init -reverse /home/joe
|
||||
gocryptfs -reverse /home/joe /home/joe.crypt
|
||||
|
||||
### fstab
|
||||
|
||||
Adding this line to `/etc/fstab` will mount `/tmp/cipher` to `/tmp/plain` on boot, using the
|
||||
password in `/tmp/passfile`. Use `sudo mount -av` to test the line without having
|
||||
to reboot. Adjust the gocryptfs path acc. to the output of the command `which gocryptfs`.
|
||||
|
Loading…
Reference in New Issue
Block a user