this post was submitted on 30 Jul 2026
428 points (98.0% liked)

linuxmemes

32538 readers
1122 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 of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
  • 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.
  • Don't come looking for advice, this is not the right community.
  • 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 3 years ago
    MODERATORS
     
    top 50 comments
    sorted by: hot top controversial new old
    [–] bjoern_tantau@swg-empire.de 74 points 3 weeks ago (7 children)
    [–] TwilightKiddy@scribe.disroot.org 32 points 3 weeks ago (2 children)

    At least it tells you how long it'll take before it decides to SIGKILL whatever is holding the shutdown sequence.

    [–] Thorry@feddit.org 13 points 3 weeks ago (2 children)

    Well you say that, but I've seen the countdown go past and then reset to a higher number often.

    [–] TwilightKiddy@scribe.disroot.org 11 points 3 weeks ago (2 children)

    I entrust you with this horror, go figure out what to blame.

    #! /usr/bin/env bash
    shutdown_start=$(journalctl -b -1 -u systemd-logind --grep="System is (powering down|rebooting)" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP)
    shutdown_start=$((shutdown_start / 1000000))
    units=$(journalctl -b -1 --since=@$shutdown_start --output=cat --no-pager --output-fields=UNIT JOB_TYPE=stop CODE_FUNC=job_emit_start_message)
    
    for u in $units; do
        stopping_start=$(journalctl -b -1 --since=@$shutdown_start -u "$u" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP JOB_TYPE=stop CODE_FUNC=job_emit_start_message _SYSTEMD_UNIT=init.scope)
        stopping_end=$(journalctl -b -1 --since=@$shutdown_start -u "$u" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP JOB_TYPE=stop CODE_FUNC=job_emit_done_message _SYSTEMD_UNIT=init.scope)
        duration_human=$(systemd-analyze timespan $((stopping_end - stopping_start))us | tail -1 | sed 's/.*: //')
        printf "%s\t%10s %s\n" $((stopping_end - stopping_start)) "$duration_human" "$u"
    done | sort -rn | cut -f 2
    
    load more comments (2 replies)
    load more comments (1 replies)
    [–] realitaetsverlust@piefed.zip 7 points 3 weeks ago (1 children)

    I think that depends on the setting, I had situations where one of my docker containers took ages to shutdown and it would just say 00/02 00s but when it reached that limit, it would just go up.

    Individual services can override the default 90 seconds timeout. But then you can override their override if you think you are smarter, of course.

    [–] Gyroplast@pawb.social 17 points 3 weeks ago (1 children)

    Alt-SysRq-i, u, o

    I don't have time for this shit.

    [–] picklerick@lemmy.ml 6 points 3 weeks ago* (last edited 3 weeks ago)

    have i learned a new magic combo?!

    [–] LodeMike@lemmy.today 17 points 3 weeks ago

    (X time / 1:30) but the second time will be extended indefinitely for some fucking reason.

    [–] anon5621@lemmy.ml 6 points 3 weeks ago

    Yes but no, u can in config file of systemd change timeout to 5,10 second or other number of seconds which u wish before it will kill it

    [–] RustyNova@lemmy.world 5 points 3 weeks ago

    My always plugged in HDD with bees on it does that. 1 minute to shutdown at least because there's always some kind of extend read or dedupe that need a sync.

    ... I brought this upon myself so I don't have to complain.

    load more comments (2 replies)
    [–] orlyowl@piefed.ca 47 points 3 weeks ago (4 children)

    Reminds me of one of the truest comics I ever read.

    DsmoxSmOInIZlnj.jpg

    load more comments (4 replies)
    [–] waldfee@feddit.org 43 points 3 weeks ago (1 children)

    [**    ] A stop job is running for Session c1 of User gdm (49s / 1min 30s)

    [–] Telodzrum@lemmy.world 9 points 3 weeks ago

    `[**    ] A stop job is running for Session c1 of User gdm (4min 19s / 1min 30s)`

    [–] Valmond@lemmy.dbzer0.com 21 points 3 weeks ago (2 children)

    Windows cannot shut down because there is a folder open.

    load more comments (2 replies)
    [–] Eat_Your_Paisley@lemmy.world 13 points 3 weeks ago (3 children)

    I've never used systemd to shut down

    Sudo shutdown -h now works on the Mac

    [–] kevincox@lemmy.ml 19 points 3 weeks ago (3 children)

    In most distros shutdown is a symlink to systemctl.

    load more comments (3 replies)
    [–] Sheldan@lemmy.world 5 points 3 weeks ago

    I just use poweroff.

    load more comments (1 replies)
    [–] pelya@lemmy.world 10 points 3 weeks ago (8 children)

    Just poweroff is fine. Why lose extra 2.5 seconds typing two words when one word will suffice?

    [–] AnUnusualRelic@lemmy.world 13 points 3 weeks ago* (last edited 3 weeks ago) (8 children)

    What?

    '''
    sync ; sync ; sync ; shutdown -h now

    '''

    Or nothing!

    load more comments (8 replies)
    load more comments (7 replies)
    [–] Zeddex@sh.itjust.works 10 points 3 weeks ago (2 children)
    load more comments (2 replies)
    [–] Noobnarski@lemmy.world 10 points 3 weeks ago (2 children)

    It's even worse, when I tell my work Windows 11 computer to shut down and I have to choose update and shutdown because it decided to do updates, sometimes it reboots a few times but then it doesn't turn off afterwards.

    I'm never going to install Windows 11 on any of my devices, it's so bad.

    [–] AndyMFK@lemmy.dbzer0.com 9 points 3 weeks ago (1 children)

    I bought a new mini PC the other day that shipped with windows 11. Before installing Linux I thought "I'll just boot into windows to make sure the hardware is all correct".

    I got as far as the windows welcome screen and thought "it's actually just going to be faster and easier to install Debian instead of going through all this windows bullshit"

    [–] Bluewing@lemmy.world 8 points 3 weeks ago

    I got a new Mini a month ago. Before I even powered it up, I stabbed a USB stick into it, hit escape on boot, and killed that bitch with Kinonite.

    There are two things a person needs to do when starting up a fresh new computer: First, you must bathe in the purifying waters of Lake Minnetonka, and never, ever let Windows have even a single chance to live.

    [–] Buddahriffic@lemmy.world 6 points 3 weeks ago (2 children)

    Or my old windows 10 machine would wake itself up in the middle of the night to run updates that the group policy wouldn't even allow it to download without my permission and then just sit there. If I hadn't fallen asleep yet, I'd notice the monitor light up the next room and get up swearing at Microsoft until I tracked down where the wakeup timer was set and disabled it. Only to find it re-enabled after some updates.

    Fuck Microsoft.

    [–] GamingChairModel@lemmy.world 5 points 3 weeks ago (1 children)

    It's fun when your laptop decides to do this kind of nonsense from inside your laptop bag, smothering itself in its own heat.

    load more comments (1 replies)
    load more comments (1 replies)
    [–] Rhaedas@fedia.io 9 points 3 weeks ago

    Five seconds? What's hogging that system? Mine is about two, at most, from the WM shutdown selection.

    [–] Flax_vert@feddit.uk 7 points 3 weeks ago (4 children)

    Everyone arguing about the amount of keypresses to type a shutdown command and time it takes to shutdown... I just power it off at the wall. One button press, shutdown is near instantaneous

    load more comments (4 replies)
    [–] Honytawk@discuss.tchncs.de 7 points 3 weeks ago (4 children)

    Are you guys really using a command to shut down a computer?

    Because you can do the same with Windows, but nobody uses it because it is just not convenient to use commands for that.

    shutdown /s

    [–] Haaveilija@lemmy.world 6 points 3 weeks ago

    "please shut down (this is sarcasm)"

    [–] LePoisson@lemmy.world 4 points 3 weeks ago (2 children)

    Yeah, you can even throw a /f in there to force close all apps so it will kill everything and go nighty night. I used to use it with /t command if I wanted to download something while I was out but not have the PC run all day.

    That's not the best way to turn your PC off but hell half the time I just murder mine by holding down the power button anyways. As long as you're not being crazy shutting her down in the middle of some data operations you'll be fine.

    load more comments (2 replies)
    load more comments (2 replies)
    [–] 1984@lemmy.today 7 points 3 weeks ago (3 children)

    You can just type "shutdown now" and it does.

    load more comments (3 replies)
    [–] Sxan@piefed.zip 6 points 3 weeks ago

    systemctl invariably hangs on waitimg for some job to finish. systemd-shutdown-inhibitor is hideous.

    poweroff -ff

    [–] hactar42@lemmy.ml 6 points 3 weeks ago (2 children)

    Not to be that guy but...

    shutdown /s /f /t 0

    [–] kbobabob@lemmy.dbzer0.com 4 points 3 weeks ago

    No, you have to use the GUI in Windows.

    load more comments (1 replies)
    [–] Siegfried@lemmy.world 5 points 2 weeks ago* (last edited 2 weeks ago)

    Powers on

    Immediately starts shut down

    Refuses to close because the following programs are still running

    The list is empty

    [–] LiarAmongAll@lemmy.zip 5 points 3 weeks ago

    Windows update set my PC back almost 3 years for some unknown reason, lost so much shit. That was my final fuck it this shit moment, I installed Mint last week. A little bit of a learning curve, but I'm enjoying it and not worried about everything getting ruined unless I do something dumb. I can live with my own stupid.

    [–] arc99@lemmy.world 4 points 3 weeks ago* (last edited 3 weeks ago) (3 children)

    This boils down to a Linux using a file system which allows files to be deleted or replaced in the inode table while something has the old file open. So it's easier (although not simple) to replace packages while other stuff is running. Whereas Windows has to shut everything else down so nothing has the file open to replace it and also fix stragglers during the next reboot.

    load more comments (3 replies)
    [–] titanicx@lemmy.zip 4 points 3 weeks ago (6 children)

    You know I'm okay with Windows running updates I shut down or anything else like that. It's incredibly annoying when people don't run updates and then wonder why their system gets fucked up. It's just like on Linux when people just absolutely refuse to acknowledge the fact that they need to run updates. And many times I need to run the updates manually through the command line. There are quite a few gooey applications and things like that that will allow you to run updates but many times you still have to run them manually. And then something breaks and people wonder why I broke when they didn't run any updates. So in the end really who gives a fuck if it's running updates on shutdown you hit the button says run updates you tell it to run updates and you either close the lid on your laptop and walk away or you carry it till it shuts down within a few minutes and then you shut it down. Or you just let your desktop run until it's done. It's really not that big of a deal that people here seem to make it out to be and seem to make 10 different memes a day about the shutdown process on whatever OS they want to shut down.

    [–] KmlSlmk64@lemmy.world 6 points 3 weeks ago (1 children)

    For most people, especially work computer/laptop users, making the update happen by default on restart or during sleep hours does a lot to keep the pc updated, because they would otherwise never do it themselves. There is a somewhat large minority of users who complain about such behaviour, but these are mostly people into computers anyways and can update their stuff anyways.

    But the biggest gripe is the horrid implementation of the start menu power buttons in windows:

    • update and restart: mostly works as you would expect - updates and boots the pc
    • update and shutdown: updates the pc, and instead of leaving the pc in shutdown state, many times it just boots the pc again, working like update and restart
    • restart/shutdown without updating: non-insignificant chance of it doing the update anyways
    load more comments (1 replies)
    load more comments (5 replies)

    Systemctl? Bro just poweroff

    [–] Tiempo@lemmy.dbzer0.com 4 points 3 weeks ago (1 children)
    load more comments (1 replies)
    load more comments
    view more: next β€Ί