Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

zcat

zcat won’t unzip files properly

May 11, 2023 by Tarik

Your school’s system still has the old “compress” style utilities rather than the newer GNU “gzip” based ones. You need to use gzcat rather than zcat, assuming that it’s available.

Categories unix Tags archive, command-line, unix, unzip, zcat Leave a comment

How to get few lines from a .gz compressed file without uncompressing

January 4, 2023 by Tarik

zcat(1) can be supplied by either compress(1) or by gzip(1). On your system, it appears to be compress(1) — it is looking for a file with a .Z extension. Switch to gzip -cd in place of zcat and your command should work fine: gzip -cd CONN.20111109.0057.gz | head Explanation -c –stdout –to-stdout Write output on … Read more

Categories gzip Tags gunzip, gzip, zcat Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa