# Zip all files/folders in current directory
tar cf filename.tar *
# Unzip archive to current directory
tar -xvf filename.tar
With gzip compression
# Compress and zip all files/folders in current directory
# -c = Create
# -v = Verbosely list files processed
# -z = Filter the archive through gzip
# -p = Preserve Permissions (extract all protection information)
# -f = Use archive file or device F
tar -pvczf filename.tar.gz *
# Decompress and unzip archive to current directory
tar -zxvf filename.tar.gz