≡ Menu

Lakshmanan Ganapathy

Gdb is an essential tool to debug C programs. Breakpoints are the way to tell GDB to stop or pause the program execution at certain line, or function, or address. Once the program is stopped you can examine and change the variable values, continue the program execution from that breakpoint, etc. If you are new [...]

{ 1 comment }

How to Remove Files Older than N days using tmpreaper in Linux

tmpreaper is a tool to remove files which are not accessed for a certain period of time. On Linux desktop distros, this is good for cleaning directories like “~/Downloads”, where files get accumulated over a period of time. On Linux server distros, this is good for cleaning old log files or backup files that are [...]

{ 9 comments }

8 UNIX / Linux Man Command Example to View Man Pages

In UNIX and Linux distros, command line programs come with their own documentation called manual pages or man pages. Man pages are generally written by the developer of the corresponding program. Generally the man pages are divided into number of sections. The following is the list of all available man sections. Every section has a [...]

{ 12 comments }

How to Setup Linux VPN Server and Client using OpenVPN

VPN stands for Virtual Private Network. A Virtual Private Network enables a computer to send and receive data from one private network to another private network which are connected via public network (Internet). This is helpful for those who are outside the company’s intranet, and like to connect to office network securely to access the [...]

{ 18 comments }

How to Write Your Own Linux Kernel Module with a Simple Example

What are kernel modules? Kernel modules are piece of code, that can be loaded and unloaded from kernel on demand. Kernel modules offers an easy way to extend the functionality of the base kernel without having to rebuild or recompile the kernel again. Most of the drivers are implemented as a Linux kernel modules. When [...]

{ 43 comments }

How to Compile Linux Kernel from Source to Build Custom Kernel

Linux kernel is the life force of all Linux family of operating systems including Ubuntu, CentOS, and Fedora. For most part, you don’t need to compile the kernel, as it is installed by default when you install the OS. Also, when there is a critical update done to the kernel, you can use yum, or [...]

{ 31 comments }

5 Modem At Command Examples in Linux (How to Configure Minicom)

AT commands are instructions that are used to control modems. AT stands for ATTENTION. These commands come from Hayes at commands that were used by the Hayes smart modems in 1980’s. Many modems today including dial-up, wireless, GSM/GPRS modems use these AT command set for communication. There are 2 types of modem AT commands. Basic [...]

{ 12 comments }

AuFS stands for Another Union File System. AuFS started as an implementation of UnionFS Union File System. An union filesystem takes an existing filesystem and transparently overlays it on a newer filesystem. It allows files and directories of separate filesystem to co-exist under a single roof. AuFS can merge several directories and provide a single [...]

{ 18 comments }