In windows open command prompt type
shutdown /f /s /t 0
Better yet, put this in a batch file set to run at start up. On your friends PC of course
Translation:
“Shutdown. Fucking shutdown, trash!”
Haha. Popos gnome doesn’t have this. You get a pop up and says 60s count down. Wish I knew what command that is. I usually have hotkey ‘poweroff’ and that ista kills everything and shuts down lol
The command
shutdown
defaults to 60s, but doesn’t throw the popup.shutdown +60
will give you 60min instead (and +30 is 30min, etc),shutdown -c
to cancel, andshutdown --show
will show if one is scheduledshutdown -h
I believe is the “do it now” option but I always just give it the minute.shutdown -h now
-h
stands for haltnow
can be set to any amount of time you want.Ah thanks! Like I said I always just give it the 60s (or +X), so I was less familiar with the
now
bit.
Meanwhile I click that “shut down anyway” button immediately. Fuck you Outlook.
EarlyOOM is your friend. Tweak it to save the most important stuff and kill irrelevant stuff first when low on memory.
Why can’t browsers discard tabs to disk instead of this ridiculous assumption that the server will still exist to redownload the tab content rom.
Autodiscard. Its a plugin i use that helps most of the time.
Well… though there are reasons to save pages to disk, the server being still up is a fair assumption, really.
Firefox is becoming the villain.
Alt+print screen+i 😎
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 batchainsawkatana and make processes die whether they want to or not.But for some reason Firefox doesn’t do this properly, so it offers to or just outright restores all my pages on startup. I’ve never been able to make it stop doing that.
Have you tried this:
The image fails to load for me.
pkill -9 firefox
LOL, it finally loaded for me after few moments
SIGTERM is the graceful way tho? It nicely asks programs to please close and cleanup. Unlike SIGKILL, which bombs the shop and creates orphans.
And we give steam a fewilliseconds to comply, so IDK what they’re complaing about…
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!
?
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.
Please end your process. You have ten milliseconds to comply.
deleted by creator
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.
I use powershell quite a bit at work and I really like it.
If anything it’s much easier to read than the abomination called bash.
Why u gotta hate on PowerShell like that? I like it. 😭
Probably because it’s the scripting language equivalent to Clippy. Ref.: Approved “verbs”
You don’t have to follow best practices though. You can name shit pretty much whatever you want.
No, but if you don’t the UI will nag at you just like Clippy did, which is my point.
I really appreciate the consistency. People also dog it for being verbose to write but it makes it so much more legible.
/shrug
I usually write verbose code and use self-documenting function names, but to have such a limited set of verbs available can be frustrating. They could at least have used a proper dictionary and included all verbs. Then have a map of synonyms that are preferred, like instead of ‘create’ they prefer ‘new’ (which isn’t even a verb).
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”
Why do you need to “tell” some “application”? Why do you need a “finder” if you know the absolute path already? Does this imply that “finder” always runs, ready to be told something?
Finder is macOS equivalent of Windows Explorer (maybe, it’s been a while). I assume Linux desktop suites have various similar processes. In other words, a second optional layer (with more features) to access runtime libc file manipulation api.
Explorers in Linux don’t work like this. They are just some app you can move your files with.
Your opinion is wrong, Powershell must be banished
Bash already existed
I find objects much easier to work with rather than a bunch of string manipulation.
Just think of strings as the objects.
/waves magic wand
It might be nice and all that (I wouldn’t know), but it’s not a sub- nor superset of glorious POSIX
It’s one of those things wher eI’m sure it’s fine if you learn it. But it’s not DOS CMD, but also not bash.
So instead of improving CMD to have more features or just going all the way and offering an official bash implementation, they want me to learn a third thing. Just don’t have time for it.
It’s second to none if you have to get things done in a Windows environment, especially if dealing with Active Directory.
But if not, I don’t blame you for not picking it up. Right tool for the job and all that.
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! 😭
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.When I first saw that I was like “great, I have a virus”
Nope, just Windows
Windows is preventing Windows from shutting down
“restarting” for 15 minutes. Then crashes. Now I have to reinstall updates and go through it all over again. I hate how crappy the windows update process has become.
Except for the immutable versions I have, Linux almost never needs to reboot after an update. Upgrades, yes, but not standard updates. And even after upgrades, it just works [(except for one of the immutable versions I have)].
I usually close all programs before shutting down / rebooting, anyway (a habit I picked up from Win95 days, where it would crash if programs prevented it from shutting down), so I don’t really feel this SIGKILL issues.
Linux almost never needs to reboot after an update
Doesn’t it often need a reboot to apply some updates?
I rember reading something along those lines then I was researching why Fedora installs some updates after a reboot. Most
Fedora is the immutable I was referring to that does need to reboot. Linux Mint and OpenSuse only need to reboot after an upgrade. I’ve never had to reboot them after updates. Mileage may vary, of course, as different people have different software, tools, and libraries installed.
to be fair, fedora downloads and apply the update before reboot, windows download, apply and then reboot, that’s why it take so much time
I was talking about regular fedora. It’s not that you have to reboot, but you don’t get to use those updates until you do. The most obvious example is updating the kernel and its modules.
You’re correct. A kernel update would fall under the umbrella of a system upgrade, where the system needs to shut down to allow underlying components to be reloaded.
As Microsoft adds ads in more places more and more, I consider moving over to Linux but I just have too many files and weird Windows only programs that I use that I can’t
I also haven’t really found a desktop environment I really like yet, so I’m open to suggestions for dual booting!
I pretty much always recommend Linux Mint Cinnamon for anyone entering Linux for the first time or anyone who wants something to just work 98% of the time. I use Mint Debian Edition (testing it out. So far, so good, and it’s quickly entering first place in terms of recommendations, as it seems just as stable and uses Debian packages instead of Ubuntu’s), OpenSuse with KDE (less for beginner’s and more for those who want “eye candy” and some nostalgia), and Fedora Silverblue (currently have an update issue with its certificates, so can’t really recommend it yet). I’ve found very few Windows programs to not work within WINE (more complex, system file dependent programs generally are those that fail), so you may find that all of your Windows-only programs work perfectly fine under WINE.
With Mint (and others, I’m sure), you can install multiple DEs and test them out, then remove those you don’t like. Or keep them all and play DE roulette I guess lol
I’ll definitely check some of those out, thanks! I have a little experience with Linux since every self hosted server PC I’ve built has always had Ubuntu Server, but even then I was tempted to try and dual boot Mint
I was doing my project while system updated itself from sources. Шindows should take notes here.
And I’m not even talking about CRIU, where you can save entire progtam state on disk, reboot and restore it back in the state before reboot.
echo b > /proc/sysrq-trigger
I’m guessing that simulates alt-sysrq command inputs?
No Mercy
Where do you go, my lovely?
Meanwhile Windows regularly gets hung up for several minutes on the “shutting down…” screen for no fucking reason. Only happens when I’m in a hurry too.
i love it when the “this program is keeping the computer from shutting down” program is the shutting down program
In theory it is a good thing because it’s usually programs with unsaved stuff.
Then randomly reboots anyway even though you said don’t install updates and reboot.
That should be a child.