Tuesday, September 29, 2020

Dot out files in Linux

 .out files in Linux


In Linux ".out" is typically an executable binary file generated by a compiler like gcc etc.

Its commonly used ad default filename for complied programs, if no specific output filename is specified during compilation.


Reading a binary/.out file


$ cat *.out | grep -ia "Graph schema version 304"

Here, we are using -a as to interpret it as text, this is equivalent to the --binary-files=text


$ grep -r "Graph schema version 304" *.out

This will list the file that containing pattern.


***

Friday, September 11, 2020

Commands strings and od

Easy bad things that can done on Cassandra with default settings.


Run strings against a file in your data directory that matches the pattern '*Data*':

$ strings /var/lib/cassandra/data/sample_table/*Data* <partition_key>

$ od - dump files in octal and other formats and combine file outpus


***