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

Logical OR Operator in Bash ScriptThis article explains how to use the logical OR operator in Bash scripts, focusing on its syntax and practical applications. Learn through examples how to efficiently check conditions and execute commands, enhancing your scripting capabilities. Mastering this operator will streamline your Bash scripting, making your code cleaner and more effective. The export Command in BashThis tutorial explains the export command in Bash, detailing its use for managing environment variables, especially in Git. Learn how to set, export, and make variables persistent to streamline your workflow. Enhance your command-line efficiency with practical examples and clear explanations. How to Use Linux Commands pushd and popdThis tutorial demonstrates how to use the Linux commands pushd and popd effectively for seamless directory navigation. Learn how these commands can enhance your workflow, especially when working on multiple projects or Git repositories. Discover practical examples and tips to streamline your command-line experience. How to Open Rar File in LinuxThis article explains how to open RAR files in Linux using various methods, including Unrar, RAR, and 7-Zip. Learn step-by-step instructions and commands to easily extract RAR archives and access your files. Whether you're a beginner or an experienced user, this guide provides valuable insights and practical solutions for handling RAR files on Linux. HPurpose of Shell-Script HeadersThis tutorial explains the purpose of shell-script headers, known as shebangs, in Unix-based systems. Learn how shebangs define the interpreter for executing scripts, ensuring compatibility and enhancing user experience. Discover best practices for using shebangs effectively and elevate your shell scripting skills. How to Append New Data to an Array Without Specifying the Index in BashThis tutorial covers how to append new data to an array without specifying the index in Bash. Learn simple methods using the += operator, loops, and command outputs to manage your arrays efficiently. Discover practical examples and enhance your Bash scripting skills with this comprehensive guide. Perfect for automation and data processing tasks. How to Break Out of a Loop in BashThis tutorial discusses how to break out of a loop in Bash, covering various methods including the use of the break and exit commands. Learn about conditional statements and nested loops to enhance your Bash scripting skills. Whether you're processing files or managing tasks, mastering these techniques will help you control your script's flow efficiently. Explore practical examples and explanations to improve your understanding. How to Make New Directories in LinuxLearn how to create new directories in Linux using the mkdir command. This comprehensive guide covers basic directory creation, using Git, and advanced techniques for organizing your file structure. Master these skills to enhance your productivity and streamline your workflow in Linux. How to Install VMware Tools in Ubuntu 18.04Learn how to install VMware Tools in Ubuntu 18.04 using Open VM Tools and the VMware Tools ISO file. This step-by-step guide provides clear instructions for optimizing your virtual machine's performance. Enhance graphics, enable shared folders, and improve mouse functionality effortlessly. How to Delete a User Account in LinuxLearn how to delete a user account in Linux using the userdel command line utility. This comprehensive guide covers different methods to remove accounts while retaining or deleting user data. Explore practical examples and best practices for effective user management in your Linux environment. How to Change User Password in LinuxLearn how to change user passwords in Linux using the passwd command-line utility. This comprehensive guide covers changing your own password, altering another user's password, and enforcing password policies for better security. Perfect for both beginners and experienced users, this article ensures you have the knowledge needed to manage user passwords effectively in a Linux environment. How to Parse Command Line Arguments in BashLearn how to parse command line arguments in Bash effectively. This guide covers positional parameters, flags, loop constructs, and the shift operator. Enhance your Bash scripts with flexible and user-friendly argument handling techniques. 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 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. 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.