Linux
Browse all articles, tutorials, and guides about Linux
About Linux
Dig into the Linux ecosystem, from command-line basics to system administration. Learn to manage servers, troubleshoot issues, and optimize performance.
Posts
How to Create Symbolic Links in Linux
Learn how to create and manage symbolic links (symlinks) in Linux to create shortcuts, organize files, and maintain flexible file system structures.
How to Kill a Process Running on a Particular Port in Linux
Learn multiple methods to identify and terminate processes that are using specific ports on Linux systems using netstat, lsof, fuser, and ss commands.
How to Prompt for Yes/No/Cancel Input in Linux Shell Scripts
Learn how to create interactive shell scripts that prompt users for confirmation with Yes/No/Cancel options using various techniques and best practices.
How to Check Which Process is Using a Specific Port from Command Line
Learn how to identify which processes are listening on specific ports using netstat, lsof, and ss commands across different operating systems.
How to Find Files Containing Specific Text on Linux
Need to locate files with specific content? Learn how to use grep, find, and other Linux tools to search through files and directories efficiently.
How to Create a Copy of a Directory in Unix/Linux
Learn various methods to copy directories in Linux and Unix systems using cp, rsync, and tar commands with practical examples and best practices.
How to Loop Through File Content in Bash
Learn different methods to iterate through file content line by line in Bash scripts, including handling special characters and processing large files efficiently.
How to Change File and Folder Permissions Recursively in Linux
Learn how to use chmod command to change permissions for directories and all their subdirectories and files efficiently and safely.
How to Change Echo Text Colors in Linux Terminal
Learn how to colorize your terminal output using ANSI escape codes with the echo command to make scripts more readable and visually appealing.
How to Count Number of Lines in Files Using Linux Terminal
Learn different methods to count lines in text files like CSV, TXT, and other non-binary files using wc, awk, sed, and other Linux command-line tools.
How to Close Specific Ports on Linux Systems
Learn how to close and block specific ports on Linux using iptables, ufw, firewalld, and by stopping services. Secure your system by controlling port access.
How to Use Grep to Show Only Filenames on Linux
Learn how to use grep options to display only the names of files containing matches, making it easier to identify relevant files in large searches.
How to Exclude Directories When Using Find in Linux
Learn how to exclude specific directories from find command searches to improve performance and focus on relevant results when searching through file systems.
How to Loop Through an Array of Strings in Bash
Learn various methods to iterate through string arrays in Bash, including indexed arrays, associative arrays, and advanced looping techniques with practical examples.
How to Pipe to and from Clipboard in Bash Scripts
Learn how to integrate clipboard functionality into your Bash scripts using xclip, xsel, pbcopy, and pbpaste for seamless data transfer between terminal and GUI applications.
How to Recursively Grep All Directories and Subdirectories
Learn how to use grep with recursive options to search through entire directory trees efficiently, including advanced filtering and performance optimization techniques.
Defining Variables with and without Export in Linux Shell
Understand the difference between regular shell variables and exported environment variables, when to use export, and how variable scope affects scripts and processes.
How to Find Files Using Wildcards in Linux
Learn how to use wildcard patterns with find command to recursively search for files in directories and subdirectories based on name patterns.
How to Profile C++ Code Performance on Linux
Learn how to use profiling tools like gprof, Valgrind, and perf to analyze C++ application performance and identify bottlenecks on Linux systems.
How to Delete Exported Environment Variables in Linux
Learn different methods to remove environment variables from your current shell session and prevent them from persisting in future sessions.
How to Fix Echo Newline in Bash When It Prints Literal \n
Learn why echo sometimes prints literal \n instead of newlines and discover multiple solutions to properly output newline characters in Bash scripts.
How to Parse Command Line Arguments in Bash
Learn various methods to parse command line arguments in Bash scripts, including positional parameters, getopts, and advanced argument handling techniques.
How to Change the Output Color of Echo in Linux
Learn how to add colors to your echo output in Linux and Bash scripts using ANSI escape codes, tput commands, and color variables for better terminal display.
Redirecting Output to Both a File and stdout in Bash
Learn how to capture command output in a file while still seeing it live in your terminal
How to Check if a Directory Exists in Bash Shell Scripts
Learn multiple methods to check directory existence in Bash scripts, including proper error handling, permission checks, and practical use cases for reliable automation.