this post was submitted on 07 Sep 2024
430 points (96.9% liked)

linuxmemes

24355 readers
433 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    top 40 comments
    sorted by: hot top controversial new old
    [–] [email protected] 34 points 7 months ago (2 children)

    What is the difference between that and simply reboot? Does systemctl reboot have any benefits?

    [–] [email protected] 31 points 7 months ago* (last edited 7 months ago)

    Wondering the same

    Edit: after a quick google session it seems like usually the reboot command is linked to systemctl so it should be pretty much the same thing as far as I understand.

    [–] [email protected] 27 points 7 months ago* (last edited 7 months ago) (3 children)

    reboot is linked (aliased) to your init program. In the case you are using systemd then it's equivalent to systemctl reboot.

    reboot is generic and calls whatever init program you use.

    There are more than one init. Like for example GNU Shepherd.

    [–] [email protected] 10 points 7 months ago

    SysV, Upstart

    [–] [email protected] 9 points 7 months ago

    Gentoo uses OpenRC

    [–] [email protected] 1 points 7 months ago
    [–] [email protected] 27 points 7 months ago (7 children)
    [–] [email protected] 20 points 7 months ago

    Let's get completely unnecessary:

    # systemctl isolate runlevel6.target
    
    [–] [email protected] 18 points 7 months ago (1 children)
    [–] [email protected] 11 points 7 months ago (2 children)

    You, like me, must be old.

    I also frequently pass -l to the ssh command.

    [–] [email protected] 2 points 7 months ago (1 children)

    I'm not old, I just like how short the command is

    [–] [email protected] 2 points 7 months ago

    Fair enough, I can respect that.

    [–] [email protected] 1 points 7 months ago (1 children)

    I didn't get that.

    Checked the man and it's not deprecated. So what does it have to do with "old"?

    [–] [email protected] 2 points 7 months ago (1 children)

    Nowadays most Linux users seem to use ssh user@host. When I was getting started, that didn't exist (or at least I was unaware of it) so I still frequently use the -l flag instead.

    Nothing wrong with it, just that at least I mostly encounter its use by experienced users.

    [–] [email protected] 1 points 7 months ago (1 children)

    OIC. Good to know in case I ever have to work on some old CentOS 5 box lying around ever again.
    It also looks kinda proper, using that instead of the @, so when making shell scripts, I might want to prefer this.

    [–] [email protected] 12 points 7 months ago

    sudo shutdown -r now

    [–] [email protected] 11 points 7 months ago

    I just flick the switch on the surge protector.

    [–] [email protected] 9 points 7 months ago

    Alt+SysRq-O

    [–] [email protected] 9 points 7 months ago* (last edited 7 months ago)
    sudo ps -ef | awk '{print $2}' | xargs -r kill -9
    
    [–] [email protected] 6 points 7 months ago* (last edited 7 months ago) (1 children)

    sudo reboot 0

    ...is my go-to.

    [–] [email protected] 14 points 7 months ago* (last edited 7 months ago)

    reboot -f

    Because real men login as root and don't care about such silly things like an init system or file system syncing!

    To quote the man page:

    -f Does not invoke shutdown(8) and instead performs the actual action you would expect from the name.

    [–] [email protected] 19 points 7 months ago

    Can you give Linus a Raiden hat?

    [–] [email protected] 15 points 7 months ago

    Dummy me I type "systemctl restart" instead πŸ€¦β€β™‚οΈ

    [–] [email protected] 15 points 7 months ago* (last edited 7 months ago)

    PuTTY: "unexpectedly" disconnected.

    [–] [email protected] 8 points 7 months ago (1 children)
    [–] [email protected] 2 points 6 months ago

    Sudo reboot now

    [–] [email protected] 7 points 7 months ago (1 children)

    I've repurposed a broken T2 macbook with Ubuntu Server, but any time I issue a reboot command, it just shuts down, and I need to manually walk to my garage and boot it back up.

    Does anyone know why I'm so stoopid?

    [–] [email protected] 5 points 7 months ago

    I was having issues with my pc hanging on reboot, so i changed the bios to auto boot when power is applied, and use a smart switch to manually power cycle when it hangs.

    Not sure if the mac bios supports that, but its worth a look

    [–] [email protected] 7 points 7 months ago

    run0 reboot

    [–] [email protected] 5 points 7 months ago

    Alt-SysReq-B

    [–] [email protected] 3 points 7 months ago (1 children)

    will shutdown now

    'shut down' is two words, here.

    [–] [email protected] 1 points 7 months ago

    the meme spells it like the command shutdown ;-)

    [–] [email protected] 2 points 7 months ago (1 children)
    [–] [email protected] 4 points 7 months ago

    Live Mas as the root account

    [–] [email protected] 2 points 7 months ago (2 children)

    I will always use the GUI for this when given the option. Change my mind (you can't).

    [–] [email protected] 2 points 7 months ago

    I won't try but I'll always use the command line.

    It's faster for me! Ctrl+alt+T brings up terminal, sudo reboot. Enter.

    [–] [email protected] 1 points 7 months ago

    I often remote into my machine, so it's a lot easier to type the command.

    [–] [email protected] 1 points 7 months ago* (last edited 7 months ago) (1 children)
    [–] [email protected] 3 points 7 months ago
    A stop job is running for ... (45min / no limit)