What Does –– (double dash) Mean In SSH Shell Command?

Posted on in Categories , , , last updated December 3, 2013

I see lots of seasoned admins and cloud provider wrapper scripts use ssh client command as follows in shell:

ssh [email protected] --

What the double -- does here? Why it is used in this shell command and why not just use the following?

ssh [email protected]

Unix / Linux: cat .GZ Compressed Text File On Screen

Posted on in Categories , , last updated November 11, 2013

To save the disk space on my Linux based nas (network storage server), I have compressed thousands of reports[0-1000].txt files using gunzip program. However, I need to cat .gz file (or open in vim text editor) for reference purposes. I have a log files stores on my nas server in compressed format using gzip command. How do I display compressed Apache log file without using cat command? How to display the contents of gzip text files in screen without unzipping?