Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Remove Blank Lines From a File in Linux
When working with files in Linux, it is common to encounter files that contain blank lines. These blank lines can make it difficult to read the file, especially when dealing with large files. In this article, we will explore different methods to remove blank lines from a file in Linux using various command-line tools. Why Remove Blank Lines from a File? There are several reasons why you may want to remove blank lines from a file. First, it makes the file easier to read, especially when dealing with large files. Second, it can help reduce file size, which ...
Read MoreBakery Algorithm in Process Synchronization
It is a prerequisite to understand the terms "process synchronization", "critical section", and "inter-process communication" before we proceed to discuss the Bakery Algorithm in Process Synchronization. What is Process Synchronization? In a multiprocessing system, process synchronization is a method of coordinating execution of multiple processes so it is ensured that all processes access shared resources in a controlled and predictable manner. The primary goal of process synchronization is to avoid the problem of race conditions in the system. It also resolves many other issues related to synchronization in a concurrent system. Therefore, process synchronization ensures that multiple ...
Read More10 Lesser Known Effective Linux Commands
Linux is a powerful operating system widely used in software development, web hosting, and cloud computing. While most users know basic commands like ls, cd, and cp, Linux offers many lesser-known commands that can significantly boost productivity. These hidden gems can automate complex tasks, save time, and simplify system administration. Let's explore 10 effective but underutilized Linux commands. 1. 'rename' Command The rename command allows you to rename multiple files at once using Perl regular expressions. This is far more powerful than renaming files one by one. rename 's/oldname/newname/' files For example, to change ...
Read MoreDifferent Ways to Read File in Bash Script Using While Loop
Reading files is an essential aspect of shell scripting in the Bash environment. In Bash, reading files can be achieved using different techniques, and one of the most popular and versatile methods is using the while loop. The while loop in Bash is a powerful construct that allows us to iterate through a file line by line, making it easier to manipulate and process data. Understanding the While Loop in Bash The while loop in Bash follows a specific syntax − while [condition] do # code to execute done The loop ...
Read MoreLearn How to Install Adobe Flash Player On Ubuntu 16.4.
Adobe Flash Player is a browser plugin that enables web applications to deliver rich multimedia content, including audio/video playback and interactive experiences. It is essential for running SWF files — Adobe Flash file format for displaying animated vector graphics on the web. This article explains how to install Adobe Flash Player on Ubuntu 16.04. Prerequisites A machine installed with Ubuntu 16.04 A user with sudo privileges or root access Active internet connection for downloading packages Step 1: Install Ubuntu Restricted Extras Adobe Flash Player requires the ubuntu-restricted-extras package, which contains essential software not included ...
Read MoreGet the Contents of a Web Page in a Shell Variable on Linux
One of the most useful and powerful features of the Linux command line is the ability to manipulate text. This can be especially useful when working with web pages, as web page content can often be saved as plain text and then manipulated with command-line tools. In this article, we will explore how to store the content of a web page into a shell variable in Linux. What is a Shell Variable? A Shell variable is a value stored in memory that can be used by the shell (command-line interface) and other programs. Shell variables are usually defined ...
Read MoreBenefits of Hosted Desktop
A type of cloud computing service model that allows users to access a desktop environment virtually from anywhere with the help of an internet connection is referred to as a hosted desktop. The hosted desktop is also known as virtual desktop because the users can access the virtual desktop environment from any device like tablet or smartphone without having a physical computer. Hosted desktop is termed as Desktop as a Service (DaaS). Hosted Desktop Architecture User Device (Laptop, Tablet, Smartphone) Internet ...
Read MoreDifferent Ways to Use Column Command in Linux
If you're a Linux user, you're probably familiar with the command-line interface. It's a powerful tool for working with files, directories, and other aspects of your system. However, if you're working with large amounts of text data, it can be challenging to make sense of everything. That's where the column command comes in. This command allows you to format text into columns, specify delimiters, align columns, wrap text, and even sort columns of data. In this article, we'll explore the different ways to use the column command in Linux and how it can help you work more efficiently with text ...
Read MoreDifference Between Sporadic and Aperiodic Real-time Tasks
Real-time systems are critical in aerospace, automotive, medical, and industrial applications where tasks must meet strict timing requirements. Real-time tasks are classified based on their arrival patterns and timing characteristics. Two important types are sporadic tasks and aperiodic tasks, which both involve irregular arrival times but differ in predictability and scheduling requirements. Sporadic Real-time Tasks Sporadic real-time tasks occur at irregular intervals but have a minimum inter-arrival time — a guaranteed minimum time between consecutive task instances. They are triggered by external events and have specific deadlines that must be met. Sporadic Task ...
Read MoreHow to use diff Command in Linux
The diff command in Linux is a powerful command-line utility used to compare the contents of two files or directories line by line and display the differences between them. This tool is essential for developers, system administrators, and anyone working with text files to identify changes, track modifications, and analyze variations in code, configuration files, or documents. Basic File Comparison The most fundamental use of the diff command is comparing two files. The basic syntax is: diff file1 file2 Example Consider two files with slight differences: $ diff file1.txt file2.txt 2c2 ...
Read More