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.

Guides

Posts

Linux
2024-12-20|6 min read

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.

Linux
2024-12-18|6 min read

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.

Linux
2024-12-18|7 min read

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.

Linux
2024-12-15|5 min read

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.

Linux
2024-12-15|7 min read

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.

Linux
2024-12-12|7 min read

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.

Linux
2024-12-12|7 min read

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.

Linux
2024-12-10|6 min read

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.

Linux
2024-12-08|5 min read

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.

Linux
2024-12-08|6 min read

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.

Linux
2024-12-05|8 min read

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.

Linux
2024-12-05|5 min read

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.

Linux
2024-12-03|6 min read

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.

Linux
2024-12-03|8 min read

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.

Linux
2024-12-02|7 min read

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.

Linux
2024-11-30|6 min read

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.

Linux
2024-11-28|8 min read

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.

Linux
2024-11-28|6 min read

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.

Linux
2024-11-25|8 min read

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.

Linux
2024-11-22|5 min read

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.

Linux
2024-09-12|7 min read

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.

Linux
2024-09-05|9 min read

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.

Linux
2024-08-14|8 min read

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.

Linux
2024-07-29|6 min

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

Linux
2024-05-20|6 min read

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.