mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 19:58:45 +00:00
Update cheatsheets
This commit is contained in:
42
tldr/windows/clear-history
Normal file
42
tldr/windows/clear-history
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# Clear-History
|
||||
|
||||
> A powershell command to clear the entries in the current session.
|
||||
> Note: `clhy` can be used as an alias for `Clear-History`.
|
||||
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/clear-history>.
|
||||
|
||||
- Clear all command history from current session:
|
||||
|
||||
`Clear-History`
|
||||
|
||||
- Clear command by specific name:
|
||||
|
||||
`Clear-History -CommandLine "{{command}}"`
|
||||
|
||||
- Clear multiple commands by name:
|
||||
|
||||
`Clear-History -CommandLine "{{command_1}}", "{{command_2}}"`
|
||||
|
||||
- Clear a specific history entry by ID:
|
||||
|
||||
`Clear-History -Id {{id_number}}`
|
||||
|
||||
- Clear multiple IDs:
|
||||
|
||||
`Clear-History -Id {{id_1}}, {{id_2}}, {{id_3}}`
|
||||
|
||||
- Clear commands within a range of IDs:
|
||||
|
||||
`Clear-History -Id ({{start_id}}..{{end_id}})`
|
||||
|
||||
- Show what would be deleted:
|
||||
|
||||
`Clear-History -WhatIf`
|
||||
|
||||
- Ask for confirmation before clearing:
|
||||
|
||||
`Clear-History -Confirm`
|
||||
12
tldr/windows/clhy
Normal file
12
tldr/windows/clhy
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# clhy
|
||||
|
||||
> This command is an alias of `Clear-History`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr Clear-History`
|
||||
38
tldr/windows/netsh
Normal file
38
tldr/windows/netsh
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# netsh
|
||||
|
||||
> Manage Windows network settings.
|
||||
> Some subcommands such as `wlan` have their own usage documentation.
|
||||
> More information: <https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netsh>.
|
||||
|
||||
- Add a helper Dynamic Link Library (DLL):
|
||||
|
||||
`netsh add helper {{path oile.dll}}`
|
||||
|
||||
- Show all loaded helper DLLs:
|
||||
|
||||
`netsh show helper`
|
||||
|
||||
- Delete a helper DLL:
|
||||
|
||||
`netsh delete helper {{path oile.dll}}`
|
||||
|
||||
- Export your network configuration settings to a file:
|
||||
|
||||
`netsh dump > {{path o\output_file.txt}}`
|
||||
|
||||
- Show available network interfaces for tracing:
|
||||
|
||||
`netsh trace show interfaces`
|
||||
|
||||
- Exit the shell:
|
||||
|
||||
`exit`
|
||||
|
||||
- Display help:
|
||||
|
||||
`netsh help`
|
||||
12
tldr/windows/ren
Normal file
12
tldr/windows/ren
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ren
|
||||
|
||||
> This command is an alias of `Rename-Item`.
|
||||
|
||||
- View documentation for original command:
|
||||
|
||||
`tldr Rename-Item`
|
||||
30
tldr/windows/rename-item
Normal file
30
tldr/windows/rename-item
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# Rename-Item
|
||||
|
||||
> Powershell command to rename an item.
|
||||
> Note: `ren` and `rni` can both be used as an alias for `Rename-Item`.
|
||||
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/rename-item>.
|
||||
|
||||
- Rename a file:
|
||||
|
||||
`Rename-Item -Path "{{path/to/file}}" -NewName "{{new_file_name}}"`
|
||||
|
||||
- Rename a directory:
|
||||
|
||||
`Rename-Item -Path "{{path/to/directory}}" -NewName "{{new_directory_name}}"`
|
||||
|
||||
- Rename and move a file:
|
||||
|
||||
`Rename-Item -Path "{{path/to/file}}" -NewName "{{path/to/new_file_name}}"`
|
||||
|
||||
- Rename a file by force:
|
||||
|
||||
`Rename-Item -Path "{{path/to/file}}" -NewName "{{new_file_name}}" -Force`
|
||||
|
||||
- Prompt confirmation before renaming a file:
|
||||
|
||||
`Rename-Item -Path "{{path/to/file}}" -NewName "{{new_file_name}}" {{[-Confirm|-cf]}}`
|
||||
12
tldr/windows/rni
Normal file
12
tldr/windows/rni
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rni
|
||||
|
||||
> This command is an alias of `Rename-Item`.
|
||||
|
||||
- View documentation for original command:
|
||||
|
||||
`tldr Rename-Item`
|
||||
Reference in New Issue
Block a user