Practical solutions

Linux Howtos How-To Guides

Solve the problem. Keep building. Collection of Linux how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Pretty Print JSON in a Shell ScriptThis article is an overview behind printing JSON in a human-readable format. How to Convert String to Integer in BashThis article presents multiple methods to convert a string into an integer using Bash. How to Pass an Array to a Function in BashThis is a compact programming tutorial about passing arrays as arguments to functions in a Bash script. How to Split String Into Variables in BashThis is a comprehensive description to split a string into variables in a Bash script. How to Print File After Skipping First X Lines in BashA read on how to print a file after skipping the first few lines in Bash. How to Get the Primary IP Address in LinuxThis tutorial will discuss getting the primary IP address in the Linux operating system using a Bash script. How to Run Mkdir Only When the Directory Does Not ExistThis article provides an overview of creating a directory only when it does not exist. How to Run Regular Expressions Inside a Case Statement in BashLogic behind running regex in a case structure in Bash. How to Get the File Creation Date/Time in BashThis article explains the process of getting file creation date or time in Bash. How to Remove Newline From String in BashThis tutorial demonstrates how to remove newline from a string in Bash. How to Loop Through Directories Recursively in BashThis tutorial demonstrates how to loop through directories recursively in Bash. How to Change the User in BashThis tutorial demonstrates how to change the user in Bash. How to Bash md5sum CommandThis tutorial demonstrates how to use md5sum command in Bash. How to Return an Array in BashThis article explains how to return an array in the Bash programming language. How to Remove First Character From String in BashThis article shows readers how to use the Bash programming language to remove a string's first character. How to Remove Duplicate Lines in BashThis is an article on how to eliminate duplicate lines from a file in Bash. How to Get Yesterday's Date in LinuxA brief guide on how to obtain the date of the previous day in a Linux system. How to Create a Progress Bar in BashThis is a guide on creating a progress bar in Bash to display the progress of a running command or process. How to Count Unique Lines in a File in LinuxThis is a guide on how to count the number of unique lines in a file using the sort, uniq and awk commands in Linux.. How to Count Files in Directory in BashThis article teaches readers how to count the files in a specific directory using the Bash command line. Nested for Loop in BashThis article is a comprehensive guide on nested for loop in Bash. The if not Condition in BashThis tutorial demonstrates the if not true condition in Bash. Difference Between Single and Double Square Brackets in BashThis tutorial explains what single square brackets and double square brackets are in Bash and their differences. Difference Between Bash Profile and BashrcThis tutorial explains the difference between the ~./bash_profile and ~/.bashrc file in Bash.