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 Delete Files and Directories in Linux TerminalWe can delete Files and Directories with rm, unlink, and rmdir commands using Linux Terminal How to Use while Loop in Bashwhile loop is one of the most widely used loop structures in almost every programming language. We can specify a condition for the while loop and the statements in the loop are executed as long as the condition is true. How to Install Plex Media Server on UbuntuWe can install the Plex Media Server from the Plex official repository. How to Use getopts in Bash ScriptThis shows the usage of getopts in bash scripts by parsing options with arguments and parsing options without arguments. How to Create Multi-Line String in BashThis tutorial demonstrates different ways to print multi-line string to a file in bash without extra space by the use of here-document, shell variable, printf, echo and echo with -e option. How to Extract Substring in BashThis tutorial demonstrates different ways to extract a substring in bash using the cut command, substring expansion and Internal Field Separator. How to Split String Into Array in BashThis tutorial explains splitting a string into an array in bash by using the read command, the tr command and using parameter expansion. How to Split String in BashThis tutorial demonstrates splitting a string on a delimeter in bash by using the tr command, the IFS, the read command, using parameter expansion, and using the cut command. How to Get File Name and Extension Using BashA simple bash script that gets file name and its extension separately. How to Get Script Directory in BashThis tutorial demonstrates getting the directory that a script is located in by using the $0 and dirname, BASH_SOURCE array, readlink command, and realpath command. How to Make a Bash AliasThis tutorial demonstrates the creation and deletion of alias in Bash. How to Convert Letter Case of Strings in BashThis tutorial demonstrates the conversion of letter case of strings in Bash. How to Pause Bash Shell Script for X SecondsLearn how to utilize read and sleep commands in Bash to pause a script How to Trim Whitespace in BashThis tutorial shows trimming white spaces in bash using the xargs command, the sed command and the awk command. How to Set Variable to Output of Command in BashThis tutorial demonstrates assigning the output of a command to a variable in bash using command substitution. How to Add Numbers in BashThis tutorial shows different ways of adding numbers in a bash script using expr, arithmetic expansion, bc and awk. How to Remove File Extension Using BashThe step by step guide to remove file extension using cut command using shell script and its use in conjunction with pipes. How to Use set Command in the Bash ShellLearn how to use the set built-in command in Bash. How to Find Files and Folders in LinuxLearn how to use the find command in Linux. How to Check if Variable Is Empty in BashThis tutorial illustrates checking if a variable is empty in bash using the the test command with the -z option and the -n option. How to Use Array in Linux BashThis article explains how to use array in Linux Bash. How to Read CPU Flags From CpuinfoThis article describes the flags in cpuinfo in Linux. How to Implement the for Loop in BashTrivial guide to write a for loop iterative structure using Bash script. How to Use SSH to Connect to Remote ServerThis tutorial demonstrates using ssh to securely connect to a remote Linux server.