context-switching Context switching in Linux refers to the process of storing and restoring the execution context or state of a CPU so that it can resume execution of a different process. control-groups…
System Design – A Distributed High-throughput Counter
Designing a high-throughput, scalable counter system with a focus on write-heavy operations involves several key components and considerations. Now, the system needs to handle a large volume of write operations (1M writes/sec)…
System Design for Task Scheduling with Dependencies
Overview Designing a task scheduler involves handling tasks with varying frequencies and dependencies. The system must ensure tasks are executed on schedule, dependencies are respected, and long-running tasks are managed effectively. High-Level…
Linux Commands Examples
nslookup nslookup is a cross-platform command-line tool for querying the Domain Name System (DNS). Purpose Command Basic DNS Lookup nslookup example.com Find Mail Servers for a Domain nslookup -type=mx example.com Query Specific…
How SSH works
SSH (Secure Shell) is a protocol used for securely accessing one computer from another over an insecure network. It provides strong authentication and encrypted data communications between two computers connecting over an…
How does mount works
Mount The mount command in Unix and Unix-like operating systems is used to attach a filesystem (from a disk, partition, or storage device) to the file system hierarchy at a specific point,…
How traceroute works
traceroute is a network diagnostic tool used to track the path that an IP packet takes to reach a destination. It provides information about each point (or “hop”) along the route, including…
HTTP GET/POST/POST
GET, POST, and PUT are HTTP methods used in the context of web requests. Each method indicates a different type of action and is chosen based on the operation being performed. Here…
Hard link and Soft link
In Unix-like operating systems, hard links and soft links (also known as symbolic links) are two types of links that can be created to reference files. They serve different purposes and have…
Zombie Process
In Linux and other Unix-like operating systems, a “zombie” process, or defunct process, is a process that has completed execution but still has an entry in the process table. This occurs when…