this post was submitted on 07 Jul 2024
540 points (93.0% liked)

linuxmemes

31042 readers
338 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.
  • 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 2 years ago
    MODERATORS
     
    top 50 comments
    sorted by: hot top controversial new old
    [–] bjoern_tantau@swg-empire.de 218 points 2 years ago (10 children)

    Fake news.

    Both Windows and Linux have their respective SIGTERM and SIGKILL equivalents. And both usually try SIGTERM before resorting to SIGKILL. That's what systemd's dreaded "a stop job is running" is. It waits a minute or so for the SIGTERM to be honoured before SIGKILLing the offending process.

    [–] sxan@midwest.social 34 points 2 years ago (28 children)

    Also fake because zombie processes.

    I once spent several angry hours researching zombie processes in a quest to kill them by any means necessary. Ended up rebooting, which was a sort of baby-with-the bath-water solution.

    Zombie processes still infuriate me. While I'm not a Rust developer, nor do I particularly care about the language, I'm eagerly watching Redox OS, as it looks like the micro kernel OS with the best chance to make to it useful desktop status. A good micro kernel would address so so many of the worst aspects of Linux.

    [–] CameronDev@programming.dev 55 points 2 years ago (2 children)

    Zombie processes are already dead. They aren't executing, the kernel is just keeping a reference to them so their parent process can check their return code (waitpid).

    All processes becomes zombies briefly after they exit, just usually their parents wait on them correctly. If their parents exit without waiting on the child, then the child gets reparented to init, which will wait on it. If the parent stays alive, but doesn't wait on the child, then it will remain zombied until the parent exits and triggers the reparenting.

    Its not really Linux's fault if processes don't clean up their children correctly, and I'm 99% sure you can zombie a child on redox given its a POSIX OS.

    load more comments (2 replies)
    [–] MNByChoice@midwest.social 17 points 2 years ago

    Zombie processes are hilarious. They are the unkillable package delivery person of the Linux system. They have some data that must be delivered before they can die. Before they are allowed to die.

    Sometimes just listening to them is all they want. (Strace or redirect their output anywhere.)

    Sometimes, the whole village has to burn. (Reboot)

    [–] Diabolo96@lemmy.dbzer0.com 8 points 2 years ago (4 children)

    RedoxOS would likely never become feature complete enough to be a stable, useful and daily-drivable OS. It's currently a hobbyist OS that is mainly used as a testbed for OS programming in Rust.

    If the RedoxOs devs could port the Cosmic DE, they'd become one of the best Toy OS and maybe become used on some serious projects . This could give them enough funds to become a viable OS used by megacorps on infrastructures where security is critical and it may lead it to develop into a truly daily drivable OS.

    [–] ReveredOxygen@sh.itjust.works 9 points 2 years ago (2 children)

    I believe the next step after that would be to wake up

    load more comments (2 replies)
    load more comments (3 replies)
    load more comments (24 replies)
    [–] Mojave@lemmy.world 28 points 2 years ago (2 children)

    Clicking end task in windows task manager has definitely let the hanging task live in its non-responsive state for multiple hours before.

    [–] bjoern_tantau@swg-empire.de 8 points 2 years ago (2 children)

    Been a while since I've been on Windows but I distinctly remember some button to kill a task without waiting. Maybe they removed it to make Windows soooo much more user friendly.

    [–] Rev3rze@feddit.nl 8 points 2 years ago (1 children)

    Off the top of my head: right click the task and hit end process. That has literally never failed me. Back in windows XP it might sometimes not actually kill the process but then there was always the "kill process tree" button to fall back on.

    load more comments (1 replies)
    [–] blind3rdeye@lemm.ee 5 points 2 years ago

    The normal Windows task manager's 'end task' button just politely asks the app to close - but then later will tell the user if the app is unresponsive, and offer to brutally murder it instead.

    There is also the sysinternals Process Monitor, which is basically 'expert' version of the task manager. Procmon does allow you to just kill a task outright.

    load more comments (1 replies)
    load more comments (8 replies)
    [–] MonkderDritte@feddit.de 87 points 2 years ago (2 children)

    SIGTERM is the graceful way tho? It nicely asks programs to please close and cleanup. Unlike SIGKILL, which bombs the shop and creates orphans.

    [–] SpaceCowboy@lemmy.ca 14 points 2 years ago (3 children)

    Yup. And you can kill processes in Windows to in the task manager. Or probably with a Powershell command too, but nobody's gonna learn Powershell LOL.

    There's nearly always equivalent functions in both Linux and Windows, just in Windows you gotta click around in more bullshit forms and shit to find stuff. Or learn Powershell, but again, LOL. They are both OSes after all, they do similar things. Just one might do them better than the other.

    [–] capital@lemmy.world 8 points 2 years ago (9 children)

    Why u gotta hate on PowerShell like that? I like it. 😭

    [–] stetech@lemmy.world 6 points 2 years ago

    It might be nice and all that (I wouldn’t know), but it’s not a sub- nor superset of glorious POSIX

    [–] MrPommeroy@lemmy.world 6 points 2 years ago (6 children)

    Probably because it's the scripting language equivalent to Clippy. Ref.: Approved "verbs"

    [–] pantyhosewimp@lemmynsfw.com 6 points 2 years ago (4 children)

    Boy oh boy would you hate AppleScript. This is what I have to type to throw files in the trash instead of deleting them.

    tell application ”Finder” to delete POSIX file β€œ/full/fucking/path/to/file”
    
    load more comments (4 replies)
    load more comments (5 replies)
    load more comments (7 replies)
    load more comments (2 replies)
    [–] Thann@lemmy.ml 13 points 2 years ago (3 children)

    And we give steam a fewilliseconds to comply, so IDK what they're complaing about...

    [–] meleethecat@lemmy.world 17 points 2 years ago (1 children)

    Please end your process. You have ten milliseconds to comply.

    [–] TechAnon@lemm.ee 6 points 2 years ago

    Steam is clunky... Exit -> Oh you want to exit? Let me launch a new window letting you know I'm shutting down and take about 20 seconds while I was sitting here idle before you asked to shutdown.

    See you tomorrow where I'll validate your games again. Just in case!

    [–] MonkderDritte@feddit.de 5 points 2 years ago* (last edited 2 years ago)

    ?

    You're supposed to close Steam via menu or systray. If you run it in cli, you see that it cleans then a whole bunch up for a few seconds.

    [–] NeatNit@discuss.tchncs.de 50 points 2 years ago (3 children)

    Windows' might be complex, but it is NOT graceful. If you have notepad open with unsaved text, then shutdown will never shut down - but nothing on the screen will make this obvious to a non-technical person.

    [–] chellomere@lemmy.world 24 points 2 years ago (1 children)

    Unless there are security updates to install, then everything will be mercilessly killed

    load more comments (1 replies)
    load more comments (2 replies)
    [–] Laser@feddit.org 47 points 2 years ago* (last edited 2 years ago) (3 children)

    SIGTERM is a graceful request to the application to terminate itself and despite their names kill and killall default to SIGTERM (also useful to send other signals to processes, like START, STOP and NOHUP).

    kill -9 though...

    [–] RustyNova@lemmy.world 24 points 2 years ago

    "You should terminate yourself, NOW!"

    load more comments (2 replies)
    [–] Ironfacebuster@lemmy.world 37 points 2 years ago (11 children)

    Almost every time I restart my Windows PC from an update, it sits on the "closing apps screen" or "restarting" screen then gives up completely and I have to force it to shut down/restart

    And, just about every other time I restart with an update, it closes apps and then just fully shuts down after the update!

    It's super graceful! 😭

    [–] MonkeMischief@lemmy.today 8 points 2 years ago* (last edited 2 years ago) (2 children)

    EVERY TIME!!

    "A program is preventing Windows from shutting down"

    The program : A generic non-descript white box icon with no title.

    Clicking shutdown/restart anyway becomes standard procedure at this point.

    load more comments (2 replies)
    load more comments (10 replies)
    [–] phoenixz@lemmy.ca 37 points 2 years ago (3 children)

    Linux actually also has a graceful shutdown process. It tells apps its shutting down by sending SIGTERM, and its up to each process to flush data asap, do whatever they gotta do, and then shut down.

    If they don't listen then linux will indeed pull out the ~~baseball bat~~ ~~chainsaw~~ katana and make processes die whether they want to or not.

    load more comments (3 replies)
    [–] BmeBenji@lemm.ee 29 points 2 years ago* (last edited 2 years ago) (2 children)

    The number of times I have had the Windows shutdown process tell me β€œplease close <some windows process that I never opened> before shutting down” is fucking annoying. Wipe your own ass, Windows.

    [–] SkaveRat@discuss.tchncs.de 15 points 2 years ago

    Bonus points if that exact dialogue is the cause. Had that happen more than once. No idea how

    [–] JackbyDev@programming.dev 7 points 2 years ago

    The funniest one is when it tells you this but by the time you get back to close the ones that didn't close they've already closed on their own. Confused Travolta.gif

    [–] jet@hackertalks.com 18 points 2 years ago (9 children)

    Every computer should have a hard cutoff power switch, when thrown it cuts all physical electricity.

    Off means off.

    The current trend of soft power buttons, parasitic loads to service impi, or management engines wol, etc is just bad practice and removes agency from the user.

    Who hasn't wanted to turn off a laptop to put it in a bag only for the shutdown to trigger an update that takes 10m whole your running late, so the laptop overheats. Or worse, the laptop turns on while in the bag!

    The fact windows has a poor ability to apply updates live or In a a/b fashion is no excuse for soft poweroff buttons. Sure it's nice to flush file system write through caches, but Ive been burned by fake power off far more then incomplete file writes.

    [–] Toes@ani.social 7 points 2 years ago

    This is why I'm only interested in laptops with removable batteries but it's become rarer and rarer.

    load more comments (8 replies)

    Meanwhile I click that "shut down anyway" button immediately. Fuck you Outlook.

    [–] nucleative@lemmy.world 15 points 2 years ago (4 children)

    EarlyOOM is your friend. Tweak it to save the most important stuff and kill irrelevant stuff first when low on memory.

    load more comments (4 replies)
    [–] Beaver@lemmy.ca 13 points 2 years ago

    Firefox is becoming the villain.

    [–] dan@upvote.au 11 points 2 years ago (2 children)

    The image fails to load for me.

    [–] ikidd@lemmy.world 20 points 2 years ago

    pkill -9 firefox

    load more comments (1 replies)
    [–] uis@lemm.ee 7 points 2 years ago (1 children)

    echo b > /proc/sysrq-trigger

    [–] jerkface@lemmy.ca 6 points 2 years ago (1 children)

    I'm guessing that simulates alt-sysrq command inputs?

    load more comments (1 replies)
    load more comments
    view more: next β€Ί