that's because sudo adds /sbin and /usr/sbin to PATH env variable.<div><br /></div><div><br /></div><div><br /></div>Sent from ProtonMail mobile<div><br /></div><div><br /></div><div><br /></div><br>-------- Original Message --------<br>On Jan. 3, 2020, 22:15, Nicholas Greensmith via Freedombox-discuss < freedombox-discuss@alioth-lists.debian.net> wrote:<blockquote class="protonmail_quote"><br><p dir="ltr">Thanks guys!</p>
<p dir="ltr">Out of curiosity though what's the reason behind command not found when called without sudo? I would have expected 'permission denied'.<br></p>
<p dir="ltr">Regards,</p>
<p dir="ltr">Nicholas Greensmith</p>
<p dir="ltr">Sent with ProtonMail Secure Email.</p>
<p dir="ltr">‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
On Friday, January 3, 2020 11:42 PM, Sunil Mohan Adapa <sunil@medhas.org> wrote:</p>
<p dir="ltr">> On 03/01/20 7:06 am, Nicholas Greensmith via Freedombox-discuss wrote:<br>
><br>
> > Hey all,<br>
> > This is a pretty dumb question but I can't seem to find a command like<br>
> > reboot or shutdown when ssh-ing into my freedombox...<br>
><br>
> Usually:<br>
><br>
> sudo reboot<br>
> sudo shutdown<br>
> sudo systemctl reboot<br>
> sudo systemctl poweroff<br>
><br>
> More systemd commands:<br>
><br>
> systemctl --help<br>
><br>
> ------------------------------------------------------------------------------------------------------------------------------<br>
><br>
> Sunil<br><br></p>
<p dir="ltr">_______________________________________________<br>
Freedombox-discuss mailing list<br>
Freedombox-discuss@alioth-lists.debian.net<br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss</a></p>
</div>