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
Hot Standby Mode
The hot standby mode is a fail-safe mechanism in which a hot standby component is part of an active system. If any component of the system fails, the hot standby component immediately takes its place. In general, a hot standby can refer to any device, system, or component that overtakes operation from a failed device and reduces the startup delay that would otherwise be significant. Hot Standby Mode Operation Active System Processing Requests ...
Read MoreSoft-Delete Files from the Terminal on Linux
When working with files in the terminal on Linux, there may be times when you want to delete a file but also keep a copy of it just in case. This is where the concept of "soft delete" comes into play. A soft delete allows you to move a file to a designated recycle bin or trash, instead of permanently deleting it. That way, if you accidentally delete a file, you can easily get it back. In this article, we will explore how to delete files from the terminal on Linux using the trash-cli utility and its trash-put command. ...
Read MoreWorking with Docker Swarm
Docker Swarm is a container orchestration tool that enables you to manage a cluster of Docker nodes as a single virtual system. It provides native clustering functionality for Docker containers, allowing you to deploy and scale applications across multiple machines while maintaining high availability and load balancing. In a Docker Swarm cluster, there are two types of nodes: manager nodes that control the cluster and make orchestration decisions, and worker nodes that run the actual containers. The swarm manager handles scheduling, load balancing, and service discovery automatically. Docker Swarm operates in two service modes: Replicated Service mode where ...
Read MoreHow to Install and Configure Cluster with Two Nodes in Linux?
In today's era, the use of clusters has become increasingly important in the field of computing. A cluster is a group of interconnected computers that work together as a single entity to provide high-performance computing, data analysis, and fault tolerance. In this tutorial, we will demonstrate how to install and configure a two-node cluster in Linux using Pacemaker and Corosync. A cluster consists of two or more nodes that work together as a single system. Each node is a separate computer with its own resources (CPU, memory, storage) connected through a network for communication and resource sharing. Pacemaker acts ...
Read MoreHow to list all users who are currently logged into the Linux system?
The who command is a fundamental Linux utility used to display information about users who are currently logged into the system. It shows details such as login names, terminal lines, login times, and remote hostnames. The who command is closely related to the w command, which displays additional information about user processes. Syntax The general syntax of the who command is − who [OPTION]... [ FILE | ARGUMENT1 ARGUMENT2 ] Common Options Option Description -a, --all Same as -b -d --login -p -r -t -T -u ...
Read MoreHow to deal with persistent storage (e.g. databases) in Docker?
Docker volumes provide a robust solution for persistent storage in Docker containers. Unlike bind mounts, which depend heavily on the host's directory structure, volumes are completely managed by Docker and offer better portability and control. When using volumes, Docker creates a new directory within its storage directory on the host machine. This approach is superior to persisting data on the container's writable layer because volumes don't increase container size and their contents exist independently of the container's lifecycle. Advantages of Docker Volumes Portability − Easier to migrate or back up across different environments Management − Simple ...
Read MoreProgram execution in CPU
One may be amazed how the CPU is programmed. A special register is contained in CPU − the instruction register − whose bit pattern determines what the CPU will do. Once that action has been completed, the bit pattern in the instruction register can be changed, and the CPU will perform the operation specified by this next bit pattern. Most of the modern CPUs use an instruction queue. Some instructions are waiting in the queue, ready to be executed. Different electronic circuitry keeps the instruction queue full while the control unit is executing the instructions. But this is simply ...
Read MoreDocker host network vs bridge network
Docker provides two primary single-host networking modes: host and bridge networks. Single-host networks operate locally on each individual Docker host, providing different levels of network isolation and connectivity options. In host networking, Docker containers share the host's network stack directly, eliminating network isolation between container and host. With bridge networking, containers run in an isolated network namespace and require explicit port mapping to communicate with external systems. Host Network Mode Host networking allows containers to use the host's network interface directly. This mode provides maximum performance but sacrifices network isolation. Creating a Container with Host Network ...
Read More5 Things I Dislike and Love About GNU/Linux
GNU/Linux is an open-source operating system that has been gaining popularity over the years. It is known for its reliability, security, and flexibility. While every user's experience differs, there are common aspects that people tend to appreciate or find challenging about GNU/Linux. This article examines five key dislikes and loves that users commonly express about GNU/Linux. Things Users Dislike About GNU/Linux Software Compatibility Limitations One major challenge with GNU/Linux is that some proprietary software may not be compatible with the operating system. This creates obstacles for users who depend on specific programs unavailable on GNU/Linux platforms. ...
Read MoreHow to display the current working directory in the Linux system?
To print the current working directory, we use the pwd command in the Linux system. pwd (print working directory) − The pwd command is used to display the name of the current working directory in the Linux system using the terminal. This is a shell builtin command that is available in most Unix shells such as Bourne shell, ash, bash, ksh, and zsh. Syntax The general syntax of the pwd command is as follows − pwd [-LP] A brief description of options available in the pwd command. Option Description ...
Read More