Cmd Commands Cheat Sheet



Vagrant-cheat-sheet.md Typing vagrant from the command line will display a list of all available commands. Be sure that you are in the same directory as the Vagrantfile when running these commands!

The following are a list of commonly used commands for encrypting documents in Terminal (Mac, Linux) or PowerShell (Windows).

Windows 10 Cmd Commands Cheat Sheet Pdf

Cmd Commands Cheat Sheet
  • The notation d:, for example, indicates an optional drive designation. The command syntax, on the other hand, is how you enter the command to make it work. To open the DOS command window in Windows simple press the “Windows Logo + r”, type cmd and then press Enter.
  • Apr 10, 2021 - Docker command cheat sheet in Image format, Docker compose command cheat sheet and Docker commands cheat sheet pdf.
  • Wireshark Cheat Sheet – Commands, Captures, Filters & Shortcuts Wireshark is an essential tool for network administrators, but very few of them get to unleash its full potential. Having all the commands and useful features in the one place is bound to boost productivity.
  • Format a Pointer. C Read as integer, print as character. D Integer, signed decimal. F Floating point number. O Integer, print as octal. S Try to treat as C string.
ShellCommand prompt cheat sheet pdf
Creating A New Keypair
gpg --gen-keyPrompts for information and then creates an appropriate keypair
Importing, Exporting, and Refreshing Keys
Importing
gpg --import FileImports a key contained in File to the appropriate keyring
gpg –recv-keys KeyID1 KeyID2Receives the key which corresponds to KeyID1, KeyID2, etc from the provided keyserver
gpg --search-keys Term1 Term2Searches for keys which contain Term1 and Term2, etc and provides an interactive interface to choose the correct key to import to the appropriate keyring
Exporting
gpg --export -a KEYID > publickey.ascOutput a public key to a plain text file
gpg --send-keys KeyIDUpload a public key to a keyserver
Refreshing
gpg --refresh-keysCheck to see if your version of a key is out of date. If so update it.
Printing Key Information
gpg --list-keysPrint a list of all of the keys in your public keyring
gpg --list-keys UniqueIDPrint all keys matching UniqueID
gpg --list-sigsPrint a list of all keys in your public keyring and their associated signatures
gpg --list-sigs UniqueIDPrint a list of all keys and their associated signatures matching UniqueID
gpg --fingerprintPrint a list of all keys in your public keyring and their associated fingerprints
gpg --fingerprint UniqueIDPrint a list of all keys and their associated signatures matching UniqueID
Signing a Key
gpg --fingerprint UniqueIDCheck the local key fingerprint against the reported fingerprint
gpg --sign-key UniqueIDIf the fingerprints match sign the key with your private key
Encrypting and Signing
Encrypting
gpg -er Recipient FileProduces File.gpg an encrypted version of File, which can be decrypted by Recipient
echo “Text” | gpg -ear RecipientProduces an encrypted version of Text which can be decrypted by Recipient and prints the result to the terminal
echo “Text” | gpg -ear Recipient > OutFileProduces an encrypted version of Text which can be decrypted by Recipient and writes the result to OutFile
cat InFile | gpg -ear RecipientProduces an encrypted version of the text contained in InFile which can be decrypted by Recipient and prints the result to the terminal
cat InFile | gpg -ear Recipient > OutFileProduces an encrypted version of the text contained in InFile which can be decrypted by Recipient and writes the result to OutFile
Signing
gpg -s FileProduces File.gpg, a signed version of File, which can be verified
echo “Text” | gpg -asProduces a signed version of Text and prints the result to the terminal
echo “Text” | gpg -s > OutFileProduces a signed version of Text and writes the result to OutFile
cat InFile | gpg -asProduces a signed version of the text in InFile and prints the result to the terminal
cat InFile | gpg -s > OutFileProduces a signed version of the text in InFile and writes the result to OutFile
gpg --detach-sign FileProduces a separate signature, File.sig, which can be used to verify File
echo “Text” | gpg --clearsign
cat InFile | gpg --clearsign
Encrypting and Signing
gpg -esr Recipient FileProduces File.gpg, an encrypted and signed version of File, which can be decrypted and verified by Recipient
echo “Text” | gpg -esar Recipient FileProduces an encrypted and signed version of Text which can be decrypted and verified by Recipient and prints the result to the terminal
echo “Text” | gpg -esar Recipient File > OutFileProduces an encrypted and signed version of Text which can be decrypted and verified by Recipient and writes the result to OutFile
cat InFile | gpg -esar RecipientProduces an encrypted and signed version of the text in InFile which can be decrypted and verified by Recipient and prints the result to the terminal
cat InFile | gpg -esar Recipient > OutFileProduces an encrypted and signed version of the text in InFile which can be decrypted and verified by Recipient and prints the result to the terminal
Decrypting and Verifying
gpg -d InFile > OutFileDecrypt and/or verify File
echo “Cipher Text” | gpg -dDecrypt and/or verify Cipher Text
echo “Cipher Text” | gpg -d > OutFileDecrypt and/or verify Cipher Text and write the result to OutFile
cat InFile | gpg -dDecrypt and/or verify the contents of File
cat InFile | gpg -d > OutFileDecrypt and/or verify the contents of File and write the result to OutFile
Symmetric Encryption
gpg -c FileCreate a file symmetrically encrypted with a passphrase
gpg -ca FileCreate a file symmetrically encrypted with a passphrase readable as plain text
echo “Text” | gpg -caSymmetrically encrypt Test with a passphrase and output the result to the terminal
echo “Text” | gpg -c > OutFileSymmetrically encrypt Test with a passphrase and write the result to OutFile
cat InFile | gpg -caSymmetrically encrypt the text in InFile and output the result to the terminal
cat InFile | gpg -c > OutFileSymmetrically encrypt the text in InFile and write the result to OutFile
Cmd Commands Cheat SheetCheat

Cmd Linux Commands Cheat Sheet

Created by Brian Balsamo. Used with permission.