DSA PYTHON JAVA C+ BATCH: post #620 โ€” TG.ME

๐Ÿง Quick Linux tip:

Got log files compressed as .gz? You donโ€™t need to extract them to read or search through the content.

Use the 'z' tools directly:

โ€ข zcat - view the file
โ€ข zless - scroll through it
โ€ข zgrep - search inside it
โ€ข zegrep - search with extended regex
โ€ข zfgrep - search for fixed strings
โ€ข zcmp/zdiff - compare files

These commands let you inspect compressed logs without unpacking them first, perfect for quick troubleshooting sessions.
โค4
March 4, 2026 4.4K 3