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 Save Files in Vim Before Quitting the Vim EditorLearn how to save files in Vim before quitting the Vim editor with essential commands like :w, :q, and :wq. This guide provides a comprehensive overview of these commands, ensuring you can manage your files effectively and avoid losing your work. Mastering these commands will enhance your productivity and confidence while using Vim. How to Shutdown a Linux Machine Using TerminalLearn how to shutdown a Linux machine using the terminal with our comprehensive guide. Explore various methods including immediate shutdown, scheduled shutdown, and rebooting options. Master these commands to manage your Linux system effectively and enhance your efficiency. Perfect for both beginners and experienced users. How to Use the sleep Command in BashLearn how to use the sleep command in Bash to pause execution of scripts effectively. This article covers basic usage, conditional statements, and tips for enhancing user experience in your Bash scripts. Discover practical examples and best practices to master the sleep command and improve your scripting skills. How to Install Sublime Text Editor on Ubuntu 18.04Learn how to install Sublime Text Editor on Ubuntu 18.04 with this comprehensive guide. Follow simple steps to update your system, add the GPG key, and install Sublime Text using the apt command-line tool. Enhance your coding experience with one of the most popular text editors available. How to Read File Lines in BashLearn how to read file lines in Bash effectively using the `read` command. This comprehensive guide covers various methods, including loops and file descriptors, with clear examples and explanations. Perfect for beginners and experienced users alike, this article will enhance your Bash scripting skills and enable you to manipulate data efficiently. How to Edit and Reload the .bashrc FileThis tutorial demonstrates how to edit and reload the .bashrc file, a crucial skill for Linux users, particularly those working with Git. Learn how to customize your terminal environment efficiently by using the source command or the exec command to apply your changes instantly. Enhance your productivity by mastering your .bashrc file today! How to Unzip .gz File in LinuxThis article provides a comprehensive guide on how to unzip .gz files in Linux. Explore various commands, including gunzip, gzip, and tar, to efficiently compress and decompress files. Whether you're a beginner or an experienced user, you'll find practical examples and detailed explanations to enhance your Linux file management skills. How to Export Command in LinuxThis article explains how to define an environment variable with the export command in Linux, focusing on its application in Git. Learn to set up and manage environment variables effectively, ensuring your configurations are streamlined and persistent across sessions. Enhance your Linux and Git experience with practical examples and tips. How to Use the shift Command in Bash ScriptsThis tutorial explains the shift command in Bash scripting and how to effectively utilize it. Learn how to manipulate positional parameters, handle command-line arguments, and enhance your scripts with practical examples and detailed explanations. Perfect for beginners and experienced users alike, this guide will help you master the shift command in your Bash scripts. How to Solve Pip Command Not Found Error in BashThis article explains how to solve the pip command not found error in Linux Bash. Discover effective methods to install pip, add it to your PATH, and use Python to manage packages. Get your development workflow back on track with these simple solutions. How to Solve NPM Command Not Found Error in BashThis article explains how to solve the npm command not found error in Linux Bash. Discover step-by-step solutions, including installing Node.js and npm, adding npm to your PATH, and fixing permission issues. Get back to managing your Node.js packages effectively with these easy-to-follow methods. How to Solve Nodemon Command Not Found Error in Linux BashThis article explains how to solve the "nodemon command not found" error in Linux Bash. Discover effective methods including global installation, updating your PATH variable, and local installation. Get back to coding with Nodemon effortlessly! How to Solve Make Command Not Found Error in Linux BashThis article explains how to solve the make command not found error in Linux Bash. Learn effective methods to install the make utility and troubleshoot issues related to PATH configurations, ensuring a smooth development experience. How to Call Another Script From Current Script in BashThis tutorial teaches you how to run another script from your current script in Bash. Explore methods like using the source command, dot command, execute permissions, and command substitution. Enhance your Bash scripting skills with practical examples and clear explanations. How to Solve Error - Mesg: Ttyname Failed: Inappropriate Ioctl for Device Error in LinuxThis article demonstrates how to resolve the mesg: ttyname failed: inappropriate ioctl for device error in Linux. Explore effective solutions, including checking your terminal type, modifying the mesg command, and using SSH with a pseudo-terminal to ensure a smooth experience. Get back to your work without interruptions by following these practical tips. How to Include Script File in Another Bash ScriptThis article explores various methods to include a Bash script file into another script file. Learn how to use the source command, dot command, command substitution, and here documents to streamline your coding process. By mastering these techniques, you'll enhance your coding efficiency and organization. Discover practical examples and detailed explanations to improve your Bash scripting skills. How to Reload the .bash_profile From Command LineThis tutorial explores how to reload the .bash_profile from the command line, an essential skill for optimizing your terminal environment. Learn effective methods like using the source command, dot command, and exec command to apply changes immediately without restarting your terminal. Perfect for developers and system administrators looking to enhance their workflow. How to Open Emacs in BashThis tutorial provides a step-by-step guide on how to open Emacs in Bash. Learn various methods, including launching Emacs directly, opening specific files, and creating aliases for quick access. Unlock the full potential of Emacs in your Bash terminal and enhance your productivity today. How to Clear Terminal Screen in BashThis tutorial explores various methods to clear the terminal screen in Bash. Learn how to use commands like clear, reset, and shortcuts such as Ctrl + L, along with advanced techniques using ANSI escape codes. Keep your terminal tidy and enhance your productivity with these simple yet effective methods. How to Read File Into Variable in BashThis tutorial provides a comprehensive guide on how to read a file into a variable in Bash. Explore various methods such as command substitution, the read command in a loop, and Here Documents. Learn practical examples to enhance your scripting skills and streamline your workflow. Perfect for automation, system administration, and development tasks. How to Open HTML File Using BashThis tutorial provides a step-by-step guide on how to open an HTML file using Bash on a Mac. Explore simple commands like open and xdg-open to launch your default browser or specify a particular one. Perfect for web developers and beginners, this article simplifies file management in the terminal. How to Perform Increment and Decrement Operation in BashLearn how to perform increment and decrement operations in Bash with our comprehensive guide. Discover various methods including arithmetic and unary operators, complete with clear examples. Enhance your Bash scripting skills and streamline your code with these essential techniques. How to Add Sudo Users in UbuntuLearn how to add sudo users in Ubuntu with this step-by-step guide. Discover two effective methods: adding users to the sudo group and modifying the /etc/sudoers file. This comprehensive article covers everything you need to know to manage user permissions securely and efficiently. Perfect for both beginners and experienced users, it provides clear instructions and examples. How to Add Super Users in CentOSLearn how to add super users in CentOS by adding users to the wheel group or modifying the /etc/sudoers file. This comprehensive guide covers both methods with clear examples and explanations, ensuring you can manage user permissions effectively and securely.