Curtis Free |
Husband · Dad · Geek |
BlogUsing the TrueCrypt CLI @ 04 Jul 2011TrueCrypt is a great utility for hiding sensitive data – whether in an encrypted disk image or on an entire encrypted partition. I encourage you to check out TrueCrypt, but that is not the point of this post. Most TrueCrypt users are likely accustomed to its GUI. In fact, I very much like it. That said, some users do not realize that there is also a command-line interface (CLI) to TrueCrypt. The key to using TrueCrypt from a terminal is the After an encrypted volume has been created (a task that can also be accomplished via terminal), the two most common tasks will be mounting and unmounting the volume. Mounting is simple and is the "default" option (requiring no special flags/commands). Simply tell TrueCrypt the location of the encrypted volume (disk image or device) and the mountpoint:
Note that this makes it easy to choose an arbitrary mountpoint for the volume (rather than the
default, which for me is Dismounting is also a simple task:
For a full description of how to use TrueCrypt's CLI, check out the built-in help (N.B., there's no man page):
If you begin using the CLI interface regularly, then do yourself a little favor and add an alias
to your shell config: | |
[ CC BY-SA 4.0 ] |