Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the copy-the-code domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pb-seo-friendly-images domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the johannes domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121
Create a .zip or .tar.gz archive in Ubuntu Linux (command line) - PC✗3
Create a .zip or .tar.gz archive in Ubuntu Linux (command line)

Create a .zip or .tar.gz archive in Ubuntu Linux (command line)

With Gnome, this is as easy as opening a file browser > select file(s) > right click > Compress…

Here are the simple cases for the command line.  For many more advanced options, check the man pages for zip and tar.

zip -r my_archive.zip /path/of/files/to/compress/

tar -zcvf my_archive.tar.gz /path/of/files/to/compress/

…and to uncompress an archive on the command line:

unzip my_archive.zip

tar -xvf my_archive.tar.gz

I know this is really basic stuff, right?  Perhaps now that I’ve blogged it I won’t forget again.

whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.