• Matriks404@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    13 hours ago

    The command after && runs only if the previous command returns non-error exit status (0), if pacman returns error the latter command won’t be executed.

    Additionally there’s probably a configuration option for sudo for it to not time out, but it doesn’t matter since you can just use systemctl reboot as a normal user to reboot your system (at least on Debian). If that’s too long I recommend to add this to your .bashrc (if you use Bash): alias reb='systemctl reboot' or something similar.