Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-19 00:18:33 +00:00
parent a9720510d1
commit ee2fe18e61
8 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Output the byte numbers and values of every difference: - Output the byte numbers and values of every difference:
`cmp {{[-v|--verbose]}} {{path/to/file1}} {{path/to/file2}}` `cmp {{[-l|--verbose]}} {{path/to/file1}} {{path/to/file2}}`
- Compare files but output nothing, yield only the exit status: - Compare files but output nothing, yield only the exit status:

View File

@@ -32,4 +32,4 @@ bar,foo
`printf "header1 `printf "header1
bar bar
foobar foobar
" | column {{[-c|{{[-c|--output-width]}}]}} {{30}} {{[-x|--fillrows]}}` " | column {{[-c|--output-width]}} {{30}} {{[-x|--fillrows]}}`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Open the man page for a command in a browser (`BROWSER` environment variable can replace `=browser_name`): - Open the man page for a command in a browser (`BROWSER` environment variable can replace `=browser_name`):
`man {{[-H|--html=]}}{{browser_name}} {{command}}` `man {{[-Hbrowser_name|--html=browser_name]}} {{command}}`
- Display the man page for a command from section 7: - Display the man page for a command from section 7:

View File

@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
`shutdown -h 13:00` `shutdown -h 13:00`
- [c]ancel a pending shutdown/reboot operation: - Cancel a pending shutdown/reboot operation:
`shutdown -c` `shutdown -c`

View File

@@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git
> Troubleshooting tool for tracing system calls. > Troubleshooting tool for tracing system calls.
> More information: <https://manned.org/strace>. > More information: <https://manned.org/strace>.
- Start tracing a specific [p]rocess by its PID: - Start tracing a specific process by its PID:
`strace {{[-p|--attach]}} {{pid}}` `strace {{[-p|--attach]}} {{pid}}`
- Trace a [p]rocess and filter output by system call [e]xpression: - Trace a process and filter output by system call [e]xpression:
`strace {{[-p|--attach]}} {{pid}} -e {{system_call,system_call2,...}}` `strace {{[-p|--attach]}} {{pid}} -e {{system_call,system_call2,...}}`

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- List all processes of the current user as a tree: - List all processes of the current user as a tree:
`ps {{[-u|--user]}} $(id {{[-u|--user]}}) {{[f|--forest]}}` `ps {{[-u|--user]}} $(id {{[-u|--user]}}) f`
- Get the parent PID of a process: - Get the parent PID of a process:

View File

@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
- Keep reading file until `<Ctrl c>`, even if the file is inaccessible: - Keep reading file until `<Ctrl c>`, even if the file is inaccessible:
`tail --retry {{[-f|--follow]}} {{path/to/file}}` `tail {{[-F|--retry --follow]}} {{path/to/file}}`
- Show last 'num' lines in 'file' and refresh every 'n' seconds: - Show last 'num' lines in 'file' and refresh every 'n' seconds:

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Capture the traffic from a specific interface, source, destination and destination port: - Capture the traffic from a specific interface, source, destination and destination port:
`tcpdump {{[-i|--interface]} {{eth0}} src {{192.168.1.1}} and dst {{192.168.1.2}} and dst port {{80}}` `sudo tcpdump {{[-i|--interface]} {{eth0}} src {{192.168.1.1}} and dst {{192.168.1.2}} and dst port {{80}}`
- Capture the traffic of a network: - Capture the traffic of a network: