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
What are Named Pipes or FIFO in Linux/Unix systems?
Named Pipes (also called FIFO - First-In-First-Out) are a mechanism for inter-process communication (IPC) in Linux/Unix systems that allows unrelated processes to communicate with each other. Unlike anonymous pipes, which work only between parent and child processes, named pipes create a special file on the filesystem that can be accessed by any process with appropriate permissions. Named pipes support bidirectional communication, meaning data can flow in both directions through a single pipe, making them more versatile than regular pipes for complex communication scenarios. Creating Named Pipes There are two primary ways to create named pipes in Linux/Unix ...
Read MoreAccessing Clipboard Contents Across Multiple Instances of Vim from Terminal
If you're a fan of Vim text editor, you know how powerful it can be. But sometimes, you may want to access clipboard contents across multiple instances of Vim. This can be a bit tricky to do, but it's not impossible. In this article, we'll explore how to do just that, using terminal. What is Clipboard? Before we dive into how to access clipboard contents across multiple instances of Vim, let's define what we mean by "clipboard." The clipboard is a temporary storage area that allows you to copy and paste text between different applications or documents. It's ...
Read MoreBMC Server Management via API
BMC Server Management refers to server administration and monitoring capabilities provided through Baseboard Management Controller (BMC) interfaces. BMC is a specialized microcontroller embedded on server motherboards that enables out-of-band management, allowing administrators to monitor, control, and maintain servers remotely, even when the main operating system is offline or unresponsive. What is BMC Server Management? BMC server management provides hardware-level access to servers through a dedicated management network interface. This system allows administrators to perform critical operations such as power cycling, hardware monitoring, console redirection, and firmware updates without requiring the main server OS to be operational. Modern BMC ...
Read MoreLRU Cache implementation using Double Linked Lists
LRU (Least Recently Used) Cache is a caching algorithm that evicts the least recently accessed item when the cache reaches its capacity. It maintains items in order of their usage, with the most recently used at the front and the least recently used at the back. A doubly linked list combined with a hash map provides an efficient implementation with O(1) time complexity for both get and put operations. How LRU Cache Works The LRU cache maintains two key data structures: Doubly Linked List − Stores cache items in order of usage, with head as most ...
Read MoreRemote File Synchronization in Linux
Remote Synchronization (rsync) is a powerful command-line utility in Linux that efficiently synchronizes files and directories between two locations, whether locally on the same machine or remotely between different systems. It is widely used by system administrators for copying, syncing, backup, and mirroring data. The rsync command operates by designating one machine as the source and another as the destination. What makes rsync particularly efficient is its delta transfer algorithm, which compares files and transfers only the differences between source and destination after the initial full transfer. Features Delta Transfer Algorithm − Only transfers file differences, ...
Read Morecloc – Count Lines of Code in Many Programming Languages
cloc (Count Lines of Code) is a free, open-source command-line tool that counts blank lines, comment lines, and physical lines of source code in many programming languages. It supports over 200 programming languages and can analyze individual files, directories, or compressed archives, making it an essential tool for developers and project managers to measure codebase complexity. The tool is cross-platform, available for Windows, Linux, and macOS, and can be easily integrated into development workflows for automated code metrics collection. Installation Installing cloc varies by operating system. On Linux distributions, use your package manager − Ubuntu/Debian ...
Read MoreHow to get Linux console window width in Python?
In order to get the width and height of the Linux console in Python, there are different modules available that we can make use of. Two of them are the os module and the subprocess module. In the case of the os module, we make use of the popen() method that is used to open a pipe to and from command which will help in retrieving the width and height of the Linux window. Using os.popen() Method Consider the code for the same shown below − import os rowSize, columnSize = os.popen('stty size', 'r').read().split() ...
Read MoreInit process on UNIX and Linux systems
The Init process is the parent of all processes in UNIX and Linux systems, executed by the kernel during system boot. Its primary role is to create processes from configuration stored in /etc/inittab. Init spawns getty processes on terminal lines for user logins and controls all autonomous system processes required for proper operation. After reading /etc/inittab, init determines how the system should be configured for each runlevel and sets the default runlevel. Init then starts all background processes after establishing the system's operational state. Process Hierarchy Process Tree Structure ...
Read MoreFinding the PID of the Process Using a Specific Port
In Linux systems, every running process is assigned a unique Process Identification Number (PID) that distinguishes it from other active processes. Similarly, network connections are associated with specific port numbers that identify communication endpoints. System administrators often need to identify which process is using a particular port for network troubleshooting, security auditing, or resource management purposes. This article explores various command-line tools and techniques to find the PID of processes utilizing specific ports in Linux systems. Prerequisites To view detailed process information including PIDs and port usage, you typically need root privileges. Switch to root user using: ...
Read MoreELK Stack Tutorial: Get Started with Elasticsearch, Logstash, Kibana, & Beats
The ELK Stack is a powerful collection of open-source tools for searching, analyzing, and visualizing log data in real time. Originally consisting of Elasticsearch, Logstash, and Kibana, the stack has evolved to include Beats, forming what's now called the Elastic Stack. This comprehensive solution enables organizations to centralize logging, monitor systems, and gain insights from massive datasets across healthcare, finance, IT, and other industries. Components of ELK Stack ELK Stack Architecture Beats (Data Shippers) Logstash (Processing) ...
Read More