mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 03:48:40 +00:00
Update cheatsheets
This commit is contained in:
@@ -11,16 +11,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set the max number of counts before a filesystem is checked to 2:
|
||||
|
||||
`tune2fs -c 2 {{/dev/sdXN}}`
|
||||
`sudo tune2fs -c 2 {{/dev/sdXN}}`
|
||||
|
||||
- Set the filesystem label to MY_LABEL:
|
||||
|
||||
`tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
|
||||
`sudo tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
|
||||
|
||||
- Enable discard and user-specified extended attributes for a filesystem:
|
||||
|
||||
`tune2fs -o {{discard,user_xattr}} {{/dev/sdXN}}`
|
||||
`sudo tune2fs -o discard,user_xattr {{/dev/sdXN}}`
|
||||
|
||||
- Enable journaling for a filesystem:
|
||||
|
||||
`tune2fs -o ^{{nobarrier}} {{/dev/sdXN}}`
|
||||
`sudo tune2fs -o has_journal {{/dev/sdXN}}`
|
||||
|
||||
- Assign a new randomly-generated UUID to a filesystem:
|
||||
|
||||
`sudo tune2fs -U random {{/dev/sdXN}}`
|
||||
|
||||
Reference in New Issue
Block a user