mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-16 12:00:21 +00:00
Update cheatsheets
This commit is contained in:
@@ -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 oile}}" -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 oile}}" -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 oile}}" -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 oile}}" -NewName "{{new_file_name}}" {{[-Confirm|-cf]}}`
|
||||
|
||||
Reference in New Issue
Block a user