Handy Terminal Commands

Compressing/Unzipping a directory

Making a .tar file:

tar cf <tar_name>.tar <file_name>

Zipping the file:

gzip <tar_name>.tar

Unzip a .tar file:

tar -xf <tar_name>.tar

Sending a file from a remote directory

From remote to local:

scp name@remote.something.co:/path/to/file/file_name ~/local/path

From local to remote (have to be ssh'ed to the remote first):

scp ~/local/path name@remote.something.co:/path/to/file/file_name