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 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 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 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 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 Use Array in Linux BashThis article explains how to use array in Linux Bash. 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. The screen Command in LinuxThis tutorial explains using the screen command in Linux to create, attach, detach, log and exit screen sessions. How to Open a File at Specific Line Number Using Vi and Vim EditorsEasy guide to open a file at specific line number using vi or vim editor in Linux. How to Get Folder Size in LinuxThis article describes how to get the directory size in Linux. The top Command in LinuxThis tutorial demonstrates the use of Top command in Linux. How to Sorting Files by Size in LinuxLearn how to find files by size in Linux How to Find and Replace Complex Strings by Using Sed With RegexThis tutorial demonstrates how to find and replace complex strings by using Sed with regex. How to Change the Permission of Folder and Directories in Linux/UnixThis tutorial demonstrates how can permission of folder and directories be changed in Linux/Unix. How to List Users in a Group in LinuxThis article explains how to list users on a group in Linux. How to Handle Zip Files on LinuxThis article shows how to manipulate zip files on Linux. How to Copy to/From Clipboard in LinuxThis article demonstrates the use of copy to/from a clipboard commands in Linux.