Zip a file

1
2
sudo apt-get install zip
ip -r compressed_filename.zip foldername

Compress an Entire Directory or a Single File:

1
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

or compress a file in the same directory:

1
tar -czvf archive.tar.gz stuff

SSH

1
2
ssh-add [some random key]
ssh [user]@[at something].[dot something]