How to Count number of lines in a file in Linux ?

When you are just interested into number of lines in a file to make some decision based … Read more

How To Clear Shell History In Ubuntu Linux ?

When you type something on linux shell, by default Linux save the commands what you type as … Read more

How to extract only specific files from tar.bz2 / tar.gz in Linux ?

The following shell script demos the creation of archive / tar and then use commands to check … Read more

Using conditional statements, if and if-else in Python

When you are writing python program, sometimes you need to make certain checks on variables and based … Read more

Install and Uninstall Android Application ( APK ) using ADB

Following shell script does, check if android application is installed find an apk path if android application … Read more

Shell script to check and mount a partition in Ubuntu

In the following script we check whether the current device is mounted or not by reading information … Read more

Shell script to check if Android device is connected over USB

Android devices has a daemon adbd which helps it to get connected over USB using adb command … Read more

Shell script for switching wifi channel using hopping

Using the below script we tries to connect to different wifi channels of hotspot using iwconfig command. … Read more

How to concatenate strings in Python ?

When you are working with strings in python, at some point in time, you would definitely need … Read more