Forrest logo
back to the gocryptfs tool

gocryptfs:tldr:ae371

gocryptfs: Mount an encrypted filesystem.
$ gocryptfs ${path-to-cipher_dir} ${path-to-mount_point}
try on your machine

The command gocryptfs is used to mount a directory encrypted with GoCryptFS file system, allowing you to access its contents. Here's what each part of the command does:

  • ${path-to-cipher_dir}: This is the path to the directory that contains the encrypted data. GoCryptFS stores its encrypted files in this directory. It is typically a hidden directory (e.g., .encrypted).

  • ${path-to-mount_point}: This is the directory where you want to mount the decrypted view of the encrypted directory. Once the command is executed, you will be able to access the files in the ${path-to-cipher_dir} directory through this mount point.

By running the command gocryptfs ${path-to-cipher_dir} ${path-to-mount_point}, GoCryptFS will decrypt the contents of ${path-to-cipher_dir} and make them accessible through ${path-to-mount_point}. You can then interact with the files as if they were unencrypted, and any changes made in the mount point will be encrypted and stored in the ${path-to-cipher_dir} directory.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gocryptfs tool