DEV Community

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

Posted on • Updated 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)