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) […]

05 February

Scheduling recurring tasks using crontab command

As a user if you want to schedule certain activities which should repeat themselves on their own at some time in the future i.e., you want to schedule recurring tasks then use the crontab command. In this post we will learn scheduling recurring tasks using crontab command There are different ways to use the crontab […]

24 January

How to Recover a Lost Root Password in Linux

At times we forget the root user password that we have set on our Linux machine. In this post, we will learn how to recover a lost root password in Linux. The procedure is most suitable of RedHat, Fedora and CentOS operating systems. Follow the below mentioned procedure: Step 1: Reboot the machine and stop […]

20 January

Loops(for while until) in Shell Scripting

Loops(for, while, until) in shell scripting are used to perform an operation multiple time. A loop is a portion of code that repeats (iterates) a set of commands till the loop control condition is true. For Loop in Shell Scripting The for loop in shell script has two syntax: Syntax 1: for variable in values […]

27 November

How to Access Pen-drive in Windows Sub-System for Linux

At times, we require to transfer contents to or from the pendrive from WSL(Windows Subsystem for Linux). So, in this tutorial we will learn How to Access Pen-drive in Windows Sub-System for Linux To access Pen-drive in Windows Sub-System for Linux, we have to mount the pendrive. So, follow the below mentioned steps: Step1: Plugin […]

13 November

Using if-else in Shell Scripting

In the previous post, we learned how to use variables in shell script. Next, we are going to learn about using if-else in shell scripting. The if-else construct is used whenever we want to evaluate a condition i.e., whether some condition is true or false. Syntax if [ condition ] then   statement 1   […]