Wednesday, April 18, 2018

Getting Kernel messages in Android

There are 2 ways to get kernel messages in Android:

1)using dmesg :

which is non blocking call and will dump current kernel log buffer on screen.

2) using : cat /proc/kmsg 

This is a blocking call and it continuously dumps kernel messages on screen as in when they are dumped by different processes .

Friday, April 13, 2018

zip commands

Command to split given zip into multiple small size zips in Ubuntu

First zip a given file into a zip using following command .zippiing a given file named neelam.txt

zip neelam.zip neelam.txt

If zipped file is too big to be sent over email or to big to be attached with bug report, you can split it into multiple chunks using following command


split neelam.zip -b 50M ZIPCHUNKS

where b is bytes  = 50M , 50M means 50 MB and all 50M bytes of data would be put in files having names starting with ZIPCHUNKSaa,ZIPCHUNKSab,ZIPCHUNKSac and so on