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 Get User Input in Linux Shell ScriptThis article explains how to get user input in Linux shell scripts using methods like the read command and the select statement. Learn how to create interactive scripts that gather data effectively. Discover techniques for reading passwords securely and passing command-line arguments. With practical examples and detailed explanations, enhance your scripting skills and create user-friendly applications in Linux. How to Get User Input in BashThis article explains how to get user input in Bash, covering essential methods like the read command, reading multiple inputs, and using command-line arguments. With clear code examples and detailed explanations, you'll learn to make your Bash scripts interactive and user-friendly. Perfect for beginners and experienced scripters alike, this guide will enhance your scripting skills and improve your Bash applications. How to Use the eval Command in Linux BashThis article explains how to use the eval command in Linux Bash. Learn about its syntax, applications, and practical examples to enhance your scripting skills. Discover how to execute commands dynamically, work with variables, and combine multiple commands effectively. How to Create One Line Loop in BashThis article explains how to create one-line loops in Linux Bash, covering various methods including for, while, and until loops. Learn to automate tasks efficiently with clear examples and detailed explanations, enhancing your Bash scripting skills. Perfect for beginners and experienced users alike, this guide will help streamline your workflow and improve productivity. How to Set Date Using Command-Line in LinuxLearn how to set the date using the command-line in Linux with our detailed guide. Discover methods using the date command, timedatectl, and Python scripts to manage your system's date and time effectively. Perfect for beginners and experienced users alike, this article provides clear examples and explanations to help you master this essential skill. How to Use sed to Find and Replace in BashThis article shows how to find and replace texts in Bash using sed. Learn simple and advanced methods for text manipulation, including case-insensitive searches and regular expressions. Discover how to streamline your workflow with powerful sed commands and enhance your text processing skills. How to Copy Files in BashIn this guide, learn how to copy files in Bash effectively. Explore various methods for copying single files, multiple files, and directories with practical examples. Discover essential command options to enhance your file management skills in Unix-like operating systems. How to Solve Export Not a Valid Identifier Error in BashThis article explains how to solve the export not a valid identifier error in Bash. Learn the common causes of this error and discover effective methods to fix it, including correcting variable names, avoiding spaces, and using arrays. Improve your Bash scripting skills and streamline your workflow with these practical solutions. Ternary Operator in Bash ScriptLearn how to implement the ternary operator in Bash scripts with this quick guide. Discover various methods including command substitution, arithmetic evaluation, and custom functions to streamline your scripting. Enhance your coding efficiency and readability with practical examples and clear explanations. Perfect for beginners and experienced developers alike. Bash Profile in macOSThis tutorial provides a comprehensive guide on managing your Bash profile in macOS. Learn how to create, edit, and delete your Bash profile effectively. Whether you're a beginner or a seasoned user, this article will enhance your command line experience with practical Python examples and tips. Discover the power of terminal customization today! How to Search for Files With a Filename Beginning With a Specified String in BashThis tutorial provides a comprehensive guide on how to search for files with a filename beginning with a specified string in Bash. Discover effective methods using the `find` command, `ls` with `grep`, and wildcards to streamline your file searches in Linux. Whether you're a beginner or an experienced user, learn to efficiently locate files and enhance your productivity in the Linux environment. How to Modify a Global Variable Within a Function in BashLearn how to modify a global variable within a function in Bash with this comprehensive tutorial. Explore different methods including direct assignment, using the declare command, and leveraging eval for dynamic variable modification. Enhance your Bash scripting skills and gain control over your scripts by mastering variable scope and manipulation. Perfect for beginners and experienced users alike, this guide provides clear examples and explanations to help you succeed. How to Multiply Variables in BashThis tutorial teaches you how to multiply variables in Bash using various methods including expr, arithmetic expansion, and bc for floating-point numbers. Learn step-by-step techniques with practical examples to enhance your scripting skills. Whether you're a beginner or an experienced developer, this guide will help you perform arithmetic operations effortlessly in your Bash scripts. How to Add the WSL Bash Shell to WindowsLearn how to add a Bash shell to Windows through WSL. How to Solve R Command Not Found on Bash (Or Cygwin)This tutorial demonstrates how to solve the r command not found in Bash or Cygwin. The History Command in LinuxThis tutorial shows using the history command to display the Bash history, to search in history, to remove commands in history and to clear the whole history. The grep Command in LinuxThis tutorial demonstrates using the grep command to match case insensitive pattern, count the number of matches, display file names that have a match, match the exact pattern, show the matched patterns only, show line numbers, invert pattern match, match the starting string and match the end of a line. How to Configure Apache Web Server on Ubuntu and DebianThis tutorial shows installing and set up the apache web sever and use the access logs on Ubuntu and Debian. How to Update YUM in LinuxThis article demonstrates about yum update command in Linux. The timeout Command in BashThis article discusses how to use timeout functionality in Bash. How to Redirect Stderr and Stdout to a File in BashThis article demonstrates how to redirect the stderr and stdout in Bash. How to Recursively Find Files in BashThis is a brief programming guide about the find command in Bash. How to Kill Process in BashThis article explains killing a Linux process using Bash. How to Get Length of String in BashThis article will explain finding string length using Bash.