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 Cat EOF in BashLearn how to use cat EOF in Bash effectively. This comprehensive guide covers the basics of cat EOF, including file creation, appending text, and writing scripts directly from the command line. Discover practical examples and enhance your Bash scripting skills today. How to Run GDB in Bash ScriptThis tutorial demonstrates how to run GDB in a Bash script with a binary file that takes command-line arguments. Learn to automate your debugging process, set breakpoints, and streamline your workflow effectively. How to Replace Strings in BashThis tutorial demonstrates how to replace one substring with another string in Bash. Learn effective methods using `sed`, `awk`, and Bash parameter expansion to enhance your string manipulation skills. Whether you're editing files or writing scripts, mastering these techniques will save you time and improve efficiency. Dive into practical examples and become proficient in Bash string replacements today! How to Format Date and Time in BashThis comprehensive tutorial on how to format date and time in Bash covers various methods using the date command. Learn to create user-friendly scripts, generate timestamps for files, and customize time zones effectively. Perfect for beginners and advanced users alike, this guide enhances your Bash scripting skills by providing practical examples and clear explanations. Discover the flexibility of the date command and elevate your scripting capabilities today! How to Emulate Do-While Loop in BashThis tutorial demonstrates how to emulate a do-while loop in Bash, providing clear examples and methods to achieve this functionality. Learn to control your Bash scripts effectively with techniques like using while loops, functions, and until loops. Whether you're a beginner or an experienced developer, this guide will enhance your scripting skills and help you write efficient Bash scripts. How to Change Output Color of Echo in BashThis article demonstrates how to change the output color of echo in Bash, focusing on methods useful for Git users. Learn to use ANSI escape codes, define reusable functions, and create Git aliases for colorized output. Enhance your terminal experience and make your scripts more user-friendly with these techniques. How to Assign Default Value in BashThis article explores various methods for assigning default values to variables in Bash. Learn how to use parameter expansion, if statements, and the :- operator effectively. Discover practical examples and enhance your Bash scripting skills. Whether you're automating tasks or developing applications, understanding default values will improve your scripts. How to Move Multiple Files in Linux BashThis article explains how to move multiple files in Linux Bash using specific filenames and wildcards. Learn efficient methods for file management, including Git commands to maintain version control. Master your file organization skills with our easy-to-follow guide and enhance your Linux experience. How to Escape Characters in BashThis tutorial explains escape characters in Bash and provides a detailed list of common escape characters. Learn how to effectively use escape characters in Git commands for handling special characters in strings, file names, and commit messages. Enhance your command-line skills with practical examples and tips. How to Find the Line Count of a File in Linux BashThis article explains how to find the line count of a file in Linux Bash by using different tools. Learn about the `wc` command, Git commands, and more to efficiently count lines in your files. Perfect for developers and system administrators looking to streamline their workflow. How to Set -e in Bash ScriptingThis tutorial demonstrates the use of set -e in Bash scripting, explaining its significance and providing practical examples. Learn how to enhance your scripts' reliability and efficiency with this powerful command. Whether you are a novice or an experienced user, mastering set -e can transform your Bash scripting experience. Discover best practices, conditional statements, and error handling techniques to ensure your scripts run smoothly. How to Run a Shell Script With Just Using the Script Name in LinuxThis article explains how to run a shell script with just using the script name in Linux. Learn essential steps to make your scripts executable, run them from the current directory, and add them to your PATH for easy access. Enhance your Linux skills and streamline your workflow today. How to Loop Over Files in Directory in BashLearn how to loop over files in a directory using Bash in this comprehensive tutorial. Discover various methods, including basic loops, find commands, and recursive globbing techniques. Enhance your scripting skills and automate file management with practical examples and clear explanations. Perfect for beginners and experienced users alike. Hash Tables in BashThis tutorial explores the creation and manipulation of hash tables in Bash, also known as associative arrays. Learn how to declare, modify, delete, and iterate through key-value pairs effectively. Enhance your Bash scripting skills and streamline data management with practical examples and clear explanations. Whether you're a beginner or experienced scripter, this guide will help you harness the power of hash tables in your scripts. How to Extract File Base Name in BashLearn how to extract the file base name in Bash with this comprehensive tutorial. Explore methods like substring parameter expansion and the basename command, and enhance your scripting skills. Perfect for managing files in a Git repository or automating tasks. How to Check Number of Arguments in Linux BashThis article explains how to check the number of arguments in Linux Bash. Learn various methods to handle script arguments effectively, including conditional statements and loops. Enhance your scripting skills with practical examples and clear explanations. How to Run find -exec Command in BashThis article explores how to effectively use the find command with the -exec option in Bash. Learn to search for specific text in files and execute commands on found files. Discover practical examples, including searching for text, deleting old logs, and moving large files. Enhance your command-line skills with these powerful techniques. Dates and Timestamps in UNIX/LinuxLearn how to get, parse, and convert dates and times on Linux with this comprehensive guide. Understand the use of UNIX/Linux commands and Git functionalities to manage timestamps effectively. Enhance your skills in handling date and time data, making your workflows more efficient. How to Delete Files Recursively in LinuxThis article explains how to delete files recursively in Linux, focusing on Git commands. Learn effective techniques to manage your files and directories, ensuring a clean and organized workspace. Master recursive deletion with practical examples and tips for safely handling your Git repositories. How to Copy Files Recursively in LinuxThis article explains how to copy files recursively in Linux, focusing on Git commands for effective file management. Learn to clone repositories and copy files within a project, enhancing your productivity and organization skills. Discover practical techniques and examples to streamline your workflow in a Linux environment. The Linux Path Environment VariableLearn how to utilize the PATH environment variable in Linux to enhance your command-line experience with Git. This comprehensive guide covers checking, adding, and verifying your PATH settings, ensuring seamless execution of Git commands. Whether you're a beginner or an experienced user, mastering the PATH variable can significantly improve your productivity. How to Switch Users in LinuxThis article explains how to switch users in Linux, detailing methods like the `su` and `sudo` commands, as well as graphical user interface options. Learn to manage user accounts efficiently, whether you're an administrator or a developer. Discover practical tips and examples that enhance your Linux experience. How to Get the List of Mounted Filesystems in LinuxThis article explains how to get the list of mounted filesystems in Linux using various commands like mount, df, and accessing /proc/mounts. Learn to effectively manage your system's storage and troubleshoot issues with our easy-to-follow methods and examples. How to Assign One Variable to Another in BashThis tutorial demonstrates how to assign one variable to another in Bash. Learn various methods including direct assignment, command substitution, and array handling to enhance your Bash scripting skills. Whether you're a beginner or looking to refine your techniques, this guide will help you understand the key concepts with clear examples and detailed explanations. Dive in and master variable assignment in Bash today!