Posted in Command Line, Linux Encrypt/Decrypt using PGP Binny V A September 8, 2008 Leave a Comment on Encrypt/Decrypt using PGP Usie this command to encrypt and decrypt a file using PGP in linux. gpg -c file gpg -o file -d file.gpg (output to file) Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.