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
Best Open Source Text Editors (GUI + CLI) in 2023
Text editors are an essential tool for developers, system administrators, and anyone working with code or configuration files. They enable users to write, edit, and manipulate text with efficiency and precision. This article explores the best open source text editors available in 2023, covering both graphical and command-line options. Open source text editors are freely available software programs that can be modified and customized to fit specific needs. They offer significant advantages including cost savings, flexibility, community support, and the ability to inspect and modify source code for enhanced security and functionality. Graphical User Interface (GUI) Text Editors ...
Read MoreHow to Fix Cannot find a valid baseurl for repo in CentOS?
CentOS is a popular Linux distribution widely used in organizations, web hosts, data centers, and enterprise-level companies. Known for its stability, security, and reliability, CentOS is free and open-source software. However, users may encounter the error message "Cannot find a valid baseurl for repo" when trying to install or update packages using the yum package manager. Understanding the Error Message This error occurs when the YUM package manager cannot connect to repository servers to retrieve necessary packages. A repository (repo) is a centralized storage location containing pre-compiled software packages tested for compatibility with your operating system. ...
Read MoreDifference between Turn Around Time (TAT) and Waiting Time (WT) in CPU Scheduling
CPU scheduling is a crucial aspect of operating systems that determines the order in which processes are executed on the central processing unit (CPU). Two important metrics used to evaluate the efficiency of CPU scheduling algorithms are Turn Around Time (TAT) and Waiting Time (WT). Understanding the difference between these two metrics provides insights into the performance and responsiveness of a CPU scheduling algorithm. What is Turn Around Time (TAT)? Turn Around Time (TAT) is the total time taken for a process to complete its execution from the moment it enters the system until it finishes. It includes ...
Read MoreHow to Use IP Command in Linux with Examples?
The IP command is a powerful tool for network configuration in Linux. It is used to show, manipulate routing, devices, policy routing, and tunnels. The IP command is part of the iproute2 package, which is installed by default in most Linux distributions. It replaces legacy tools like ifconfig and route, providing a unified interface for network management. Displaying IP Addresses To display the IP address of all network interfaces, use the following command − Example ip addr show Output 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen ...
Read MoreHow to use the sub process module with pipes on Linux?
In Python, the subprocess module allows us to work with additional processes and provides a high-level interface for executing system commands. While other modules like os.spawn(), os.system(), and os.popen() offer similar functionality, subprocess is recommended because it provides better control, security, and flexibility. When working with subprocess on Linux, pipes allow us to chain commands together, passing the output of one command as input to another. This is essential for building secure command pipelines without shell injection vulnerabilities. Basic Subprocess Example Let's start with a simple example that demonstrates basic subprocess usage: import subprocess ...
Read MoreWhat is PID manager in Linux?
In Linux, when an executable stored on disk is called a program, and a program loaded into memory and running is called a process. A process is given a unique number called process ID (PID) that identifies that process to the system when it is started. If we ever need to kill a process, for example, we can refer to it by its PID. As each PID is unique, there is no ambiguity or risk of accidentally killing the wrong process (unless you enter the wrong PID). The PID manager is a kernel subsystem responsible for allocating, managing, and ...
Read MoreImplement a Counter in Bash Script on Linux
Counters in Bash scripts are variables used to track the number of times specific events or tasks occur. They are essential for loop control, progress tracking, and performing actions after reaching certain thresholds. Understanding how to implement and use counters effectively can significantly improve your Bash scripting capabilities. What is a Counter Variable in Bash Script? A counter is a variable that stores and increments numerical values to count occurrences of events or iterations. It is commonly used in loops to track the number of iterations performed, count files in directories, or monitor task completion progress. Why ...
Read MoreLocale Environment Variables in Linux
Locale environment variables in Linux control how the operating system displays and handles language-specific information such as dates, numbers, currency, and text encoding. These variables ensure that users can interact with the system using their preferred language and regional conventions. What is a Locale? A locale is a set of parameters that define a user's language, country, currency, and cultural conventions. It specifies how dates, times, numbers, and character sets are formatted. For example, the US locale uses the dollar ($) as currency and mm/dd/yyyy date format, while the UK locale uses the pound (£) and dd/mm/yyyy format. ...
Read More3 Ways to Create a Network Bridge in RHEL CentOS 8
A network bridge is a software component that allows multiple networks to be connected together, creating a larger network that can be used to share resources and communicate between devices. In Red Hat Enterprise Linux (RHEL) and CentOS 8, network bridging can be achieved in several ways, depending on your needs and preferences. In this article, we will explore three primary methods to create a network bridge in RHEL/CentOS 8, using examples and step-by-step instructions. Whether you need to connect virtual machines or physical devices, these methods will help you set up a bridge that meets your requirements. ...
Read MoreBd – Quickly Go Back to a Parent Directory Instead of Typing
Have you ever found yourself stuck in a deep nested directory structure while using the command line interface and wished there was a faster way to navigate back to a parent directory instead of repeatedly typing cd ../../..? The bd command is a simple solution that can save you time and reduce chances of making errors in your navigation commands. What is Bd? The bd command stands for "back directory" and is a command-line tool that allows you to quickly navigate back to any parent directory by specifying its name. Unlike traditional cd .. commands that move you ...
Read More