How do I view file?

I am trying to view the files in /etc/security/audit/SERVERNAME/files, but when I gunzip them and then do a cat I get a bunch of garbage with some stuff that makes sense. I need to view this file without having all the garbage. I tried to cat it and vi it without any luck. Can someone show me an easy command to view these files while also uncompressing them at the same time? That would be cool.

You can use

to see the content

I did:

strings 20100923000000.20100924000000.SERVERNAME.gz

and it came up with the same garbage but down the screen in a uniform format. I would like to just have the good stuff and not all the garbage. Any other suggestions?

Gunzip 1st before seeing the file

1 Like

That worked out cool. Can you tell me what all this information in this file means. Is it like event files of all the actions on the server for that day?