1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 21:55:25 +02:00

getfattr, setfattr, sysdig: add page (#13921)

* sysdig

* Add periods and colons

* Modified with recommended changes

* Fix typo

* Attribute

* Made fixes

* Removed spaces

* Newline

* Design changes

* Corrected link and attribute name

---------

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Angad Singh Grover 2024-10-02 21:36:31 +08:00 committed by GitHub
parent e545c7475d
commit 39c7412619
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 61 additions and 0 deletions

12
pages/linux/getfattr.md Normal file
View file

@ -0,0 +1,12 @@
# getfattr
> Display file names and extended attributes.
> More information: <https://manned.org/getfattr>.
- Retrieve all extended attributes of a file and display them in a detailed format:
`getfattr -d {{path/to/file}}`
- Get a specific attribute of a file:
`getfattr -n user.{{attribute_name}} {{path/to/file}}`

16
pages/linux/setfattr.md Normal file
View file

@ -0,0 +1,16 @@
# setfattr
> Set extended file attributes.
> More information: <https://manned.org/setfattr>.
- Set name of attribute for file:
`setfattr -n user.{{attribute_name}} {{path/to/file}}`
- Set a user-defined value of an extended attribute on a file:
`setfattr -n user.{{attribute_name}} -v "{{value}}" {{path/to/file}}`
- Remove a specific attribute of a file:
`setfattr -x user.{{attribute_name}} {{path/to/file}}`

33
pages/linux/sysdig.md Normal file
View file

@ -0,0 +1,33 @@
# sysdig
> System troubleshooting, analysis and exploration.
> Capture, filter and store systemcalls.
> More information: <https://github.com/draios/sysdig/wiki>.
- Capture all the events from the live system and print them to screen:
`sysdig`
- Capture all the events from the live system and save them to disk:
`sysdig -w {{path/to/file}}.scap`
- Read events from a file and print them to screen:
`sysdig -r {{path/to/file}}.scap`
- Filter and Print all the open system calls invoked by cat:
`sysdig proc.name=cat and evt.type=open`
- Register any found plugin and use dummy as input source passing to it open params:
`sysdig -I dummy:'{{parameter}}'`
- List the available chisels:
`sysdig -cl`
- Use the spy_ip chisel to look at the data exchanged with ip address:
`sysdig -c spy_ip {{ip_address}}`