mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-09 17:46:33 +00:00
Update cheatsheets
This commit is contained in:
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Decompress a `gzip` archive specifying the output filename:
|
||||
|
||||
`gzip {{[-c|--stdout]}} {{[-d|--decompress]}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}`
|
||||
`gzip {{[-cd|--stdout --decompress]}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}`
|
||||
|
||||
- Specify the compression level. 1 is the fastest (low compression), 9 is the slowest (high compression), 6 is the default:
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display the name and reduction percentage for each file compressed or decompressed:
|
||||
|
||||
`gzip {{[-v|--verbose]}} {{[-d|--decompress]}} {{path/to/file.gz}}`
|
||||
`gzip {{[-vd|--verbose --decompress]}} {{path/to/file.gz}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Modify default ACL of a file for all users:
|
||||
|
||||
`setfacl {{[-m|--modify]}} {{[-d|--default]}} u::rw {{path/to/file_or_directory}}`
|
||||
`setfacl {{[-d|--default]}} {{[-m|--modify]}} u::rw {{path/to/file_or_directory}}`
|
||||
|
||||
- Remove ACL of a file for a user:
|
||||
|
||||
|
||||
4
tldr/man
4
tldr/man
@@ -14,11 +14,11 @@ 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 {{[-Hbrowser_name|--html=browser_name]}} {{command}}`
|
||||
`man {{[-H|--html=]}}{{browser_name}} {{command}}`
|
||||
|
||||
- Display the man page for a command from section 7:
|
||||
|
||||
`man {{7}} {{command}}`
|
||||
`man 7 {{command}}`
|
||||
|
||||
- List all available sections for a command:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sudo
|
||||
|
||||
> Executes a single command as the superuser or another user.
|
||||
> Execute a single command as the superuser or another user.
|
||||
> More information: <https://www.sudo.ws/sudo.html>.
|
||||
|
||||
- Run a command as the superuser:
|
||||
|
||||
Reference in New Issue
Block a user