mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-21 00:38:17 +03:00
takeown: add page (#3252)
This commit is contained in:
parent
d9e1d592e5
commit
69b65ed360
20
pages/windows/takeown.md
Normal file
20
pages/windows/takeown.md
Normal file
@ -0,0 +1,20 @@
|
||||
# takeown
|
||||
|
||||
> Take ownership of a file or directory.
|
||||
> More information: <https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/takeown>.
|
||||
|
||||
- Take ownership of the specified file:
|
||||
|
||||
`takeown /f {{path/to/file}}`
|
||||
|
||||
- Take ownership of the specified directory:
|
||||
|
||||
`takeown /d {{path/to/directory}}`
|
||||
|
||||
- Take ownership of the specified directory and all subdirectories:
|
||||
|
||||
`takeown /r /d {{path/to/directory}}`
|
||||
|
||||
- Change ownership to the Administrator group instead of the current user:
|
||||
|
||||
`takeown /a /f {{path/to/file}}`
|
Loading…
Reference in New Issue
Block a user