423
submitted 1 week ago by azha@lemm.ee to c/linuxmemes@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] kewko@sh.itjust.works 0 points 1 week ago

If -t is specified -f is assumed and redundant, but also it will try to do graceful l, but with a patience of a cranky toddler

[-] aeiou_ckr@lemmy.world 6 points 1 week ago

Not really. If -f (force) is removed windows will shutdown similar to pressing the shutdown button and will wait for your input regarding open programs. -f is needed to just just “do it” with no hesitation or response from the user.

[-] kewko@sh.itjust.works 1 points 1 week ago* (last edited 1 week ago)

Straight from the doc

/t Sets the time-out period before shutdown to xxx seconds. The valid range is 0-315360000 (10 years), with a default of 30. If the timeout period is greater than 0, the /f parameter is implied.

[-] Lupus@feddit.org 7 points 1 week ago

Sooo when you use the prompt

Shutdown.exe -r -t 00

You would need the -f since we defined the timeout period as 0. Because:

If the timeout period is greater than 0, the /f parameter is implied.

[-] kewko@sh.itjust.works 1 points 1 week ago

Yeah fair enough -f -s does the same thing as -t 0?

[-] criticon@lemmy.ca 1 points 1 week ago

I don't trust windows enough, I always input both parameters

[-] aeiou_ckr@lemmy.world 1 points 1 week ago

Ah nice. I have only used it with -t 0. I’m glad to have learn something today.

this post was submitted on 19 Apr 2025
423 points (92.0% liked)

linuxmemes

24739 readers
827 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.
  • 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