'shutdown' command not working

I installed Raspbian with the MATE Desktop on my Raspberry Pi. Do I have to install any package to get shutdown work? But I can see the manpage of shutdown using man shutdown.

I get this error

mickey@raspi:~ $ shutdown
bash: shutdown: command not found
mickey@raspi:~ $

Any solutions?

Mickey :slight_smile:

Try this.

  shutdown -h now

Try with:
sudo poweroff

Thanks for your answers!

I did not know that commands are not available when sudo is not entered before.

sudo shutdown now and sudo poweroff

worked. :relaxed:

Mickey :blush:

1 Like