Posted in
2952
2:41 am, May 26, 2020
tar.gz to compress a directory in linux and then decompress it
a pretty common way to zip up contents in a directory into one (or technically two) archive(s).
Add to tar.gz
This will add the directory and all sub directories into the archive called the-archive-name.tar.gz from the directory the-directory you can add a full path to this if needed.
tar -zcvf the-archive-name.tar.gz the-directory
Un Compressing
This is the code to restore the files from the archive. This one will extract it to the current directory.
tar -zxvf the-archive-name.tar.gz
You can also add a target directory to uncompress to like the following
tar -zxvf the-archive-name.tar.gz my-target-directory
View Statistics
This Week
113
This Month
354
This Year
866
Add Comment
Other Items in linux
show all connections on linux command line
add ssh keys on your linux box in 10 seconds
Install PHP without Apache on Ubuntu
add a user and add the user to sudo group
add user to sudo group in ubuntu
simple backup to google drive fron linux
backup script to google drive that can be used for multiple directories
start ssh and add key git
play youtube videos on firefox in ubuntu 18
Creating a chart about charts.css with charts.css from the command line
linux mount a drive manually
installing exfat and ntfs drivers to enable reading of these filesystems
linux list all drives and partitions
how to check the temperature of the pi using command line
how to check linux kernel version on rasberry pi rasberian
how to find what version pi you are using
change file permissions to -rw-rw-r--
install atom editor on ubuntu
Enabling SSH on Ubuntu
certbot add a certificate for one domain
renew all SSL certificates with certbot
To make Ubuntu do nothing when laptop lid is closed
add a user to a group
loop through each directory in a target directory and compress them
loop through each directory in a target directory
tar.gz to compress a directory in linux and then decompress it
Find Disk Space Usage using DU
how to unzip in linux
Related Search Terms
Other Categories in Code
alpine js apps c css factorio font awesome images linux quick modals sqlite site bugs site updates slick slider sliders testing windows apps apache api apps asp bat bootstrap bootstrap templates charts cookies core css css filters css grid design elements docker domains emoji fancybox fonts foundation framework gimp git html icons ideas image formatting images javascript javascript functions jquery js linux mac misc modals mysql nginx node php php errors php function php functions php simple html dom pi400 python react regex sections simple_html_dom simplepie php site bugs site documentation slick slider sql sqlite ssh sublime svg svg css templates tools virtual box vscode vue webdev windows windows 11 windows commands wordpress