• 3 Posts
  • 416 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle














  • Matriks404@lemmy.worldtolinuxmemes@lemmy.worldLOL
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    18 days 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.