mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 17:56:58 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
34
tldr/windows/move
Normal file
34
tldr/windows/move
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# move
|
||||
|
||||
> Move or rename files and directories.
|
||||
> In PowerShell, this command is an alias of `Move-Item`. This documentation is based on the Command Prompt (`cmd`) version of `move`.
|
||||
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/move>.
|
||||
|
||||
- View documentation of the equivalent PowerShell command:
|
||||
|
||||
`tldr move-item`
|
||||
|
||||
- Rename a file or directory when the target is not an existing directory:
|
||||
|
||||
`move {{path o\source}} {{path o arget}}`
|
||||
|
||||
- Move a file or directory into an existing directory:
|
||||
|
||||
`move {{path o\source}} {{path oxisting_directory}}`
|
||||
|
||||
- Move a file or directory across drives:
|
||||
|
||||
`move {{C:\path o\source}} {{D:\path o arget}}`
|
||||
|
||||
- Do not prompt for confirmation before overwriting existing files:
|
||||
|
||||
`move /Y {{path o\source}} {{path oxisting_directory}}`
|
||||
|
||||
- Prompt for confirmation before overwriting existing files, regardless of file permissions:
|
||||
|
||||
`move /-Y {{path o\source}} {{path oxisting_directory}}`
|
||||
Reference in New Issue
Block a user