Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
Use tar to collect a directory and a compressor to shrink the resulting stream. For a broadly compatible archive, create .tar.gz with gzip. Choose zstd for new internal workflows where fast compression and extraction matter, or xz when the smallest practical file is worth additional CPU time. bzip2 is mainly a compatibility choice for existing .bz2 archives.
What compression on a Linux server actually does
A directory is a tree of names, permissions, ownership, timestamps, symbolic links and file contents. A compressor normally processes a stream, not a directory tree. GNU tar is the archive layer: it walks the tree, records its metadata and writes all entries into one stream. A compressor then reduces that stream. GNU Project’s GNU tar manual states: “GNU tar is able to create and read compressed archives.” The two jobs are related but separate.
That distinction explains why tar itself is not a compression algorithm. An uncompressed tar archive usually ends in .tar; adding gzip produces .tar.gz (also written .tgz), bzip2 produces .tar.bz2, xz produces .tar.xz, and zstd produces .tar.zst. The suffix tells another administrator which decoder is needed.
GNU tar can work with gzip, bzip2, lzip, lzma, lzop, zstd, xz and traditional compress. Its switches include -z for gzip, -j for bzip2, -J for xz and --zstd for zstd. The --auto-compress option, shortened to -a, can select a compressor from the output filename suffix.
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.
Check prerequisites before creating an archive
Most Linux distributions include GNU tar and gzip. Other decoders may be separate packages, and zstd support depends on the installed tar build and zstd program. Check the tools on the machine that will create and extract the archive:
tar --version
gzip --version
xz --version
zstd --version
bzip2 --version
command -v tar gzip xz zstd bzip2
If a command reports that it cannot be found, install the corresponding package through your distribution’s normal package manager or use a format already available on both endpoints. You need read permission for every file and search (execute) permission on each directory in the path. Writing the archive requires write permission and enough free space for the archive plus any temporary or original data you intend to retain.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →For a repeatable job, decide whether ownership, numeric user and group IDs, extended attributes, ACLs, hard links and symbolic links must survive extraction. Tar records much of this metadata, but the extracting account and filesystem can still limit what is restored. Run backups with appropriate privileges when preserving system files is required, and test restoration as the account that will perform it.
Choose gzip, xz, zstd or bzip2
There is no universal winner. Compression results vary with file type, compressor implementation, level, CPU, memory and whether the data is already compressed. A log directory, a source tree and a database dump can produce very different size and time results. No single ratio or speed percentage should be transferred from one workload to every Linux server.
| Format | Typical archive name and tar syntax | Compatibility decision | Size and resource trade-off | Parallel and integrity considerations |
|---|---|---|---|---|
| gzip | .tar.gz or .tgz; tar -czf |
Safest default when many Unix/Linux systems, older automation or unknown consumers must read the file. | Fast, familiar defaults; exact ratio and CPU time are workload-dependent and not stated as a general figure. | Decoder is widely installed. Use it when interoperability is more important than pursuing the smallest archive. |
| xz | .tar.xz; tar -cJf |
Use when every receiving system has xz support and compact output matters more than elapsed CPU time. | Can trade substantially more CPU time and memory for a smaller stream; no universal ratio is established. | XZ Utils exposes thread, integrity-check and LZMA2 controls. Verify the selected settings on the target hardware. |
| zstd | .tar.zst; tar --zstd -cf |
Strong choice for new internal workflows when all endpoints provide zstd. | Designed for a useful speed-to-size balance; the result still depends on level and data. | GNU tar supports zstd. Confirm that both tar and the standalone decoder are installed wherever the archive travels. |
| bzip2 | .tar.bz2; tar -cjf |
Keep it for existing .bz2 archives or an ecosystem that explicitly requires it. |
Usually less attractive as a new default when gzip or zstd are accepted; no general benchmark figure is stated. | Use the matching bzip2 decoder and preserve the suffix so the format is unambiguous. |
Package ecosystems illustrate why support matters: Debian package metadata lists gzip, xz, zstd and bzip2 among its supported compression choices. Before standardizing a format, check the operating systems, container images, backup software and scripts that must consume it.
Compress a directory with gzip
Gzip is the least surprising starting point for a beginner. The following command archives the /srv/site directory and writes the compressed result in the current working directory:
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
tar -czf site-backup.tar.gz /srv/site
The options mean create an archive (-c), use gzip (-z) and write to the named file (-f). If the source is sensitive, choose an output directory with suitable permissions and avoid placing the archive inside the directory being archived; doing so can cause the archive to include itself or fail as it grows.
To avoid embedding a long leading path and to control the extraction layout, change to the parent directory and archive the relative name:
tar -C /srv -czf /backup/site-backup.tar.gz site
Whether you use an absolute or relative source, record the command and the tar version in your backup notes. A path beginning with / may produce a warning and be stored without its leading slash, which is normally safer for extraction. Always inspect the archive rather than assuming the path layout.
List, test and extract a .tar.gz archive
List contents without extracting
tar -tzf site-backup.tar.gz
-t lists entries, -z selects gzip and -f names the archive. Add a pipeline such as | less for a large listing. Look for unexpected absolute paths, parent-directory components such as ../, or an unwanted top-level directory before extracting into a live tree.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsExtract into the current directory
tar -xzf site-backup.tar.gz
This creates the paths recorded in the archive under the current directory. To extract somewhere specific, use tar’s directory option:
mkdir -p /restore/site
tar -xzf site-backup.tar.gz -C /restore/site
Use a staging directory first when the archive came from another administrator or system. Review the listing, extract there, compare the files, and only then copy the approved tree into a production location. Extraction can overwrite files that have the same names, so do not point an unverified archive at / or a live application directory.
Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Verify that gzip and tar can read it
A successful listing or extraction checks that the stream can be decoded and that tar can parse its records. For a stronger operational check, extract into a temporary directory and compare expected files, ownership and permissions. You can also create and store a separate checksum:
sha256sum site-backup.tar.gz > site-backup.tar.gz.sha256
sha256sum --check site-backup.tar.gz.sha256
A checksum detects changes to the archive while it is stored or transferred; it does not replace an independent backup copy.
Create archives with xz, zstd and bzip2
Use the compressor switch that matches the filename. These commands archive the directory named in each example:
# bzip2: read or create legacy .bz2 archives
tar -cjf logs.tar.bz2 /var/log/myapp
tar -xjf logs.tar.bz2
# xz: favor compact output when extra CPU time is acceptable
tar -cJf source.tar.xz source/
tar -xJf source.tar.xz
# zstd: modern speed-to-ratio option when installed
tar --zstd -cf build.tar.zst build/
tar --zstd -xf build.tar.zst
The extraction switch must agree with the archive’s actual compressor. A file named .tar.gz that was really made with xz will not become valid merely by renaming it; inspect how it was produced or use the appropriate decoder.
You can let GNU tar infer the compressor from a recognized suffix with -a:
tar -caf release.tar.zst release/
Use this convenience only when the suffix is correct and the installed tar supports the requested format. Explicit switches are clearer in scripts that must run on older systems.
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
Compress one file without creating a tar archive
Tar is useful for a tree because it combines many entries and their metadata. For one ordinary file, the standalone compressor is simpler:
gzip access.log
gzip -d access.log.gz
xz dump.sql
xz -d dump.sql.xz
zstd backup.img
zstd -d backup.img.zst
Gzip and xz normally replace the original with the compressed file and restore the original name when decompressed. Confirm the behavior and destination before running a command in an automation job. A single-file stream does not provide tar’s directory metadata, ownership records or symbolic-link representation.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Control CPU, memory and parallel work
Most compressors provide levels that trade time and memory for output size. Higher is not automatically better: a smaller archive can cost more CPU on every producer and consumer, and a highly compressible input may gain little from additional effort. Select a level from measured workload requirements rather than a universal percentage that does not exist.
Parallel support is format- and implementation-specific. XZ Utils exposes controls for threads, integrity checks and LZMA2 settings. The Linux kernel documentation gives this explicit example:
xz --threads=1 --check=crc32 --lzma2=dict=512KiB inputfile
That command uses one thread, a CRC32 check and a 512 KiB LZMA2 dictionary for a standalone file. Tar can feed a stream to a compressor, but the practical memory and threading behavior still depends on the installed compressor version and settings. Confirm that the destination can decode archives produced with your chosen options.
For a server under load, schedule heavy xz jobs outside peak periods, cap parallel work where your tools allow it, and monitor available memory. For latency-sensitive transfers, zstd or gzip may complete sooner even if the resulting archive is larger.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Integrity, corruption and restore safety
Compression removes redundancy from the stream. GNU tar warns that compressed files can be difficult to recover after a few damaged blocks. Treat a compressed archive as one integrity unit: keep an independent copy, store a checksum, and perform a test listing or extraction before deleting the source.
- Write the archive to a different filesystem or storage target from the source when possible.
- Keep at least one independent copy; a second filename on the same disk does not protect against disk failure.
- Record the archive checksum, creation time, hostname, tar and compressor versions, and the exact command or script.
- Test a representative restore on the same distribution family and on every other platform that must consume the file.
- For critical backups, perform a complete restore drill rather than relying only on a successful checksum.
Compressed archives cannot be appended to, deleted from or updated in place according to GNU tar documentation. If a file changes, recreate the archive. Attempting to treat a compressed tarball like a mutable directory can leave an incomplete or misleading backup process.
Recommended Free Tools
Build a reliable automation workflow
A scheduled job should make its choices explicit and leave evidence for the next operator. A minimal gzip workflow can look like this:
#!/usr/bin/env bash
set -euo pipefail
src=/srv/site
dest=/backup/site-$(date +%F).tar.gz
mkdir -p "$(dirname "$dest")"
tar -czf "$dest" -C "$(dirname "$src")" "$(basename "$src")"
sha256sum "$dest" > "$dest.sha256"
tar -tzf "$dest" > /dev/null
The script creates the destination directory, archives the source relative to its parent, writes a checksum and verifies that tar can read the listing. Production jobs should also handle retention, available disk space, permissions, logging and alerting. Do not remove the source merely because the tar command returned zero; first confirm the archive exists, has a plausible size, passes its checksum policy and can be extracted in a test location.
Troubleshooting common failures
tar: command not found or an unknown compressor option
Install GNU tar and the missing compressor using the distribution’s package manager, or choose a format available on both systems. An older tar may not understand --zstd; check tar --version and use a supported standalone pipeline only when you understand how the stream is being written.
Permission denied
Check read and directory-search permissions on every source component and write permission on the archive destination. Running as root can preserve more metadata but increases the impact of a path mistake. Prefer a dedicated backup account with only the permissions it needs.
The archive is unexpectedly large
Identify the data types first. JPEG, video, many database pages and already-compressed packages may have little remaining redundancy. Exclude caches and reproducible build outputs when policy permits, choose an appropriate compressor level, and compare complete workload results rather than one file.
Extraction fails or produces the wrong layout
List the archive with the matching switch, confirm that the file was not truncated during transfer, verify its checksum, and extract into an empty staging directory. A renamed suffix does not change the underlying format. If the archive is damaged, recover from the independent copy instead of deleting or repeatedly modifying the only original.
The receiving system cannot decode the archive
Install the required decoder there or recreate the archive with gzip when broad compatibility is the priority. Document the format, tar version, compressor version and any non-default settings alongside the file so another operator does not have to guess.
Quick Recap
Practical defaults for a beginner
- Choose
tar -czfand a.tar.gzname for the safest general exchange. - Choose
tar --zstd -cffor a new, controlled environment whose endpoints all support zstd and where fast transfers matter. - Choose
tar -cJfwhen compact output is the priority and additional CPU time and memory are acceptable. - Use bzip2 when an existing consumer requires
.bz2, not because one fixed benchmark makes it universally superior. - Before deleting source data, list or extract the archive, verify a checksum, and prove that a restore works.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.

