15 September

Use of comm and diff commands in Linux

Linux offers two commands to compare the text written within files: comm and diff. In this article we focus on the use of comm and diff commands in Linux and understand the difference in the output by each. comm command in Linux The comm command is used to compare two sorted files. The output contains […]

02 September

How to use the sort command in Linux?

We use the sort command in Linux to sort the content of a file. The sorted output is displayed on the screen. Syntax of sort command $sort [OPTION]… [FILE]… Example Options used with sort command -f: ignore case                 This option sorts the uppercase alphabets higher in order. The figure below shows the use of […]

07 June

Logical Volume Management in Linux

Logical Volume Management (LVM) in Linux is a method to easily manage disk space. Suppose as an admin you have three disks: 60Gb, 50Gb and 40Gb and you want to allocate 80Gb and 70Gb of space to two users U1 and U2 respectively. Now, there is no single unit of either size available. This is […]

26 May

Managing Swap Space in Linux

Swap space is an area in the secondary storage device which is used to supplement system RAM by holding the inactive pages of memory. The combination of system RAM and swap space is referred to as Virtual memory. When the available RAM usage exceeds a specified limit then the kernel will write idle pages belonging […]

18 April

How to create disk partitions in Linux?

Partitioning a disk allows you to create separate sections within the disk inorder to manage your data more efficiently. For example, in Windows you have C, D or E drives. There are various uses of partitioning a disk like:a) Allows to boot different OS from same diskb) Allocate separate partition to different usersc) Creating separate […]

14 April

Program for IPC using Message Queues

Program for IPC using Message queues are almost similar to named pipes with the exception that they do not require the opening and closing of pipes. But, they face one similar problem like named pipes; blocking on full pipes. Message queues send blocks of data from one process to another. Each block of data is […]

09 April

Program on Dining Philosopher Problem

In this post we are going to understand the C program implementing the solution to the Dining Philosopher Problem. The Dining Philosopher Problem states that there are five philosophers which do two thinks: think and eat. They share a table having a chair for each one of them. In the center of the table there […]

25 March

Real Time Scheduling Algorithms

Real time scheduling is of two types: Soft Real-Time scheduling which does not guarantee when when a critical real-time process will be scheduled; Hard Real-Time scheduling in which the process must be scheduled before the deadline. In this post we will cover two real time scheduling algorithms: rate monotonic scheduling and earliest deadline first. Points […]

09 February

Access Control List (ACL)

The standard Linux permissions are suitable for most situations but they have their own limitations. The standard permissions limit access to file owner, group owner and others. But, what-if we want to grant specific permission to another named user, other than the user-owner or another named group other than the group-owner. Access Control List (ACL) […]