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

The ps aux Command in LinuxExplore the `ps aux` command in Linux with this comprehensive guide. Learn how to monitor running processes, filter output, and understand process states. Enhance your Linux skills and troubleshoot effectively with practical examples and insights. Perfect for system administrators and developers looking to optimize performance. NTP in LinuxThis tutorial covers NTP in Linux, explaining its importance for time synchronization. Learn how to install, configure, and troubleshoot NTP effectively on your Linux systems. Ensure your applications run smoothly with accurate timekeeping. How to Change Directory in BashThis tutorial on how to change directories in Bash provides essential commands for navigating your file system, particularly in a Git context. Learn to use the `cd` command effectively, explore shortcuts for efficient navigation, and enhance your productivity in software development. Whether you're switching between projects or managing repositories, this guide will equip you with the skills you need to navigate seamlessly. How to Change Drive in Git BashThis article serves as a trivial guide on how to change drives in Git Bash. Learn to navigate seamlessly between different drives using essential commands like cd and pushd. Enhance your command line skills and streamline your workflow with our easy-to-follow instructions and practical examples. Whether you're a beginner or looking to refine your Git Bash skills, this guide has you covered. How to Add New Users in Linux in Bash ScriptLearn how to add new users in Linux using a Bash script in this comprehensive tutorial. Discover step-by-step instructions for creating a simple script that automates user management tasks, including setting passwords and user groups. Perfect for system administrators and anyone looking to streamline user management in Linux. How to Send Messages to a Logged-In User in BashLearn how to send messages to a logged-in user in Bash effectively. This guide covers essential commands like write and wall, as well as using Git commit messages for communication. Enhance your terminal communication skills and improve collaboration with these practical methods. How to Wait for Background Process in BashThis tutorial demonstrates how to wait for background processes in Bash, focusing on effective methods to manage Git commands. Learn how to use the wait command, job IDs, and exit statuses to streamline your scripting and enhance error handling. Perfect for both beginners and experienced users looking to improve their Bash scripting skills. How to Find All Files With an Extension in BashThis tutorial demonstrates how to find all files with an extension in Bash. Learn effective methods using commands like find, ls, and Git to quickly locate files in your projects. Enhance your workflow and productivity by mastering these essential Bash techniques for file searching. shebang in Bash ScriptThis tutorial provides an in-depth look at the shebang in Bash scripts, explaining its definition, usage, and variations. Learn how to effectively implement the shebang in your scripts to ensure they run smoothly with the correct interpreter. Whether you're a beginner or an experienced developer, this guide will enhance your understanding of Bash scripting fundamentals. Discover best practices and common variations to improve your scripting skills today. How to Pass Parameter in a Bash FunctionThis tutorial demonstrates how to pass parameters in a Bash function. Learn the essential techniques for defining functions, handling multiple parameters, and setting default values. Enhance your Bash scripting skills and create dynamic scripts with ease. Explore practical examples and improve your coding efficiency today! The -ne Operator in BashDiscover the power of the -ne operator in Bash scripting. This article explains its use in conditional statements and loops, providing practical examples to enhance your coding skills. Learn how to effectively compare numeric values and control script flow with ease. Ideal for beginners and experienced programmers alike, this guide will help you master Bash scripting. How to Use Z Flag in Linux BashThis article demonstrates how to use the test command and the -z flag for comparison in Linux Bash scripting. Learn practical applications, including user input validation and error prevention, to enhance your scripting skills. Explore examples and explanations to master the use of the -z flag in your Bash scripts. How to Check Kernel Version in LinuxThis article provides a comprehensive guide on how to check the running kernel version in Linux. Learn various methods, including using commands like uname, dmesg, and hostnamectl, to easily access kernel information. Ideal for system administrators, developers, and Linux enthusiasts, this guide ensures you have the knowledge to manage your system effectively. How to Solve cd: Too Many Arguments Error in BashThis article explains how to solve the "cd: too many arguments" error in Linux Bash. Learn effective methods to navigate directories, including using quotes, escape characters, and Git commands. Discover how to create custom Bash functions for smoother navigation. How to Run Shell Script on macOSThis tutorial provides a comprehensive guide on how to run shell scripts on macOS. Learn to create, execute, and debug shell scripts effectively. Enhance your productivity with automation and streamline your workflows with our easy-to-follow instructions. Perfect for beginners and experienced users alike. How to Echo New Line in BashLearn how to echo a new line in Bash with various methods, including using the -e option and the $ variable. This comprehensive guide provides clear code examples and detailed explanations, enabling you to format your output effectively in your Bash scripts. Whether you're a beginner or an experienced user, mastering these techniques will enhance your command-line skills. How to Compare Numbers in BashLearn how to compare numbers in Bash effectively using square braces and double parentheses. This comprehensive guide provides clear examples and explanations to help you master number comparisons in your Bash scripts. Enhance your scripting skills and efficiency today! How to Run Bash Script in TerminalLearn how to run a Bash script in the terminal effortlessly. This article covers two primary methods: using the bash command and making your script executable. With clear examples and explanations, you'll be running scripts like a pro in no time. How to Remove Directory in Bash TerminalLearn how to efficiently remove directories in the Bash terminal, including those with subdirectories. This comprehensive guide covers essential commands like rm -r, rmdir, and find, along with practical examples. Master directory management and avoid accidental data loss with our expert tips. Perfect for Linux users looking to streamline their file management process. How to Change Directory With Git BashThis tutorial explains how to change directories in Git Bash using the `cd` command. Learn the best practices for navigating file systems efficiently, including using absolute and relative paths, and utilizing tab completion. Perfect for developers looking to enhance their command-line skills. How to Declare and Utilize Booleans in BashThis tutorial demonstrates the declaration and utilization of booleans in Bash. Learn how to effectively declare boolean variables, use them in conditional statements, integrate them into functions, and combine them with loops. Enhance your Bash scripting skills with practical examples and clear explanations designed for both beginners and experienced users. How to Remove Last Character From a String in BashLearn how to remove the last character from a string in Bash with easy-to-follow methods. This article covers parameter expansion, sed, awk, and looping techniques, complete with code examples and explanations. Perfect for beginners and experienced users alike, this guide helps streamline your string manipulation skills in Bash scripting. How to List Directories in BashLearn how to list directories in Bash with our comprehensive guide. Explore various methods, including the `ls`, `find`, `tree`, and `compgen` commands, complete with code examples and detailed explanations. Master directory navigation in your Bash environment to enhance your productivity and efficiency. How to Solve Permission Denied Error in Linux BashThis article provides a comprehensive guide on how to solve the "Permission Denied" error in Linux Bash using the chmod command. Learn the differences between symbolic and numeric modes, and follow clear examples to regain access to your files and directories. Whether you're a beginner or an experienced user, this guide will help you navigate Linux permissions effortlessly.