programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Silverchase@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 8 months ago

reboot yourself

sh.itjust.works

message-square
39
link
fedilink
430

reboot yourself

sh.itjust.works

Silverchase@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 8 months ago
message-square
39
link
fedilink
alert-triangle
You must log in or register to comment.
  • SatyrSack@lemmy.one
    link
    fedilink
    arrow-up
    34
    ·
    8 months ago

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

    • silly goose meekah@lemmy.world
      link
      fedilink
      arrow-up
      31
      ·
      edit-2
      8 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.

    • mariusafa@lemmy.sdf.org
      link
      fedilink
      arrow-up
      27
      ·
      edit-2
      8 months ago

      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.

      • InFerNo@lemmy.ml
        link
        fedilink
        arrow-up
        10
        ·
        8 months ago

        SysV, Upstart

      • msage
        link
        fedilink
        arrow-up
        9
        ·
        8 months ago

        Gentoo uses OpenRC

      • lemmesay@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        runit

  • TunaCowboy@lemmy.world
    link
    fedilink
    arrow-up
    27
    ·
    8 months ago

    sudo reboot -h now

    • finkrat@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      8 months ago

      Let’s get completely unnecessary:

      # systemctl isolate runlevel6.target
      
    • jdr@lemmy.ml
      link
      fedilink
      arrow-up
      18
      ·
      8 months ago
      # init 6
      
      • toynbee@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        8 months ago

        You, like me, must be old.

        I also frequently pass -l to the ssh command.

        • jbk@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          ·
          8 months ago

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

          • toynbee@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            8 months ago

            Fair enough, I can respect that.

        • ulterno@lemmy.kde.socialBanned
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          I didn’t get that.

          Checked the man and it’s not deprecated. So what does it have to do with “old”?

          • toynbee@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            8 months ago

            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.

            • ulterno@lemmy.kde.socialBanned
              link
              fedilink
              English
              arrow-up
              1
              ·
              8 months ago

              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.

              • InverseParallax@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                arrow-down
                1
                ·
                8 months ago

                some old CentOS 5 box

                https://youtu.be/PeWMwrdFBw0?t=144

    • KickMeElmo@sopuli.xyz
      link
      fedilink
      arrow-up
      11
      ·
      8 months ago

      sudo shutdown -r now

    • Ricky Rigatoni@lemm.ee
      link
      fedilink
      arrow-up
      11
      ·
      8 months ago

      I just flick the switch on the surge protector.

    • bdonvr@thelemmy.club
      link
      fedilink
      arrow-up
      9
      ·
      8 months ago

      Alt+SysRq-O

    • thr0w4w4y2@sh.itjust.works
      link
      fedilink
      arrow-up
      9
      ·
      edit-2
      8 months ago
      sudo ps -ef | awk '{print $2}' | xargs -r kill -9
      
    • Snot Flickerman@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      8 months ago

      sudo reboot 0

      …is my go-to.

      • I_poop_from_there@lemmy.world
        link
        fedilink
        English
        arrow-up
        14
        ·
        edit-2
        8 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.

  • deegeese@sopuli.xyz
    link
    fedilink
    arrow-up
    19
    ·
    8 months ago

    Can you give Linus a Raiden hat?

  • ColdWater@lemmy.ca
    link
    fedilink
    arrow-up
    15
    ·
    8 months ago

    Dummy me I type “systemctl restart” instead 🤦‍♂️

  • perviouslyiner@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    8 months ago

    PuTTY: “unexpectedly” disconnected.

  • Psiczar@aussie.zone
    link
    fedilink
    arrow-up
    8
    ·
    8 months ago

    Sudo shutdown now -r

    • sjanssen15@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      7 months ago

      Sudo reboot now

  • Zozano@lemy.lol
    link
    fedilink
    English
    arrow-up
    7
    ·
    8 months ago

    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?

    • dadarobot@lemmy.sdf.org
      link
      fedilink
      arrow-up
      5
      ·
      8 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

  • linuxgator@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    8 months ago

    run0 reboot

  • guy_threepwood@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    8 months ago

    Alt-SysReq-B

  • corsicanguppy@lemmy.caBanned
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    8 months ago

    Removed by mod

    • lseif@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      the meme spells it like the command shutdown ;-)

  • NeatNit@discuss.tchncs.de
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    8 months ago

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

    • Gingernate
      link
      fedilink
      arrow-up
      2
      ·
      8 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.

    • Hawk@lemmynsfw.com
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

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

  • model_tar_gz@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    sudo

    • 4am@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      8 months ago

      Live Mas as the root account

  • DefederateLemmyMl@feddit.nl
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    8 months ago

    • lemmesay@discuss.tchncs.de
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago
      A stop job is running for ... (45min / no limit)
      

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Hint: :q!


Sister communities:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
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 figures

We 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.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 220 users / day
  • 1.56K users / week
  • 9.3K users / month
  • 18.7K users / 6 months
  • 506 local subscribers
  • 24.9K subscribers
  • 1.63K Posts
  • 84.8K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org