Linux Internals - Interview Preparation Materials

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has
been the industry’s standard dummy text ever since the 1500s, when an unknown printer took
a galley of type and scrambled…

HomeResourcesFull Stack Developer Roadmap 1Assignments and Sample Programs

Linux User Internals Programming
Exercises & Simple-Programs

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software

Chapter 1 : Single Linked List

Pre-requisites:

Knowledge about system calls, How to read and understand ‘man pages’.
Good knowledge about processes and IPC.
Working of pipe & dup system calls..

 

Objective:

To understand working of pipe between two process.

 

Requirements:

Create two child process and execute commands passed from command-line arguments
Each command is separated by a ‘|’ (pipe) character.
First child execute first command (with or without options) and pass o/p to next.
Second child executes second command (after ‘|’) will reads I/p from first cmd.
Parent will wait for both child process to finish .

 

Sample Execution:

 

Pre-requisites:

Knowledge about system calls, How to read and understand ‘man pages’.
Good knowledge about processes and IPC.
Working of pipe & dup system calls..

 

Objective:

To understand working of pipe between two process.

 

Requirements:

Create two child process and execute commands passed from command-line arguments
Each command is separated by a ‘|’ (pipe) character.
First child execute first command (with or without options) and pass o/p to next.
Second child executes second command (after ‘|’) will reads I/p from first cmd.
Parent will wait for both child process to finish .

 

Sample Execution:

 

Pre-requisites:

Knowledge about system calls, How to read and understand ‘man pages’.
Good knowledge about processes and IPC.
Working of pipe & dup system calls..

 

Objective:

To understand working of pipe between two process.

 

Requirements:

Create two child process and execute commands passed from command-line arguments
Each command is separated by a ‘|’ (pipe) character.
First child execute first command (with or without options) and pass o/p to next.
Second child executes second command (after ‘|’) will reads I/p from first cmd.
Parent will wait for both child process to finish .

 

Sample Execution:

 

Chapter 2 : Single Linked List

Pre-requisites:

Knowledge about system calls, How to read and understand ‘man pages’.
Good knowledge about processes and IPC.
Working of pipe & dup system calls..

 

Objective:

To understand working of pipe between two process.

 

Requirements:

Create two child process and execute commands passed from command-line arguments
Each command is separated by a ‘|’ (pipe) character.
First child execute first command (with or without options) and pass o/p to next.
Second child executes second command (after ‘|’) will reads I/p from first cmd.
Parent will wait for both child process to finish .

 

Sample Execution:

 

Pre-requisites:

Knowledge about system calls, How to read and understand ‘man pages’.
Good knowledge about processes and IPC.
Working of pipe & dup system calls..

 

Objective:

To understand working of pipe between two process.

 

Requirements:

Create two child process and execute commands passed from command-line arguments
Each command is separated by a ‘|’ (pipe) character.
First child execute first command (with or without options) and pass o/p to next.
Second child executes second command (after ‘|’) will reads I/p from first cmd.
Parent will wait for both child process to finish .

 

Sample Execution:

 

Pre-requisites:

Knowledge about system calls, How to read and understand ‘man pages’.
Good knowledge about processes and IPC.
Working of pipe & dup system calls..

 

Objective:

To understand working of pipe between two process.

 

Requirements:

Create two child process and execute commands passed from command-line arguments
Each command is separated by a ‘|’ (pipe) character.
First child execute first command (with or without options) and pass o/p to next.
Second child executes second command (after ‘|’) will reads I/p from first cmd.
Parent will wait for both child process to finish .

 

Sample Execution: