compress a file or directory with tar First published: 2020-07-31 Last Edited: None Number of edits: 1 linux , tar , compress tar -czvf file.tar.gz file_or_folder/ Do you like what you read? Get a weekly e-mail with my latest thoughts, reflections, book reviews, and more. Join! Aquiles Carattino This note you are reading is part of my digital garden. Follow the links to learn more, and remember that these notes evolve over time. After all, this website is not a blog.