How to compress a Linux Directory

How to compress a Linux Directory
Views: 22
0 0
Read Time:23 Second

Something that a lot of us are always looking for is how to compress a Linux Directory.

Nothing easer than execute from the command prompt this:

tar -zcvf name-of-the-archive-we-want.tar.gz /path/to/the/folder

This will create the name-of-the-archive-we-want.tar.gz file that can be extracted using this command

tar -zxvf name-of-the-archive-we-want.tar.gz 

Hope you found this helpful

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
set vertical rulers with Visual Studio Code Previous post How to set vertical rulers with Visual Studio Code
Python and SQLAlchemy Next post Get records from the database with Python and SQLAlchemy
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x