Shell Scripting

I primarily use ZSH

Files

list filesize not in bytes

ls -lh filename

output looks like

-rw-r--r-- 1 picaq picaq 112M Feb  9 20:04 structured_data.ndjson

Encryption

use GPG to encrypt with a passphrase

gpg -c filename.txt

will create filename.txt.gpg

to decrypt

gpg -d filename.txt.gpg

will cat the contents into the terminal


Table of contents