Concurrency And Synchronization in Linux

Let us take a quick look at a fragment of hypothetical device memory management code. Device is checking whether the memory it requires has been allocated yet or not. if (!dptr->data[s_pos]) { dptr->data[s_pos] = kmalloc(quantum, GFP_KERNEL); if (!dptr->data[s_pos]) goto out; } Suppose for a moment that two processes (we’ll call [...]

2023-10-31T23:18:11+05:30Categories: Linux|

Working with Modules in Linux

Loading Module Each module is made up of object code that can be dynamically linked to the running kernel by the insmod program and can be unlinked by the rmmod program. modprobe, like insmod, loads a module into the kernel. It differs in that it will look at the module [...]

2023-10-27T17:59:39+05:30Categories: Linux|

Debugging Process Memory Usage

Each process requires memory for the execution. But with a virtual memory operating system like Linux the answer is quite complex. The numbers given by top and ps don't really add up. You can see an individual process' memory usage by examining /proc/<pid>/status Details about memory usage are in /proc/<pid>/statm [...]

2023-08-18T17:45:10+05:30Categories: Linux|Tags: |

Install Downloaded Package on Ubuntu

A package can also be installed after downloading from internet. This post discuss about installing downloaded package on Ubuntu/Debian. In this post i will be using Beyond Compare as example. Graphical Install Download the required .deb package. Double-click the .deb package to install using the graphical package manager. Using GDebi [...]

2023-06-26T22:07:49+05:30Categories: Linux|

What does m mean in Linux Kernel Configuration File?

Linux Kernel has multiple configuration which can be enabled on the need basis. CONFIG_UNIX=m Above is an example of configuration. A configuration can one of the possible value y : Yes, it is always installed n: No, never installed m: Module, it can be installed and uninstalled as you wish

2022-11-14T18:33:40+05:30Categories: Linux|

Working With Environment Variable in Linux

Environment variables are a set of dynamic named values in Linux, used by applications launched in shell. It allow you to customize how the system works and the behavior of the applications. For example, the environment variable can store information about the default browser or the path to executable files. [...]

2022-03-29T19:11:11+05:30Categories: Linux|

Working with Directory in Linux

In this article, we will show you how to work with directory in Linux. We can create a directory using mkdir command. To delete a directory use rmdir command. Current Working Directory To find the current working directory, use pwd command as shown below. pwd What the pwd does is [...]

2022-03-10T19:30:31+05:30Categories: Linux|

List Files and Directories in Linux

The ls command list files and directories in Linux within the file system, and shows detailed information about them. This article will show you how to use the ls command through examples and most common ls options. Below is the syntax of the command ls [OPTION]... [FILE]... When used with [...]

2022-04-29T15:03:28+05:30Categories: Linux|

Command Line Hacks in Linux

Open current directory from Terminalxdg-open .Above command will be open current directory (single dot) in file explorer. xdg-open opens a file or URL in the user's preferred application. Syntax of the command isxdg-open {file URL}Open website from Terminalxdg-open ''

2021-12-18T10:59:00+05:30Categories: Linux|Tags: |

Managing Packages in Linux using CLI

Packages can be updates using graphical user interface (GUI) and command line interface (CLI) in Linux. This post discusses about various commands which can be used for managing the software installed on the device running Linux. Linux package manger working Installing Packages apt-get is the command-line tool for handling packages. [...]

2021-12-16T18:13:58+05:30Categories: Linux|Tags: |
Go to Top