powershell, pwsh, windows/*: fix PowerShell conventions (#11465)

This commit is contained in:
Reinhart Previano Koentjoro
2023-11-12 16:46:05 +07:00
committed by GitHub
parent 1027451fe5
commit 159626c127
37 changed files with 166 additions and 119 deletions

View File

@@ -6,24 +6,24 @@
- Verwijder specifieke bestanden of registersleutels (zonder subkeys):
`Remove-Item {{pad\naar\bestand_of_key1 pad\naar\bestand_of_key2 ...}}`
`Remove-Item {{pad\naar\bestand_of_key1 , pad\naar\bestand_of_key2 ...}}`
- Verwijder verborgen of alleen-lezen bestanden:
`Remove-Item -Force {{pad\naar\bestand1 pad\naar\bestand2 ...}}`
`Remove-Item -Force {{pad\naar\bestand1 , pad\naar\bestand2 ...}}`
- Verwijder specifieke bestanden of registersleutels interactief gevraagd vóór elke verwijdering:
`Remove-Item -Confirm {{pad\naar\bestand_of_key1 pad\naar\bestand_of_key2 ...}}`
`Remove-Item -Confirm {{pad\naar\bestand_of_key1 , pad\naar\bestand_of_key2 ...}}`
- Verwijder specifieke bestanden en mappen recursief (Windows 10 versie 1909 of hoger):
`Remove-Item -Recurse {{pad\naar\bestand_of_map1 pad\naar\bestand_of_map2 ...}}`
`Remove-Item -Recurse {{pad\naar\bestand_of_map1 , pad\naar\bestand_of_map2 ...}}`
- Verwijder specifieke Windows-registersleutels en al zijn subkeys:
`Remove-Item -Recurse {{pad\naar\key1 pad\naar\key2 ...}}`
`Remove-Item -Recurse {{pad\naar\key1 , pad\naar\key2 ...}}`
- Voer een dry-run van het verwijderproces uit:
`Remove-Item -WhatIf {{pad\naar\bestand1 pad\naar\bestand2 ...}}`
`Remove-Item -WhatIf {{pad\naar\bestand1 , pad\naar\bestand2 ...}}`

View File

@@ -1,8 +1,8 @@
# sls
> Dit commando is een alias van `where-object`.
> Dit commando is een alias van `Select-String`.
> Meer informatie: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-string>.
- Bekijk de documentatie van het originele commando:
`tldr where-object`
`tldr select-string`