DEV Community

Cover image for Compress and decompress File With Tar.gz and Xz
hardyweb
hardyweb

Posted on • Edited on

Compress and decompress File With Tar.gz and Xz

Ini nota aku untuk compress file dan decompress file guna tar dan xz

*Compress file *

tar -czvf namafail.tar.gz * ( semua fail dari dalam folder ) 
Enter fullscreen mode Exit fullscreen mode
xz namafail.tar.gz
Enter fullscreen mode Exit fullscreen mode

decompress file

xz -dv / xz --decompress namafail.tar.gz.xz
Enter fullscreen mode Exit fullscreen mode
tar xvf namafail.tar.gz 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay