Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
linux/debugfs Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# debugfs
> An interactive ext2/ext3/ext4 filesystem debugger.
> More information: <https://manned.org/debugfs>.
- Open the filesystem in read only mode:
`debugfs {{/dev/sdXN}}`
- Open the filesystem in read write mode:
`debugfs -w {{/dev/sdXN}}`
- Read commands from a specified file, execute them and then exit:
`debugfs -f {{path/to/cmd_file}} {{/dev/sdXN}}`
- View the filesystem stats in debugfs console:
`stats`
- Close the filesystem:
`close -a`
- List all available commands:
`lr`