You can reboot your system by trying one of the following methods:
- Run /sbin/reboot in your terminal window.
- Commands like `reboot` are NOT found because reboot is in `/sbin`, but it is missing from your PATH. To fix this issue permanently, you can add `/sbin` in your PATH by following steps:
-
- Run echo PATH="\$PATH:/sbin" >> ~/.bashrc to add "PATH=$PATH:/sbin".
- Run vi ~/.bashrc to check if the line has been added successfully.
# ~/.bashrc: executed by bash(1) for non-login interactive shells.
[ -z "$PS1" ] && return
[ -z "$BASH_VERSION" ] && return
# Always use ls --color -F, even if dircolors isn't installed: busybox ls
# invariably supports it
alias ls='ls --color=auto -F'
if command -v dircolors >/dev/null 2>&1; then
eval `dircolors -b`
fi
HISTCONTROL=ignoreboth
shopt -s histappend
shopt -s checkjobs
PATH=$PATH:/sbin
~
~
~
~
I /home/lvuser/.bashrc [Modified] 19/19 100%
-
- Save and exit, then reload by running source ~/.bashrc.
From now on, you can run "reboot" to reboot the system every time you open the terminal.