tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar -czvf archive.tar.gz stuff
tar cf ostechnix.tar ostechnix/ # Here, c flag refers create new archive and f refers the file name.