≡ Menu

Linux

In the Linux threads series, we discussed on the ways in which a thread can terminate and how the return status is passed on from the terminating thread to its parent thread. In this article we will throw some light on an important aspect known as thread synchronization. Linux Threads Series: part 1, part 2, [...]

{ 44 comments }

7 Linux Route Command Examples (How to Add Route in Linux)

In the 1st part of the IP Routing series, we learned the fundamentals of Linux IP Routing. Route command is used to show/manipulate the IP routing table. It is primarily used to setup static routes to specific host or networks via an interface. In this article we will see how to manipulate the routing tables [...]

{ 56 comments }

How to Create Linux Proc Files in C Program using LKM

Proc file system reflects the current state of Linux kernel. The current state of kernel could represent various information like the processes running on it, the hardware information, the network information etc. So this system is designed in a way that all this information can easily be accessed by the user level processes. We also [...]

{ 8 comments }

8 Practical Linux Netcat NC Command Examples

Netcat or nc is a networking utility for debugging and investigating the network. This utility can be used for creating TCP/UDP connections and investigating them. The biggest use of this utility is in the scripts where we need to deal with TCP/UDP sockets. In this article we will learn about the netcat command by some [...]

{ 18 comments }

In the part-II (Thread creation and Identification) of the Linux Thread series, we discussed about thread IDs, how to compare two thread IDs and how to create a thread. In this article we will mainly focus on how a thread is terminated. Linux Threads Series: part 1, part 2, part 3 (this article). C Thread [...]

{ 18 comments }

15 Practical Linux cURL Command Examples (cURL Download Examples)

cURL is a software package which consists of command line tool and a library for transferring data using URL syntax. cURL supports various protocols like, DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. This article provides 15 practical cURL usage examples. [...]

{ 34 comments }

Introduction to Linux IP Routing Fundamentals (Part 1)

Probably you know how to check the existing routes (or even add/modify routes) on Linux using route or netstat command. You migh’ve done that without understanding much about how IP routing works. This article will help you understand the principles behind the IP routing and how it works. This is the 1st part in the [...]

{ 11 comments }

In the part I of the Linux Threads series, we discussed various aspects related to threads in Linux. In this article we will focus on how a thread is created and identified. We will also present a working C program example that will explain how to do basic threaded programming. Linux Threads Series: part 1, [...]

{ 18 comments }