Question

Linux System (using terminal) What kind of file is /bin/zcat? Is it readable by humans?

Linux System (using terminal)

What kind of file is /bin/zcat? Is it readable by humans?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

yes,readable.If we use cat, you can replace it with zcat.zcat is used in exactly the same manner as you use cat.

For example:

zcat logfile.gz

this will display all the contents of logfile.gz without even extracting it.Actually,it does kind of extract it temporailyin /tmp but that's not the same as an actual extraction ,is it?

you can use regular less and more commands with zcat to see the the output in pages:

zcat logfile.gz|less

zcat logfile.gz|more

if you don't know if the file is compressed or not (that is files without .gz extension),you can use zcat with option -f.this will display the content of the file irrespective of whether it is gzipped or not.

Add a comment
Know the answer?
Add Answer to:
Linux System (using terminal) What kind of file is /bin/zcat? Is it readable by humans?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT