≡ Menu

Linux

When you need to search for some files, you might typically use find command. find is a good search utility but it is slow. However locate can search for files very quickly. Though the locate command works very fast, it still has not out-thrown the find command because it has some limitations. This article explains [...]

{ 17 comments }

This is the 1st article of a new series on the processes in Linux. The focus of this series would be on the practical aspects of process environment, process control, process relationships etc. In this article, we will discuss how to get and set environment variables inside a C program. Linux Processes Series: part 1 [...]

{ 9 comments }

In the part 1 of the Linux Signals series, we learned about the fundamental concepts behind Linux signals. Building on the previous part, in this article we will learn about how to catch signals in a process. We will present the practical aspect of signal handling using C program code snippets. Catching a Signal As [...]

{ 21 comments }

This article explains about the tools and commands that can be used to reverse engineer an executable in a Linux environment. Reverse engineering is the act of figuring out what a software does, to which there is no source code available. Reverse engineering may not give you the exact details of the software. But you [...]

{ 10 comments }

Linux Signals Fundamentals – Part I

What is a signal? Signals are software interrupts. A robust program need to handle signals. This is because signals are a way to deliver asynchronous events to the application. A user hitting ctrl+c, a process sending a signal to kill another process etc are all such cases where a process needs to do signal handling. [...]

{ 7 comments }

10 Practical Linux nm Command Examples

The nm commands provides information on the symbols being used in an object file or executable file. The default information that the ‘nm’ command provides is : Virtual address of the symbol A character which depicts the symbol type. If the character is in lower case then the symbol is local but if the character [...]

{ 8 comments }

10 Linux DIG Command Examples for DNS Lookup

Dig stands for domain information groper. Using dig command you can query DNS name servers for your DNS lookup related tasks. This article explains 10 examples on how to use dig command. 1. Simple dig Command Usage (Understand dig Output) When you pass a domain name to the dig command, by default it displays the [...]

{ 29 comments }

Linux Memory Management – Swapping, Caches and Shared VM

This article is part of our on-going UNIX kernel overview series. In the previous article of the kernel series, we discussed about Linux virtual memory and demand paging. Though virtual memory and demand paging are the building blocks of the Linux memory management system, there are various other concepts that make Linux memory management very [...]

{ 4 comments }