Linked list is one of the fundamental data structures in C. Knowledge of linked lists is must for C programmers. This article explains the fundamentals of C linked list with an example C program. Linked list is a dynamic data structure whose length can be increased or decreased at run time. How Linked lists are [...]
2012
Linux fsck utility is used to check and repair Linux filesystems (ext2, ext3, ext4, etc.). Depending on when was the last time a file system was checked, the system runs the fsck during boot time to check whether the filesystem is in consistent state. System administrator could also run it manually when there is a [...]
od command in Linux is used to output the contents of a file in different formats with the octal format being the default. This command is especially useful when debugging Linux scripts for unwanted changes or characters. This article explains how to use od command with some examples. The basic syntax of this command is [...]
In this article, we will discuss some interesting problems on C language that can help students to brush up their C programming skills and help them prepare their C fundamentals for interviews. 1. gets() function Question: There is a hidden problem with the following code. Can you detect it? #include<stdio.h> int main(void) { char buff[10]; [...]
This article is part of our ongoing Linux IPTables series of articles. When things are not working as expected with your IPTables rules, you might want to log the IPTables dropped packets for troubleshooting purpose. This article explains how to log both incoming and outgoing dropped firewal packets. If you are new to IPTables, first [...]
As you already know, Linux diff command compares two files. However Linux diff3 utility compares three files and is also capable of merging the difference between two files into the third one. In this article, we will understand the usage of diff3 command through some examples. The basic syntax of diff3 is : diff3 [OPTION]... [...]
Profiling is an important aspect of software programming. Through profiling one can determine the parts in program code that are time consuming and need to be re-written. This helps make your program execution faster which is always desired. In very large projects, profiling can save your day by not only determining the parts in your [...]
While majority of the end-users doesn’t care how Internet works, some of you might be curious to understand the basics of how Internet works. In this article we will try to peel off the first layer on this topic to understand how Internet works by elaborating the journey of a data packet from its source [...]
My name is Ramesh Natarajan. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web. My focus is to write articles that will either teach you or help you resolve a problem. Read more about