Operating System

How to change default Python version ?

There are various ways to change the default Python version on Linux. This article discuss some of the ways to change the default version of Python. This article is equally applicable for other executable also. Below command will list all the versions of python installed on the device ls -ls [...]

2022-02-22T12:23:42+05:30Categories: Linux|Tags: |

How to find the size of directory in Linux

There are many ways to find the directory or folder size in Linux. This post discuss few ways to find the size of directory and file using command line. Using du du command summarizes disk usage of each file, recursively for directories. du -hs /path/to/directory -h option shows the number [...]

2021-09-03T18:59:28+05:30Categories: Operating System|Tags: |

Keyboard Shortcuts in Bash Shell

Terminal is a program called a terminal emulator. It opens a window and lets you interact with the shell. This post covers various keyboard shortcuts which are supported in bash and zsh shell. Key commands for both shells are similar and knowing these time-saving shortcuts can be a great boon [...]

2021-07-06T19:00:02+05:30Categories: Linux|Tags: |

ADB commonly used commands

Introduction ADB is a command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device. It [...]

2022-07-15T17:17:21+05:30Categories: Android|Tags: |

apt Command in Linux

apt is a command-line utility for installing, updating and removing packages on Debian, and related Linux distributions. It performs a similar function to apt-get, but with some additional functions, conveniences, and features. Most of the apt commands must be run as a user with sudo privileges. Syntax Below is the [...]

2022-04-05T19:02:16+05:30Categories: Linux|

Division Functions in Linux kernel

On 64 bit Linux kernel, division (/) and modulus operator (%) will behaved as expected. GCC C compiler generates code that calls functions in the libgcc library to implement the / and % operations with 64-bit operands on 32-bit CPUs. Linux kernel is not linked against the libgcc library, so [...]

2021-04-07T11:37:16+05:30Categories: Linux|

How to find script file name in a Bash script?

Sometime we want to know the file name of the script which we are executing in bash scripting. One such scenarios is use the file name for logging purpose, without hardcoding the name of the script file. In the below example, readlink prints out the value of a symbolic link. [...]

2021-04-06T12:45:57+05:30Categories: Linux|Tags: |

Linux Kernel Debugging

Various debugging technique are available for Linux Kernel Debugging. Most common of them is adding log and printing them using printk. This post list various technique which are useful for debugging a issue. Adding Additional Log printk is similar with printf on C standard library. It can be called from [...]

2021-03-21T00:45:38+05:30Categories: Linux|

Configuration Options for Debugging Linux Kernel

Linux supports various configuration options for debugging Linux Kernel. Some of these options are not supported on all the platforms. Some of the available configuration options are CONFIG_DEBUG_KERNEL : It makes other debugging options available, but does not enable any features.CONFIG_DEBUG_SLAB : This option turns on several types of checks [...]

2021-03-20T23:38:39+05:30Categories: Linux|Tags: |
Go to Top