Articles by Deepak Prasad
Kubernetes SecurityContext Explained with Practical YAML Examples
Learn Kubernetes SecurityContext with practical YAML examples for runAsUser, fsGroup, Linux capabilities, privileged containers, readOnlyRootFilesystem, and Kubernetes security hardening best practices.
Kubernetes Sidecar Pattern Explained with Real Examples (Multi-Container Pod YAML)
Learn how Kubernetes sidecar containers work with practical multi-container Pod examples. Understand shared volumes, shared network namespaces, logging sidecars, YAML configuration, and common real-world sidecar use …
Bash String to Array (Split by Space, Delimiter, Newline + mapfile Examples)
Learn how to convert string to array in Bash using read -ra, IFS delimiters, and mapfile. Includes examples for splitting by space, comma, newline, multiple delimiters, and handling edge cases safely.
Parcel Management System Architecture (APIs, Database, Event-Driven Design)
Learn how to design a scalable parcel management system using APIs, database schema, event-driven architecture, queues, and cloud-native technologies like Kafka and Kubernetes.
Golang Read File (Line by Line, Entire File, Large Files Explained)
Learn how to read files in Golang using os.ReadFile, bufio.Scanner, and bufio.Reader. This guide covers reading entire files, line-by-line processing, handling large files efficiently, and common errors with practical …
Read File in Golang with Timeout (Handle Large Files, Scanner Errors & Real Examples)
Learn how to read files in Golang with timeout handling using select, time.After, and context.WithTimeout. This guide covers reading files line by line, in chunks, handling large files, fixing bufio.Scanner errors, and …
What Developers Should Know About the Hardware Their Code Runs On
Learn why understanding hardware fundamentals like CPU, memory, storage, and printed circuit boards is essential for developers to build high-performance, scalable, and reliable applications in modern computing …
Pytest Logging Explained (Set Log Level, Show Logs, caplog, Fix Issues)
Learn how to configure and use pytest logging effectively. This guide covers setting log levels, enabling live logs, using log_cli and caplog, fixing logs not showing, logging to file, and advanced configurations. …
Python Set add() Explained (Add Elements, Multiple Items, Common Mistakes)
Learn how to add elements to a set in Python using add() and update() methods. This guide covers adding single and multiple elements, handling duplicates, common mistakes like append() and insert(), and real-world use …
Python Compare Strings (==, Ignore Case, Substring, Examples)
Learn how to compare strings in Python with practical examples. This guide covers string equality, case-insensitive comparison, substring matching, lexicographic comparison, character-by-character comparison, and …
How to Rename File or Directory in Git (git mv Explained)
Learn how to rename a file or directory in Git using git mv and other methods. This guide covers renaming files, folders, and directories with practical examples, preserving history, handling case sensitivity issues, and …
Git Restore Explained with Examples (Files, Staged, Undo Changes)
Learn how to use git restore command with practical examples. Understand how to restore files, undo changes, unstage files using git restore --staged, and compare git restore vs reset vs checkout. Includes syntax, use …
Git Reset Explained (Soft vs Mixed vs Hard) with Examples
Learn Git reset with practical examples including soft, mixed, and hard reset. Understand the differences, use cases, and how git reset affects the working directory, staging area, and commit history. Fix common errors …
Pacman Command in Arch Linux: Install, Update, Remove & Examples (2026 Guide)
Learn how to use pacman command in Arch Linux with practical examples and cheat sheet. Install, update, remove packages, and understand pacman usage for efficient package management.
Paste Command in Linux: Examples, Use Cases & Cheat Sheet (2026 Guide)
Learn how to use the paste command in Linux with practical examples and real-world use cases. Understand how to merge files, use delimiters, and compare paste vs copy-paste in terminal with a quick cheat sheet.
ip Command in Linux: Add IP, Configure Routes & Network Interfaces (Examples)
Learn how to use the ip command in Linux with practical examples. Add IP addresses, configure routes, manage interfaces, and troubleshoot network issues using ip addr, ip link, and ip route.
How to Use lbzip2 on Linux
Learn how to use lbzip2 command in Linux with practical examples. Install lbzip2 on Ubuntu, compress/decompress files, use multithreading, and fix common errors like tar lbzip2 not found.
How to Check CPU Usage in Linux (Top, htop, vmstat & More)
Learn how to check CPU usage in Linux using top, htop, vmstat, mpstat, sar, and ps commands. Monitor CPU utilization, load, and processes in real-time with practical examples.
wget Command in Linux (Syntax, Examples, Cheat Sheet + Interview Questions)
Master the wget command in Linux with syntax, examples, options, and a quick cheat sheet. Includes real-world use cases and wget interview questions for quick revision.
How to Clear System Storage on Mac Using Terminal (Advanced Guide)
Learn how to clear system storage on Mac using terminal commands. This advanced guide covers disk usage analysis, cache cleanup, log removal, and troubleshooting system data taking excessive space on macOS.
[SOLVED] Unable to Delete Docker Image (Image Has Dependent Child Images)
Learn how to fix the Docker error "unable to delete image (cannot be forced) - image has dependent child images". This guide explains why the error occurs, how Docker image dependencies work, and step-by-step solutions …
Docker Build Without Cache (docker build --no-cache Explained)
Learn how to build Docker images without using cache using the docker build --no-cache option. This guide explains when to disable cache, how Docker layer caching works, and provides practical examples for DevOps …
100+ Linux Commands Cheat Sheet (With Practical Examples)
A complete Linux commands cheat sheet with 100+ essential commands and practical examples. Learn file management, system monitoring, networking, permissions, and DevOps-related Linux commands used by administrators, …
How to Find and Remove Unused Docker Containers (5 Safe Methods + Best Practices)
Learn how to find and remove unused Docker containers using safe and practical methods. Compare docker rm, docker container prune, filters, and automation techniques with real-world examples for production and …
Run Multiple Commands in Docker Compose (4 Methods + Examples & Best Practices)
Learn how to run multiple commands in Docker Compose using 4 practical methods including &&, multiline scripts, shell scripts, and Supervisor. Understand execution order, failure handling, and best practices with …
Stop All Docker Containers (4 Easy Methods + Examples & Best Practices)
Learn how to stop all Docker containers using multiple methods including docker stop, docker kill, and filtered commands. Understand differences, safe practices, and real-world use cases with examples.
Docker .dockerignore Explained (Best Practices + Examples to Optimize Builds)
Learn how to use .dockerignore to optimize Docker builds by excluding unnecessary files. Improve build speed, reduce image size, and follow best practices with real-world examples.
Rename Docker Container (3 Easy Methods with Examples & Best Practices)
Learn how to rename a Docker container using simple commands with practical examples. Understand how docker rename works, when to use it, and best practices for managing container names.
Docker Logout Explained (How to Logout from Registry + Best Practices)
Learn how to logout from Docker registry using the docker logout command. Understand how credentials are stored, when to logout, and best practices for securing Docker authentication.
Git Push Explained: Syntax, Examples, Errors & Best Practices
Learn how to use git push with practical examples. Understand git push syntax, push branches, tags, and fixes for common errors like rejected push and force push safely.

