Hey there, fellow tech-savvy peeps! Have you ever encountered the infamous "sudo command not found" error on your Linux system? If you're nodding your head right now, then worry no more because we've got you covered!
We stumbled upon a helpful article that teaches you how to fix this annoying issue on Debian 9 GNU/Linux. But before we dive into the nitty-gritty of it all, let's first understand what "sudo" means.
Sudo is short for "Superuser Do" and it's a command in Linux that allows users to perform tasks that require administrative privileges. In simpler terms, sudo enables you to execute commands as a superuser or root user, which gives you access to perform actions that regular users can't.
So, why does the "sudo command not found" error occur? Well, it could be due to a couple of reasons. One reason could be that the sudo package isn't installed on your system. Another reason could be that the command isn't accessible in your system's PATH. Whatever the reason may be, here's how you can fix it.
Firstly, open up your terminal and type in the following command:
su -
This command will prompt you to enter your root password. Once you've entered it, type in the following command:
apt install sudo
This command will install the sudo package on your system if it isn't already installed. After installing the package, you need to add yourself to the sudo group. Type in the following command:
usermod -aG sudo your_username
Replace "your_username" with your actual username. This command adds you to the sudo group, giving you administrative privileges.
Lastly, log out and log back in for the changes to take effect. Voila! You can now use the sudo command to your heart's content!
Well, that's it for this techy post. We hope you found it helpful and informative. Stay tuned for more tech-related posts that will help you tackle any issue that comes your way. Till then, happy sudo-ing!
If you are searching about How to fix debian sudo command not found, you've came to the right web. We have pictures like Fix ‘sudo aptget command not found’ on mac, how to fix debian sudo command not found, how to fix sudo command not found in debian 10 tutorials and how to. Read more:
Linux sudo benisnous debian gnu. Sudo debian. Sudo command linux shell run sh script scripts error echo. Sudo command debian found install after fix won. How to use sudo command without password in ubuntu crazy techgo. Bash sudo command not found unix & linux paayi tech. Azure bash sudo command not found stack overflow