I can' t use the command route
:
route
bash: route: command not found
Why is it not found? (I'm using debian 9).
I tried to run it as root but it still does not work. However it is supposed to work also without root.
Additional diagnostics:
whereis route
route:
which route
(empty output).
export PATH=$PATH:/sbin
(no output) and nothing changes.
I already have iproute2
installed, to be sure I ran:
apt --reinstall install iproute2
sudo -i
instead? – Rui F Ribeiro Nov 2 '18 at 11:34PATH
is, and why you think that you even have aroute
command in the first place on a package-based operating system. None of that is in the question as it stands. – JdeBP Nov 2 '18 at 11:38/sbin/
is not always in path for normal user, but is forroot
. If you'd shown the value of your$PATH
variable, that would have avoided the irrelevant answers. – JigglyNaga Nov 2 '18 at 12:04PATH
and what user account was being used right from the start, in the question. – JdeBP Nov 2 '18 at 14:14