I am new to Linux terminal, now I tried to use sudo, apt-get, whereis etc., commands in linux it returns an error bash: sudo: command not found
my command
$sudo apt-get install libc6-dev
Error is
bash: sudo: command not found.
Please let me know what could be the issue here, thank you in advance
How to Fix "sudo: command not found" on Linux. As your user cannot assume the privileges of the root user without already having sudo installed, you need to log out of your user account and log in as root. As root, you can install the sudo package with the privileges this account possesses.
The “command not found” error can occur if we have set a custom $PATH to run our scripts. This is because sudo might execute commands with a fresh environment instead of inheriting modified environment variables.
Try to login with su
$ su -
and install sudo
# apt-get install sudo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With