Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-09 00:22:15 +00:00
parent 4c849cfc8a
commit ffe393201e
18 changed files with 43 additions and 40 deletions

View File

@@ -11,20 +11,21 @@ source: https://github.com/tldr-pages/tldr.git
- Rename a file:
`Rename-Item -Path "{{path/to/file}}" -NewName "{{new_file_name}}"`
`Rename-Item -Path "{{path o ile}}" -NewName "{{new_file_name}}"`
- Rename a directory:
`Rename-Item -Path "{{path/to/directory}}" -NewName "{{new_directory_name}}"`
`Rename-Item -Path "{{path o\directory}}" -NewName "{{new_directory_name}}"`
- Rename and move a file:
`Rename-Item -Path "{{path/to/file}}" -NewName "{{path/to/new_file_name}}"`
`Rename-Item -Path "{{path o ile}}" -NewName "{{path o
ew_file_name}}"`
- Rename a file by force:
`Rename-Item -Path "{{path/to/file}}" -NewName "{{new_file_name}}" -Force`
`Rename-Item -Path "{{path o ile}}" -NewName "{{new_file_name}}" -Force`
- Prompt confirmation before renaming a file:
`Rename-Item -Path "{{path/to/file}}" -NewName "{{new_file_name}}" {{[-Confirm|-cf]}}`
`Rename-Item -Path "{{path o ile}}" -NewName "{{new_file_name}}" {{[-Confirm|-cf]}}`