Contents
How do I password protect a file in Linux?
Using gpg, you would do the following.
- Open a terminal window.
- Change to the ~/Documents directory with the command cd ~/Documents.
- Encrypt the file with the command gpg -c important. docx.
- Enter a unique password for the file and hit Enter.
- Verify the newly typed password by typing it again and hitting Enter.
How do I protect a folder in Linux?
Go to the application menu and start Gnome Encfs Manager. Click on the + sign to add a new folder that you’ll be locking with a password. A password protected folder is called stash in this application’s terminology. In here, you can create a new directory or browse to an existing one.