From ee2fe18e610c1ea2d421e13e59b744854c733e95 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 19 Mar 2025 00:18:33 +0000 Subject: [PATCH] Update cheatsheets --- tldr/cmp | 2 +- tldr/column | 2 +- tldr/linux/man | 2 +- tldr/linux/shutdown | 2 +- tldr/linux/strace | 4 ++-- tldr/ps | 2 +- tldr/tail | 2 +- tldr/tcpdump | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tldr/cmp b/tldr/cmp index ee0b4ad6..8b24a223 100644 --- a/tldr/cmp +++ b/tldr/cmp @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - 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: diff --git a/tldr/column b/tldr/column index 3bfa0aad..893a9432 100644 --- a/tldr/column +++ b/tldr/column @@ -32,4 +32,4 @@ bar,foo `printf "header1 bar foobar -" | column {{[-c|{{[-c|--output-width]}}]}} {{30}} {{[-x|--fillrows]}}` +" | column {{[-c|--output-width]}} {{30}} {{[-x|--fillrows]}}` diff --git a/tldr/linux/man b/tldr/linux/man index a994f3c3..7a75cc00 100644 --- a/tldr/linux/man +++ b/tldr/linux/man @@ -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`): -`man {{[-H|--html=]}}{{browser_name}} {{command}}` +`man {{[-Hbrowser_name|--html=browser_name]}} {{command}}` - Display the man page for a command from section 7: diff --git a/tldr/linux/shutdown b/tldr/linux/shutdown index c2378405..1bfe166a 100644 --- a/tldr/linux/shutdown +++ b/tldr/linux/shutdown @@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git `shutdown -h 13:00` -- [c]ancel a pending shutdown/reboot operation: +- Cancel a pending shutdown/reboot operation: `shutdown -c` diff --git a/tldr/linux/strace b/tldr/linux/strace index af622303..e8bf91b0 100644 --- a/tldr/linux/strace +++ b/tldr/linux/strace @@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git > Troubleshooting tool for tracing system calls. > More information: . -- Start tracing a specific [p]rocess by its PID: +- Start tracing a specific process by its 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,...}}` diff --git a/tldr/ps b/tldr/ps index 5e7ceded..52aaabd7 100644 --- a/tldr/ps +++ b/tldr/ps @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - 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: diff --git a/tldr/tail b/tldr/tail index 31e4e773..c1cdd50d 100644 --- a/tldr/tail +++ b/tldr/tail @@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Keep reading file until ``, 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: diff --git a/tldr/tcpdump b/tldr/tcpdump index 36e6a909..ddfa44e6 100644 --- a/tldr/tcpdump +++ b/tldr/tcpdump @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - 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: