mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 07:00:35 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
33
tldr/windows/attrib
Normal file
33
tldr/windows/attrib
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# attrib
|
||||
|
||||
> Display or change attributes of files or directories.
|
||||
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/attrib>.
|
||||
|
||||
- Display all set attributes of files in the current directory:
|
||||
|
||||
`attrib`
|
||||
|
||||
- Display all set attributes of files in a specific directory:
|
||||
|
||||
`attrib {{path o\directory}}`
|
||||
|
||||
- Display all set attributes of files and [d]irectories in the current directory:
|
||||
|
||||
`attrib /d`
|
||||
|
||||
- Display all set attributes of files in the current directory and [s]ub-directories:
|
||||
|
||||
`attrib /s`
|
||||
|
||||
- Add the `[r]ead-only` or `[a]rchive` or `[s]ystem` or `[h]idden` or `not content [i]ndexed` attribute to files or directories:
|
||||
|
||||
`attrib +{{r|a|s|h|i}} {{path oile_or_directory1 path oile_or_directory2 ...}}`
|
||||
|
||||
- Remove a specific attribute of files or directories:
|
||||
|
||||
`attrib -{{r|a|s|h|i}} {{path oile_or_directory1 path oile_or_directory2 ...}}`
|
||||
Reference in New Issue
Block a user