Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-15 00:19:37 +00:00
parent 220486abce
commit d5421f7c01
42 changed files with 459 additions and 43 deletions

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- View documentation for the original `curl` command:
`tldr curl -p common`
`tldr curl {{[-p|--platform]}} common`
- View documentation for PowerShell's `Invoke-WebRequest` command:

41
tldr/windows/powercfg Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# powercfg
> Configure power settings and manage power schemes.
> More information: <https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options>.
- Display the current power scheme:
`powercfg /getactivescheme`
- List all available power schemes:
`powercfg {{[/L|/list]}}`
- Set the active power scheme by its GUID:
`powercfg /setactive {{GUID}}`
- Turn off the display after a specific number of minutes on AC power:
`powercfg {{[/X|/change]}} monitor-timeout-ac {{minutes}}`
- Turn off the display after a specific number of minutes on battery power:
`powercfg {{[/X|/change]}} monitor-timeout-dc {{minutes}}`
- Put the system to sleep after a specific number of minutes on AC power:
`powercfg {{[/X|/change]}} standby-timeout-ac {{minutes}}`
- Generate a system sleep diagnostics report and save it to a file:
`powercfg /sleepstudy /output {{path o
eport.html}}`
- Generate a full power efficiency report and save it to a file:

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- View documentation for the original `wget` command:
`tldr wget -p common`
`tldr wget {{[-p|--platform]}} common`
- View documentation for PowerShell's `Invoke-WebRequest` command: