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

linuxmemes

21304 readers
1131 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 members of the community for any reason.
  • 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.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 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. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    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 fork-bomb your computer.

    founded 1 year ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] TunaCowboy@lemmy.world 27 points 2 months ago (7 children)
    [–] finkrat@lemmy.world 20 points 2 months ago

    Let's get completely unnecessary:

    # systemctl isolate runlevel6.target
    
    [–] jdr@lemmy.ml 18 points 2 months ago (1 children)
    [–] toynbee@lemmy.world 11 points 2 months ago (2 children)

    You, like me, must be old.

    I also frequently pass -l to the ssh command.

    [–] jbk@discuss.tchncs.de 2 points 2 months ago (1 children)

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

    [–] toynbee@lemmy.world 2 points 2 months ago

    Fair enough, I can respect that.

    [–] ulterno@lemmy.kde.social 1 points 2 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"?

    [–] toynbee@lemmy.world 2 points 2 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.

    [–] ulterno@lemmy.kde.social 1 points 2 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.

    [–] KickMeElmo@sopuli.xyz 12 points 2 months ago

    sudo shutdown -r now

    [–] rickyrigatoni@lemm.ee 11 points 2 months ago

    I just flick the switch on the surge protector.

    [–] bdonvr@thelemmy.club 9 points 2 months ago
    [–] thr0w4w4y2@sh.itjust.works 8 points 2 months ago* (last edited 2 months ago)
    sudo ps -ef | awk '{print $2}' | xargs -r kill -9
    
    [–] SnotFlickerman@lemmy.blahaj.zone 6 points 2 months ago* (last edited 2 months ago) (1 children)

    sudo reboot 0

    ...is my go-to.

    [–] I_poop_from_there@lemmy.world 14 points 2 months ago* (last edited 2 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.