mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 04:43:49 +00:00
Update cheatsheets
This commit is contained in:
2
tldr/ack
2
tldr/ack
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ack {{[-i|--ignore-case]}} "{{search_pattern}}"`
|
||||
|
||||
- Search for lines matching a pattern, printing [o]nly the matched text and not the rest of the line:
|
||||
- Search for lines matching a pattern, printing only the matched text and not the rest of the line:
|
||||
|
||||
`ack {{[-o|--output='$&']}} "{{search_pattern}}"`
|
||||
|
||||
|
||||
12
tldr/ag
12
tldr/ag
@@ -10,23 +10,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Find files containing "foo", and print the line matches in context:
|
||||
|
||||
`ag {{foo}}`
|
||||
`ag foo`
|
||||
|
||||
- Find files containing "foo" in a specific directory:
|
||||
|
||||
`ag {{foo}} {{path/to/directory}}`
|
||||
`ag foo {{path/to/directory}}`
|
||||
|
||||
- Find files containing "foo", but only list the filenames:
|
||||
|
||||
`ag {{[-l|--files-with-matches]}} {{foo}}`
|
||||
`ag {{[-l|--files-with-matches]}} foo`
|
||||
|
||||
- Find files containing "FOO" case-insensitively, and print only the match, rather than the whole line:
|
||||
|
||||
`ag {{[-i|--ignore-case]}} {{[-o|--only-matching]}} {{FOO}}`
|
||||
`ag {{[-i|--ignore-case]}} {{[-o|--only-matching]}} FOO`
|
||||
|
||||
- Find "foo" in files with a name matching "bar":
|
||||
|
||||
`ag {{foo}} {{[-G|--file-search-regex]}} {{bar}}`
|
||||
`ag foo {{[-G|--file-search-regex]}} bar`
|
||||
|
||||
- Find files whose contents match a regular expression:
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Find files with a name matching "foo":
|
||||
|
||||
`ag {{[-g|--filename-pattern]}} {{foo}}`
|
||||
`ag {{[-g|--filename-pattern]}} foo`
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ani-cli "{{anime_name}}"`
|
||||
|
||||
- Download episode:
|
||||
- Download an episode:
|
||||
|
||||
`ani-cli {{[-d|--download]}} "{{anime_name}}"`
|
||||
|
||||
|
||||
@@ -13,11 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`asciinema auth`
|
||||
|
||||
- Make a new recording (finish it with `<Ctrl d>` or type `exit`):
|
||||
|
||||
`asciinema rec {{path/to/file.cast}}`
|
||||
|
||||
- Make a new recording and save it to a local file:
|
||||
- Make a new recording and save it to a local file (finish it with `<Ctrl d>` or type `exit`):
|
||||
|
||||
`asciinema rec {{path/to/recording.cast}}`
|
||||
|
||||
|
||||
@@ -27,4 +27,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show the entries in the autojump database:
|
||||
|
||||
`j -s`
|
||||
`j {{[-s|--stat]}}`
|
||||
|
||||
@@ -8,6 +8,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Save and jump to commonly used directories using 1 character commands.
|
||||
> More information: <https://github.com/huyng/bashmarks>.
|
||||
|
||||
- Add the bashmark aliases to your shell:
|
||||
|
||||
`source /usr/share/bashmarks/bashmarks.sh`
|
||||
|
||||
- List available bookmarks:
|
||||
|
||||
`l`
|
||||
|
||||
12
tldr/buku
12
tldr/buku
@@ -6,24 +6,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# buku
|
||||
|
||||
> Command-line browser-independent bookmark manager.
|
||||
> More information: <https://github.com/jarun/Buku>.
|
||||
> More information: <https://github.com/jarun/Buku?tab=readme-ov-file#usage>.
|
||||
|
||||
- Display all bookmarks matching "keyword" and with "privacy" tag:
|
||||
|
||||
`buku {{keyword}} --stag {{privacy}}`
|
||||
`buku {{keyword}} {{[-t|--stag]}} {{privacy}}`
|
||||
|
||||
- Add bookmark with tags "search engine" and "privacy":
|
||||
|
||||
`buku --add {{https://example.com}} {{search engine}}, {{privacy}}`
|
||||
`buku {{[-a|--add]}} {{https://example.com}} {{search engine}}, {{privacy}}`
|
||||
|
||||
- Delete a bookmark:
|
||||
|
||||
`buku --delete {{bookmark_id}}`
|
||||
`buku {{[-d|--delete]}} {{bookmark_id}}`
|
||||
|
||||
- Open editor to edit a bookmark:
|
||||
|
||||
`buku --write {{bookmark_id}}`
|
||||
`buku {{[-w|--write]}} {{bookmark_id}}`
|
||||
|
||||
- Remove "search engine" tag from a bookmark:
|
||||
|
||||
`buku --update {{bookmark_id}} --tag {{-}} {{search engine}}`
|
||||
`buku {{[-u|--update]}} {{bookmark_id}} --tag - {{search engine}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# cronic
|
||||
|
||||
> Bash script for wrapping cron jobs to prevent excess email sending.
|
||||
> More information: <https://habilis.net/cronic/>.
|
||||
> More information: <https://manned.org/cronic>.
|
||||
|
||||
- Call a command and display its output if it returns a non-zero exit code:
|
||||
|
||||
|
||||
10
tldr/csvtool
10
tldr/csvtool
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Extract the second column from a CSV file:
|
||||
|
||||
`csvtool --column {{2}} {{path/to/file.csv}}`
|
||||
`csvtool {{[-c|--column]}} {{2}} {{path/to/file.csv}}`
|
||||
|
||||
- Extract the second and fourth columns from a CSV file:
|
||||
|
||||
`csvtool --column {{2,4}} {{path/to/file.csv}}`
|
||||
`csvtool {{[-c|--column]}} {{2,4}} {{path/to/file.csv}}`
|
||||
|
||||
- Extract lines from a CSV file where the second column exactly matches 'Foo':
|
||||
|
||||
`csvtool --column {{2}} --search '{{^Foo$}}' {{path/to/file.csv}}`
|
||||
`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{^Foo$}}' {{path/to/file.csv}}`
|
||||
|
||||
- Extract lines from a CSV file where the second column starts with 'Bar':
|
||||
|
||||
`csvtool --column {{2}} --search '{{^Bar}}' {{path/to/file.csv}}`
|
||||
`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{^Bar}}' {{path/to/file.csv}}`
|
||||
|
||||
- Find lines in a CSV file where the second column ends with 'Baz' and then extract the third and sixth columns:
|
||||
|
||||
`csvtool --column {{2}} --search '{{Baz$}}' {{path/to/file.csv}} | csvtool --no-header --column {{3,6}}`
|
||||
`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{Baz$}}' {{path/to/file.csv}} | csvtool {{[-e|--no-header]}} {{[-c|--column]}} {{3,6}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# darkhttpd
|
||||
|
||||
> Darkhttpd web server.
|
||||
> More information: <https://unix4lyfe.org/darkhttpd>.
|
||||
> More information: <https://github.com/emikulic/darkhttpd#how-to-run-darkhttpd>.
|
||||
|
||||
- Start server serving the specified document root:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# deluge-console
|
||||
|
||||
> An interactive interface for the Deluge BitTorrent client.
|
||||
> More information: <https://deluge-torrent.org>.
|
||||
> More information: <https://deluge-torrent.org/userguide/thinclient/>.
|
||||
|
||||
- Start the interactive console interface:
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Flood the network with IP requests:
|
||||
|
||||
`dhcpwn --interface {{network_interface}} flood --count {{number_of_requests}}`
|
||||
`dhcpwn {{[-i|--interface]}} {{network_interface}} flood {{[-c|--count]}} {{number_of_requests}}`
|
||||
|
||||
- Sniff local DHCP traffic:
|
||||
|
||||
`dhcpwn --interface {{network_interface}} sniff`
|
||||
`dhcpwn {{[-i|--interface]}} {{network_interface}} sniff`
|
||||
|
||||
@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Scan a web server for common paths with common extensions:
|
||||
|
||||
`dirsearch --url {{url}} --extensions-list`
|
||||
`dirsearch {{[-u|--url]}} {{url}} --extensions-list`
|
||||
|
||||
- Scan a list of web servers for common paths with the `.php` extension:
|
||||
- Scan a list of web servers for common paths with given file extensions:
|
||||
|
||||
`dirsearch --url-list {{path/to/url-list.txt}} --extensions {{php}}`
|
||||
`dirsearch {{[-l|--url-list]}} {{path/to/url-list.txt}} {{[-e|--extensions]}} {{php,jsp,aspx,...}}`
|
||||
|
||||
- Scan a web server for user-defined paths with common extensions:
|
||||
|
||||
`dirsearch --url {{url}} --extensions-list --wordlist {{path/to/url-paths.txt}}`
|
||||
`dirsearch {{[-u|--url]}} {{url}} --extensions-list {{[-w|--wordlists]}} {{path/to/url-paths.txt,path/to/url-paths.txt,...}}`
|
||||
|
||||
- Scan a web server using a cookie:
|
||||
|
||||
`dirsearch --url {{url}} --extensions {{php}} --cookie {{cookie}}`
|
||||
`dirsearch {{[-u|--url]}} {{url}} {{[-e|--extensions]}} {{php}} --cookie {{cookie}}`
|
||||
|
||||
- Scan a web server using the `HEAD` HTTP method:
|
||||
|
||||
`dirsearch --url {{url}} --extensions {{php}} --http-method {{HEAD}}`
|
||||
`dirsearch {{[-u|--url]}} {{url}} {{[-e|--extensions]}} {{php}} {{[-m|--http-method]}} {{HEAD}}`
|
||||
|
||||
- Scan a web server, saving the results to a `.json` file:
|
||||
|
||||
`dirsearch --url {{url}} --extensions {{php}} --json-report {{path/to/report.json}}`
|
||||
`dirsearch {{[-u|--url]}} {{url}} {{[-e|--extensions]}} {{php}} --json-report {{path/to/report.json}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Docker powered mini-Heroku (PaaS).
|
||||
> Easily deploy multiple apps to your server in different languages using a single `git-push` command.
|
||||
> More information: <https://github.com/dokku/dokku>.
|
||||
> More information: <https://dokku.com/docs/deployment/application-deployment/>.
|
||||
|
||||
- List running apps:
|
||||
|
||||
|
||||
6
tldr/dvc
6
tldr/dvc
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Data Version Control: like `git` for data.
|
||||
> Some subcommands such as `commit` have their own usage documentation.
|
||||
> More information: <https://dvc.org/>.
|
||||
> More information: <https://dvc.org/doc/command-reference>.
|
||||
|
||||
- Execute a DVC subcommand:
|
||||
|
||||
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display general help:
|
||||
|
||||
`dvc --help`
|
||||
`dvc {{[-h|--help]}}`
|
||||
|
||||
- Display help about a specific subcommand:
|
||||
|
||||
`dvc {{subcommand}} --help`
|
||||
`dvc {{subcommand}} {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Recursively commit all DVC-tracked files in a directory:
|
||||
|
||||
`dvc commit --recursive {{path/to/directory}}`
|
||||
`dvc commit {{[-R|--recursive]}} {{path/to/directory}}`
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Unset the project's default remote:
|
||||
|
||||
`dvc config --unset core.remote`
|
||||
`dvc config {{[-u|--unset]}} core.remote`
|
||||
|
||||
- Get the configuration value for a specified key for the current project:
|
||||
|
||||
@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Unset a project level configuration value for a given key:
|
||||
|
||||
`dvc config --unset {{key}}`
|
||||
`dvc config {{[-u|--unset]}} {{key}}`
|
||||
|
||||
- Set a local, global, or system level configuration value:
|
||||
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Force destroy the current project:
|
||||
|
||||
`dvc destroy --force`
|
||||
`dvc destroy {{[-f|--force]}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Fetch changes from a specific remote upstream repository:
|
||||
|
||||
`dvc fetch --remote {{remote_name}}`
|
||||
`dvc fetch {{[-r|--remote]}} {{remote_name}}`
|
||||
|
||||
- Fetch the latest changes for a specific target/s:
|
||||
|
||||
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Fetch changes for all branch and tags:
|
||||
|
||||
`dvc fetch --all-branches --all-tags`
|
||||
`dvc fetch {{[-a|--all-branches]}} {{[-T|--all-tags]}}`
|
||||
|
||||
- Fetch changes for all commits:
|
||||
|
||||
`dvc fetch --all-commits`
|
||||
`dvc fetch {{[-A|--all-commits]}}`
|
||||
|
||||
@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Garbage collect from the cache, keeping only versions referenced by the current workspace:
|
||||
|
||||
`dvc gc --workspace`
|
||||
`dvc gc {{[-w|--workspace]}}`
|
||||
|
||||
- Garbage collect from the cache, keeping only versions referenced by branch, tags, and commits:
|
||||
|
||||
`dvc gc --all-branches --all-tags --all-commits`
|
||||
`dvc gc {{[-a|--all-branches]}} {{[-T|--all-tags]}} {{[-a|--all-commits]}}`
|
||||
|
||||
- Garbage collect from the cache, including the default cloud remote storage (if set):
|
||||
|
||||
`dvc gc --all-commits --cloud`
|
||||
`dvc gc {{[-a|--all-commits]}} {{[-c|--cloud]}}`
|
||||
|
||||
- Garbage collect from the cache, including a specific cloud remote storage:
|
||||
|
||||
`dvc gc --all-commits --cloud --remote {{remote_name}}`
|
||||
`dvc gc {{[-a|--all-commits]}} {{[-c|--cloud]}} {{[-r|--remote]}} {{remote_name}}`
|
||||
|
||||
2
tldr/env
2
tldr/env
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set one or more variables and run a program:
|
||||
|
||||
`env {{variable1}}={{value}} {{variable2}}={{value}} {{variable3}}={{value}} {{program}}`
|
||||
`env {{variable1=value variable2=value variable3=value ...}} {{program}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# flow
|
||||
|
||||
> A static type checker for JavaScript.
|
||||
> More information: <https://flow.org>.
|
||||
> More information: <https://flow.org/en/docs/cli/>.
|
||||
|
||||
- Run a flow check:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# forever
|
||||
|
||||
> Server-side JavaScript application that makes sure Node.js applications run indefinitely (restarts after exit).
|
||||
> More information: <https://github.com/foreversd/forever>.
|
||||
> More information: <https://github.com/foreversd/forever#usage>.
|
||||
|
||||
- Start running a file forever (as a daemon):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# fossa
|
||||
|
||||
> CLI for the Fossa service - Generate realtime license audits, vulnerability scans and reports about dependencies licenses.
|
||||
> More information: <https://github.com/fossas/fossa-cli>.
|
||||
> More information: <https://github.com/fossas/fossa-cli/blob/master/docs/README.md>.
|
||||
|
||||
- Initialize a `.fossa.yml` configuration file:
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Also fetch tags from the remote upstream repository:
|
||||
|
||||
`git fetch --tags`
|
||||
`git fetch {{[-t|--tags]}}`
|
||||
|
||||
- Delete local references to remote branches that have been deleted upstream:
|
||||
|
||||
`git fetch --prune`
|
||||
`git fetch {{[-p|--prune]}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Delete existing replace refs for the given objects:
|
||||
|
||||
`git replace --delete {{object}}`
|
||||
`git replace {{[-d|--delete]}} {{object}}`
|
||||
|
||||
- Edit an object’s content interactively:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show only heads references:
|
||||
|
||||
`git show-ref --heads`
|
||||
`git show-ref --branches`
|
||||
|
||||
- Show only tags references:
|
||||
|
||||
|
||||
@@ -3,19 +3,19 @@ syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git sizer
|
||||
# git-sizer
|
||||
|
||||
> Computes various Git repository size metrics and alerts you to any that might cause problems or inconvenience.
|
||||
> More information: <https://github.com/github/git-sizer>.
|
||||
|
||||
- Report only statistics that have a level of concern greater than 0:
|
||||
|
||||
`git sizer`
|
||||
`git-sizer`
|
||||
|
||||
- Report all statistics:
|
||||
|
||||
`git sizer -v`
|
||||
`git-sizer -v`
|
||||
|
||||
- See additional options:
|
||||
|
||||
`git sizer -h`
|
||||
`git-sizer -h`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gocryptfs
|
||||
|
||||
> Encrypted overlay filesystem written in Go.
|
||||
> More information: <https://github.com/rfjakob/gocryptfs>.
|
||||
> More information: <https://github.com/rfjakob/gocryptfs#use>.
|
||||
|
||||
- Initialize an encrypted filesystem:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gunicorn
|
||||
|
||||
> Python WSGI HTTP Server.
|
||||
> More information: <https://gunicorn.org/>.
|
||||
> More information: <https://docs.gunicorn.org/en/latest/run.html>.
|
||||
|
||||
- Run Python web app:
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Listen on port 8080 on localhost:
|
||||
|
||||
`gunicorn --bind {{localhost}}:{{8080}} {{import.path:app_object}}`
|
||||
`gunicorn {{[-b|--bind]}} {{localhost}}:{{8080}} {{import.path:app_object}}`
|
||||
|
||||
- Turn on live reload:
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Use 4 worker processes for handling requests:
|
||||
|
||||
`gunicorn --workers {{4}} {{import.path:app_object}}`
|
||||
`gunicorn {{[-w|--workers]}} {{4}} {{import.path:app_object}}`
|
||||
|
||||
- Use 4 worker threads for handling requests:
|
||||
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add all unstaged files matching a specified pattern:
|
||||
|
||||
`hg add --include {{pattern}}`
|
||||
`hg add {{[-I|--include]}} {{pattern}}`
|
||||
|
||||
- Add all unstaged files, excluding those that match a specified pattern:
|
||||
|
||||
`hg add --exclude {{pattern}}`
|
||||
`hg add {{[-X|--exclude]}} {{pattern}}`
|
||||
|
||||
- Recursively add sub-repositories:
|
||||
|
||||
`hg add --subrepos`
|
||||
`hg add {{[-S|--subrepos]}}`
|
||||
|
||||
- Perform a test-run without performing any actions:
|
||||
|
||||
`hg add --dry-run`
|
||||
`hg add {{[-n|--dry-run]}}`
|
||||
|
||||
@@ -18,16 +18,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Commit with a specific message:
|
||||
|
||||
`hg commit --message {{message}}`
|
||||
`hg commit {{[-m|--message]}} {{message}}`
|
||||
|
||||
- Commit all files matching a specified pattern:
|
||||
|
||||
`hg commit --include {{pattern}}`
|
||||
`hg commit {{[-I|--include]}} {{pattern}}`
|
||||
|
||||
- Commit all files, excluding those that match a specified pattern:
|
||||
|
||||
`hg commit --exclude {{pattern}}`
|
||||
`hg commit {{[-X|--exclude]}} {{pattern}}`
|
||||
|
||||
- Commit using the interactive mode:
|
||||
|
||||
`hg commit --interactive`
|
||||
`hg commit {{[-i|--interactive]}}`
|
||||
|
||||
14
tldr/hg-log
14
tldr/hg-log
@@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display the revision history with an ASCII graph:
|
||||
|
||||
`hg log --graph`
|
||||
`hg log {{[-G|--graph]}}`
|
||||
|
||||
- Display the revision history with file names matching a specified pattern:
|
||||
|
||||
`hg log --include {{pattern}}`
|
||||
`hg log {{[-I|--include]}} {{pattern}}`
|
||||
|
||||
- Display the revision history, excluding file names that match a specified pattern:
|
||||
|
||||
`hg log --exclude {{pattern}}`
|
||||
`hg log {{[-X|--exclude]}} {{pattern}}`
|
||||
|
||||
- Display the log information for a specific revision:
|
||||
|
||||
`hg log --rev {{revision}}`
|
||||
`hg log {{[-r|--rev]}} {{revision}}`
|
||||
|
||||
- Display the revision history for a specific branch:
|
||||
|
||||
`hg log --branch {{branch}}`
|
||||
`hg log {{[-b|--branch]}} {{branch}}`
|
||||
|
||||
- Display the revision history for a specific date:
|
||||
|
||||
`hg log --date {{date}}`
|
||||
`hg log {{[-d|--date]}} {{date}}`
|
||||
|
||||
- Display revisions committed by a specific user:
|
||||
|
||||
`hg log --user {{user}}`
|
||||
`hg log {{[-u|--user]}} {{user}}`
|
||||
|
||||
10
tldr/hg-pull
10
tldr/hg-pull
@@ -18,20 +18,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Update the local repository to the head of the remote:
|
||||
|
||||
`hg pull --update`
|
||||
`hg pull {{[-u|--update]}}`
|
||||
|
||||
- Pull changes even when the remote repository is unrelated:
|
||||
|
||||
`hg pull --force`
|
||||
`hg pull {{[-f|--force]}}`
|
||||
|
||||
- Specify a specific revision changeset to pull up to:
|
||||
|
||||
`hg pull --rev {{revision}}`
|
||||
`hg pull {{[-r|--rev]}} {{revision}}`
|
||||
|
||||
- Specify a specific branch to pull:
|
||||
|
||||
`hg pull --branch {{branch}}`
|
||||
`hg pull {{[-b|--branch]}} {{branch}}`
|
||||
|
||||
- Specify a specific bookmark to pull:
|
||||
|
||||
`hg pull --bookmark {{bookmark}}`
|
||||
`hg pull {{[-B|--bookmark]}} {{bookmark}}`
|
||||
|
||||
@@ -22,12 +22,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Specify a specific revision changeset to push:
|
||||
|
||||
`hg push --rev {{revision}}`
|
||||
`hg push {{[-r|--rev]}} {{revision}}`
|
||||
|
||||
- Specify a specific branch to push:
|
||||
|
||||
`hg push --branch {{branch}}`
|
||||
`hg push {{[-b|--branch]}} {{branch}}`
|
||||
|
||||
- Specify a specific bookmark to push:
|
||||
|
||||
`hg push --bookmark {{bookmark}}`
|
||||
`hg push {{[-B|--bookmark]}} {{bookmark}}`
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove all staged files matching a specified pattern:
|
||||
|
||||
`hg remove --include {{pattern}}`
|
||||
`hg remove {{[-I|--include]}} {{pattern}}`
|
||||
|
||||
- Remove all staged files, excluding those that match a specified pattern:
|
||||
|
||||
`hg remove --exclude {{pattern}}`
|
||||
`hg remove {{[-X|--exclude]}} {{pattern}}`
|
||||
|
||||
- Recursively remove sub-repositories:
|
||||
|
||||
`hg remove --subrepos`
|
||||
`hg remove {{[-S|--subrepos]}}`
|
||||
|
||||
- Remove files from the repository that have been physically removed:
|
||||
|
||||
`hg remove --after`
|
||||
`hg remove {{[-A|--after]}}`
|
||||
|
||||
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start a web server instance on the specified port:
|
||||
|
||||
`hg serve --port {{port}}`
|
||||
`hg serve {{[-p|--port]}} {{port}}`
|
||||
|
||||
- Start a web server instance on the specified listening address:
|
||||
|
||||
`hg serve --address {{address}}`
|
||||
`hg serve {{[-a|--address]}} {{address}}`
|
||||
|
||||
- Start a web server instance with a specific identifier:
|
||||
|
||||
`hg serve --name {{name}}`
|
||||
`hg serve {{[-n|--name]}} {{name}}`
|
||||
|
||||
- Start a web server instance using the specified theme (see the templates directory):
|
||||
|
||||
|
||||
@@ -14,19 +14,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display only modified files:
|
||||
|
||||
`hg status --modified`
|
||||
`hg status {{[-m|--modified]}}`
|
||||
|
||||
- Display only added files:
|
||||
|
||||
`hg status --added`
|
||||
`hg status {{[-a|--added]}}`
|
||||
|
||||
- Display only removed files:
|
||||
|
||||
`hg status --removed`
|
||||
`hg status {{[-r|--removed]}}`
|
||||
|
||||
- Display only deleted (but tracked) files:
|
||||
|
||||
`hg status --deleted`
|
||||
`hg status {{[-d|--deleted]}}`
|
||||
|
||||
- Display changes in the working directory compared to a specified changeset:
|
||||
|
||||
@@ -34,8 +34,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display only files matching a specified glob pattern:
|
||||
|
||||
`hg status --include {{pattern}}`
|
||||
`hg status {{[-I|--include]}} {{pattern}}`
|
||||
|
||||
- Display files, excluding those that match a specified glob pattern:
|
||||
|
||||
`hg status --exclude {{pattern}}`
|
||||
`hg status {{[-X|--exclude]}} {{pattern}}`
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Update to the specified revision:
|
||||
|
||||
`hg update --rev {{revision}}`
|
||||
`hg update {{[-r|--rev]}} {{revision}}`
|
||||
|
||||
- Update and discard uncommitted changes:
|
||||
|
||||
`hg update --clean`
|
||||
`hg update {{[-C|--clean]}}`
|
||||
|
||||
- Update to the last commit matching a specified date:
|
||||
|
||||
`hg update --date {{dd-mm-yyyy}}`
|
||||
`hg update {{[-d|--date]}} {{dd-mm-yyyy}}`
|
||||
|
||||
6
tldr/hn
6
tldr/hn
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hn
|
||||
|
||||
> Command-line interface for Hacker News.
|
||||
> More information: <https://github.com/rafaelrinaldi/hn-cli>.
|
||||
> More information: <https://github.com/rafaelrinaldi/hn-cli#usage>.
|
||||
|
||||
- View stories on Hacker News:
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View _number_ of stories on Hacker News:
|
||||
|
||||
`hn --limit {{number}}`
|
||||
`hn {{[-l|--limit]}} {{number}}`
|
||||
|
||||
- View stories on Hacker News, and keep the list open after selecting a link:
|
||||
|
||||
`hn --keep-open`
|
||||
`hn {{[-k|--keep-open]}}`
|
||||
|
||||
- View stories on Hacker News sorted by submission date:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hostapd
|
||||
|
||||
> Start an access point using a wireless interface.
|
||||
> More information: <https://w1.fi/hostapd/>.
|
||||
> More information: <https://manned.org/hostapd>.
|
||||
|
||||
- Start an access point:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# jdupes
|
||||
|
||||
> A powerful duplicate file finder and an enhanced fork of fdupes.
|
||||
> More information: <https://codeberg.org/jbruchon/jdupes>.
|
||||
> More information: <https://codeberg.org/jbruchon/jdupes#usage>.
|
||||
|
||||
- Search a single directory:
|
||||
|
||||
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Search multiple directories and keep the directory order in result:
|
||||
|
||||
`jdupes -O {{directory1}} {{directory2}} {{directory3}}`
|
||||
`jdupes -O {{directory1 directory2 directory3 ...}}`
|
||||
|
||||
@@ -6,20 +6,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# jpegoptim
|
||||
|
||||
> Optimise JPEG images.
|
||||
> More information: <https://github.com/tjko/jpegoptim>.
|
||||
> More information: <https://manned.org/jpegoptim>.
|
||||
|
||||
- Optimise a set of JPEG images, retaining all associated data:
|
||||
|
||||
`jpegoptim {{image1.jpeg}} {{image2.jpeg}} {{imageN.jpeg}}`
|
||||
`jpegoptim {{image1.jpeg image2.jpeg image3.jpeg ...}}`
|
||||
|
||||
- Optimise JPEG images, stripping all non-essential data:
|
||||
|
||||
`jpegoptim --strip-all {{image1.jpeg}} {{image2.jpeg}} {{imageN.jpeg}}`
|
||||
`jpegoptim {{[-s|--strip-all]}} {{image1.jpeg image2.jpeg image3.jpeg ...}}`
|
||||
|
||||
- Force the output images to be progressive:
|
||||
|
||||
`jpegoptim --all-progressive {{image1.jpeg}} {{image2.jpeg}} {{imageN.jpeg}}`
|
||||
`jpegoptim --all-progressive {{image1.jpeg image2.jpeg image3.jpeg ...}}`
|
||||
|
||||
- Force the output images to have a fixed maximum filesize:
|
||||
|
||||
`jpegoptim --size={{250k}} {{image1.jpeg}} {{image2.jpeg}} {{imageN.jpeg}}`
|
||||
`jpegoptim {{[-S|--size]}} {{250k}} {{image1.jpeg image2.jpeg image3.jpeg ...}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Web application to create and share documents that contain code, visualizations and notes.
|
||||
> Primarily used for data analysis, scientific computing and machine learning.
|
||||
> More information: <https://jupyter.org>.
|
||||
> More information: <https://docs.jupyter.org/en/latest/>.
|
||||
|
||||
- Start a Jupyter notebook server in the current directory:
|
||||
|
||||
@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start a server on a specific port:
|
||||
|
||||
`jupyter notebook --port={{port}}`
|
||||
`jupyter notebook --port {{port}}`
|
||||
|
||||
- List currently running notebook servers:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# kahlan
|
||||
|
||||
> A unit and Behaviour Driven Development test framework for PHP.
|
||||
> More information: <https://kahlan.github.io>.
|
||||
> More information: <https://kahlan.github.io/docs/cli-options.html>.
|
||||
|
||||
- Run all specifications in the "spec" directory:
|
||||
|
||||
|
||||
10
tldr/keybase
10
tldr/keybase
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# keybase
|
||||
|
||||
> Key directory that maps social media identities to encryption keys in a publicly auditable manner.
|
||||
> More information: <https://keybase.io/docs/command_line>.
|
||||
> More information: <https://book.keybase.io/docs/cli>.
|
||||
|
||||
- Follow another user:
|
||||
|
||||
@@ -18,19 +18,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Sign a file:
|
||||
|
||||
`keybase sign --infile {{input_file}} --outfile {{output_file}}`
|
||||
`keybase sign {{[-i|--infile]}} {{input_file}} {{[-o|--outfile]}} {{output_file}}`
|
||||
|
||||
- Verify a signed file:
|
||||
|
||||
`keybase verify --infile {{input_file}} --outfile {{output_file}}`
|
||||
`keybase verify {{[-i|--infile]}} {{input_file}} {{[-o|--outfile]}} {{output_file}}`
|
||||
|
||||
- Encrypt a file:
|
||||
|
||||
`keybase encrypt --infile {{input_file}} --outfile {{output_file}} {{receiver}}`
|
||||
`keybase encrypt {{[-i|--infile]}} {{input_file}} {{[-o|--outfile]}} {{output_file}} {{receiver}}`
|
||||
|
||||
- Decrypt a file:
|
||||
|
||||
`keybase decrypt --infile {{input_file}} --outfile {{output_file}}`
|
||||
`keybase decrypt {{[-i|--infile]}} {{input_file}} {{[-o|--outfile]}} {{output_file}}`
|
||||
|
||||
- Revoke current device, log out, and delete local data:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# kubectx
|
||||
|
||||
> Utility to manage and switch between `kubectl` contexts.
|
||||
> More information: <https://github.com/ahmetb/kubectx>.
|
||||
> More information: <https://manned.org/kubectx>.
|
||||
|
||||
- List the contexts:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# kubens
|
||||
|
||||
> Utility to switch between Kubernetes namespaces.
|
||||
> More information: <https://github.com/ahmetb/kubectx>.
|
||||
> More information: <https://manned.org/kubens>.
|
||||
|
||||
- List the namespaces:
|
||||
|
||||
|
||||
@@ -7,19 +7,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> The Let's Encrypt Agent for automatically obtaining and renewing TLS certificates.
|
||||
> Successor to `letsencrypt`.
|
||||
> More information: <https://certbot.eff.org/docs/using.html>.
|
||||
> More information: <https://eff-certbot.readthedocs.io/en/latest/using.html>.
|
||||
|
||||
- Obtain a new certificate via webroot authorization, but do not install it automatically:
|
||||
|
||||
`sudo certbot certonly --webroot --webroot-path {{path/to/webroot}} --domain {{subdomain.example.com}}`
|
||||
`sudo certbot certonly --webroot {{[-w|--webroot-path]}} {{path/to/webroot}} {{[-d|--domain]}} {{subdomain.example.com}}`
|
||||
|
||||
- Obtain a new certificate via nginx authorization, installing the new certificate automatically:
|
||||
|
||||
`sudo certbot --nginx --domain {{subdomain.example.com}}`
|
||||
`sudo certbot --nginx {{[-d|--domain]}} {{subdomain.example.com}}`
|
||||
|
||||
- Obtain a new certificate via apache authorization, installing the new certificate automatically:
|
||||
|
||||
`sudo certbot --apache --domain {{subdomain.example.com}}`
|
||||
`sudo certbot --apache {{[-d|--domain]}} {{subdomain.example.com}}`
|
||||
|
||||
- Renew all Let's Encrypt certificates that expire in 30 days or less (don't forget to restart any servers that use them afterwards):
|
||||
|
||||
@@ -27,8 +27,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Simulate the obtaining of a new certificate, but don't actually save any new certificates to disk:
|
||||
|
||||
`sudo certbot --webroot --webroot-path {{path/to/webroot}} --domain {{subdomain.example.com}} --dry-run`
|
||||
`sudo certbot --webroot {{[-w|--webroot-path]}} {{path/to/webroot}} {{[-d|--domain]}} {{subdomain.example.com}} --dry-run`
|
||||
|
||||
- Obtain an untrusted test certificate instead:
|
||||
|
||||
`sudo certbot --webroot --webroot-path {{path/to/webroot}} --domain {{subdomain.example.com}} --test-cert`
|
||||
`sudo certbot --webroot {{[-w|--webroot-path]}} {{path/to/webroot}} {{[-d|--domain]}} {{subdomain.example.com}} --test-cert`
|
||||
|
||||
@@ -6,19 +6,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# cewl
|
||||
|
||||
> URL spidering tool for making a cracking wordlist from web content.
|
||||
> More information: <https://digi.ninja/projects/cewl.php>.
|
||||
> More information: <https://digi.ninja/projects/cewl.php#usage>.
|
||||
|
||||
- Create a wordlist file from the given URL up to 2 links depth:
|
||||
|
||||
`cewl --depth {{2}} --write {{path/to/wordlist.txt}} {{url}}`
|
||||
`cewl {{[-d|--depth]}} 2 {{[-w|--write]}} {{path/to/wordlist.txt}} {{url}}`
|
||||
|
||||
- Output an alphanumeric wordlist from the given URL with words of minimum 5 characters:
|
||||
|
||||
`cewl --with-numbers --min_word_length {{5}} {{url}}`
|
||||
`cewl --with-numbers {{[-m|--min_word_length]}} 5 {{url}}`
|
||||
|
||||
- Output a wordlist from the given URL in debug mode including email addresses:
|
||||
|
||||
`cewl --debug --email {{url}}`
|
||||
`cewl --debug {{[-e|--email]}} {{url}}`
|
||||
|
||||
- Output a wordlist from the given URL using HTTP Basic or Digest authentication:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Calculate the compression ratio of a set of files on a btrfs filesystem.
|
||||
> See also `btrfs filesystem` for recompressing a file by defragmenting it.
|
||||
> More information: <https://github.com/kilobyte/compsize>.
|
||||
> More information: <https://manned.org/compsize>.
|
||||
|
||||
- Calculate the current compression ratio for a file or directory:
|
||||
|
||||
@@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Don't traverse filesystem boundaries:
|
||||
|
||||
`sudo compsize --one-file-system {{path/to/file_or_directory}}`
|
||||
`sudo compsize {{[-x|--one-file-system]}} {{path/to/file_or_directory}}`
|
||||
|
||||
- Show raw byte counts instead of human-readable sizes:
|
||||
|
||||
`sudo compsize --bytes {{path/to/file_or_directory}}`
|
||||
`sudo compsize {{[-b|--bytes]}} {{path/to/file_or_directory}}`
|
||||
|
||||
@@ -10,27 +10,27 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Execute all programs in the autostart folders:
|
||||
|
||||
`dex --autostart`
|
||||
`dex {{[-a|--autostart]}}`
|
||||
|
||||
- Execute all programs in the specified folders:
|
||||
|
||||
`dex --autostart --search-paths {{path/to/directory1}}:{{path/to/directory2}}:{{path/to/directory3}}:`
|
||||
`dex {{[-a|--autostart]} {{[-s|--search-paths]}} {{path/to/directory1}}:{{path/to/directory2}}:{{path/to/directory3}}:`
|
||||
|
||||
- Preview the programs would be executed in a GNOME specific autostart:
|
||||
|
||||
`dex --autostart --environment {{GNOME}}`
|
||||
`dex {{[-a|--autostart]} {{[-e|--environment]}} {{GNOME}}`
|
||||
|
||||
- Preview the programs would be executed in a regular autostart:
|
||||
|
||||
`dex --autostart --dry-run`
|
||||
`dex {{[-a|--autostart]} {{[-d|--dry-run]}}`
|
||||
|
||||
- Preview the value of the DesktopEntry property `Name`:
|
||||
|
||||
`dex --property {{Name}} {{path/to/file.desktop}}`
|
||||
`dex {{[-p|--property]}} {{Name}} {{path/to/file.desktop}}`
|
||||
|
||||
- Create a DesktopEntry for a program in the current directory:
|
||||
|
||||
`dex --create {{path/to/file.desktop}}`
|
||||
`dex {{[-c|--create]}} {{path/to/file.desktop}}`
|
||||
|
||||
- Execute a single program (with `Terminal=true` in the desktop file) in the given terminal:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# dkms
|
||||
|
||||
> A framework that allows for dynamic building of kernel modules.
|
||||
> More information: <https://github.com/dell/dkms>.
|
||||
> More information: <https://manned.org/dkms>.
|
||||
|
||||
- List currently installed modules:
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display CPU and memory statistics only:
|
||||
|
||||
`dstat --cpu --mem`
|
||||
`dstat {{[-c|--cpu]}} {{[-m|--mem]}}`
|
||||
|
||||
- List all available dstat plugins:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# exif
|
||||
|
||||
> Show and change EXIF information in JPEG files.
|
||||
> More information: <https://github.com/libexif/exif/>.
|
||||
> More information: <https://manned.org/exif>.
|
||||
|
||||
- Show all recognized EXIF information in an image:
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show a table listing known EXIF tags and whether each one exists in an image:
|
||||
|
||||
`exif --list-tags --no-fixup {{image.jpg}}`
|
||||
`exif {{[-l|--list-tags]}} --no-fixup {{path/to/image.jpg}}`
|
||||
|
||||
- Extract the image thumbnail into the file `thumbnail.jpg`:
|
||||
- Extract the image thumbnail into a separate file:
|
||||
|
||||
`exif --extract-thumbnail --output={{thumbnail.jpg}} {{image.jpg}}`
|
||||
`exif {{[-e|--extract-thumbnail]}} {{[-o|--output]}} {{path/to/thumbnail.jpg}} {{path/to/image.jpg}}`
|
||||
|
||||
- Show the raw contents of the "Model" tag in the given image:
|
||||
|
||||
`exif --ifd={{0}} --tag={{Model}} --machine-readable {{image.jpg}}`
|
||||
`exif --ifd {{0}} {{[-t|--tag]}} "Model" {{[-m|--machine-readable]}} {{path/to/image.jpg}}`
|
||||
|
||||
- Change the value of the "Artist" tag to John Smith and save to `new.jpg`:
|
||||
|
||||
`exif --output={{new.jpg}} --ifd={{0}} --tag="{{Artist}}" --set-value="{{John Smith}}" --no-fixup {{image.jpg}}`
|
||||
`exif {{[-o|--output]}} {{path/to/new.jpg}} --ifd {{0}} {{[-t|--tag]}} "Artist" --set-value "John Smith" --no-fixup {{path/to/image.jpg}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# fail2ban-client
|
||||
|
||||
> Configure and control fail2ban server.
|
||||
> More information: <https://github.com/fail2ban/fail2ban>.
|
||||
> More information: <https://manned.org/fail2ban-client>.
|
||||
|
||||
- Retrieve current status of the jail service:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# findfs
|
||||
|
||||
> Finds a filesystem by label or UUID.
|
||||
> More information: <https://mirrors.edge.kernel.org/pub/linux/utils/util-linux>.
|
||||
> More information: <https://manned.org/findfs>.
|
||||
|
||||
- Search block devices by filesystem label:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# maim
|
||||
|
||||
> Screenshot utility.
|
||||
> More information: <https://github.com/naelstrof/maim>.
|
||||
> More information: <https://manned.org/maim>.
|
||||
|
||||
- Capture a screenshot and save it to the given path:
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Capture a screenshot of the selected region:
|
||||
|
||||
`maim --select {{path/to/screenshot.png}}`
|
||||
`maim {{[-s|--select]}} {{path/to/screenshot.png}}`
|
||||
|
||||
- Capture a screenshot of the selected region and save it in the clipboard (requires `xclip`):
|
||||
|
||||
`maim --select | xclip -selection clipboard -target image/png`
|
||||
`maim {{[-s|--select]}} | xclip {{[-se|-selection]}} {{[c|clipboard]}} {{[-t|-target]}} image/png`
|
||||
|
||||
- Capture a screenshot of the current active window (requires `xdotool`):
|
||||
|
||||
`maim --window $(xdotool getactivewindow) {{path/to/screenshot.png}}`
|
||||
`maim {{[-i|--window]}} $(xdotool getactivewindow) {{path/to/screenshot.png}}`
|
||||
|
||||
@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Choose the server with the lowest latency:
|
||||
|
||||
`sudo netselect {{host_1}} {{host_2}}`
|
||||
`sudo netselect {{host_1 host_2 ...}}`
|
||||
|
||||
- Display nameserver resolution and statistics:
|
||||
|
||||
`sudo netselect -vv {{host_1}} {{host_2}}`
|
||||
`sudo netselect -vv {{host_1 host_2 ...}}`
|
||||
|
||||
- Define maximum TTL (time to live):
|
||||
|
||||
`sudo netselect -m {{10}} {{host_1}} {{host_2}}`
|
||||
`sudo netselect -m {{10}} {{host_1 host_2 ...}}`
|
||||
|
||||
- Print `n` fastest servers among the hosts:
|
||||
|
||||
`sudo netselect -s {{n}} {{host_1}} {{host_2}} {{host_3}}`
|
||||
`sudo netselect -s {{n}} {{host_1 host_2 host_3 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -6,24 +6,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ntpq
|
||||
|
||||
> Query the Network Time Protocol (NTP) daemon.
|
||||
> More information: <https://www.eecis.udel.edu/~mills/ntp/html/ntpq.html>.
|
||||
> More information: <https://manned.org/man/ntpq.1>.
|
||||
|
||||
- Start `ntpq` in interactive mode:
|
||||
|
||||
`ntpq --interactive`
|
||||
`ntpq`
|
||||
|
||||
- Print a list of NTP peers:
|
||||
|
||||
`ntpq --peers`
|
||||
`ntpq {{[-p|--peers]}}`
|
||||
|
||||
- Print a list of NTP peers without resolving hostnames from IP addresses:
|
||||
|
||||
`ntpq --numeric --peers`
|
||||
`ntpq {{[-n|--numeric]}} {{[-p|--peers]}}`
|
||||
|
||||
- Use `ntpq` in debugging mode:
|
||||
|
||||
`ntpq --debug-level`
|
||||
`ntpq {{[-d|--debug-level]}}`
|
||||
|
||||
- Print NTP system variables values:
|
||||
|
||||
`ntpq --command={{rv}}`
|
||||
`ntpq {{[-c|--command]}} {{rv}}`
|
||||
|
||||
@@ -6,15 +6,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# openfortivpn
|
||||
|
||||
> A VPN client, for Fortinet's proprietary PPP+SSL VPN solution.
|
||||
> More information: <https://github.com/adrienverge/openfortivpn>.
|
||||
> More information: <https://manned.org/openfortivpn>.
|
||||
|
||||
- Connect to a VPN with a username and password:
|
||||
|
||||
`openfortivpn --username={{username}} --password={{password}}`
|
||||
`openfortivpn {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}}`
|
||||
|
||||
- Connect to a VPN using a specific configuration file (defaults to `/etc/openfortivpn/config`):
|
||||
|
||||
`sudo openfortivpn --config={{path/to/config}}`
|
||||
`sudo openfortivpn {{[-c|--config]}} {{path/to/config}}`
|
||||
|
||||
- Connect to a VPN by specifying the host and port:
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Trust a given gateway by passing in its certificate's sha256 sum:
|
||||
|
||||
`openfortivpn --trusted-cert={{sha256_sum}}`
|
||||
`openfortivpn --trusted-cert {{sha256_sum}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Deleted file recovery tool.
|
||||
> It is recommended to write recovered files to a disk separate to the one being recovered from.
|
||||
> More information: <https://www.cgsecurity.org/wiki/PhotoRec>.
|
||||
> More information: <https://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step>.
|
||||
|
||||
- Run PhotoRec on a specific device:
|
||||
|
||||
|
||||
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Mount a device with a specific filesystem type to `/media/label`:
|
||||
|
||||
`pmount --type {{filesystem}} {{/dev/to/block/device}} {{label}}`
|
||||
`pmount {{[-t|--type]}} {{filesystem}} {{/dev/to/block/device}} {{label}}`
|
||||
|
||||
- Mount a CD-ROM (filesystem type ISO9660) in read-only mode:
|
||||
|
||||
`pmount --type {{iso9660}} --read-only {{/dev/cdrom}}`
|
||||
`pmount {{[-t|--type]}} iso9660 {{[-r|--read-only]}} {{/dev/cdrom}}`
|
||||
|
||||
- Mount an NTFS-formatted disk, forcing read-write access:
|
||||
|
||||
`pmount --type {{ntfs}} --read-write {{/dev/sdX}}`
|
||||
`pmount {{[-t|--type]}} ntfs {{[-w|--read-write]}} {{/dev/sdX}}`
|
||||
|
||||
- Display all mounted removable devices:
|
||||
|
||||
|
||||
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`resolveip {{1.1.1.1}}`
|
||||
|
||||
- Silent mode. Produces less output:
|
||||
- Resolve a hostname to an IP address with less output:
|
||||
|
||||
`resolveip --silent {{example.org}}`
|
||||
`resolveip {{[-s|--silent]}} {{example.org}}`
|
||||
|
||||
@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Connect to a remote host:
|
||||
|
||||
`rpcclient --user {{domain}}\{{username}}%{{password}} {{ip}}`
|
||||
`rpcclient {{[-U|--user]}} {{domain}}\{{username}}%{{password}} {{ip}}`
|
||||
|
||||
- Connect to a remote host on a domain without a password:
|
||||
|
||||
`rpcclient --user {{username}} --workgroup {{domain}} --no-pass {{ip}}`
|
||||
`rpcclient {{[-U|--user]}} {{username}} {{[-W|--workgroup]}} {{domain}} {{[-N|--no-pass]}} {{ip}}`
|
||||
|
||||
- Connect to a remote host, passing the password hash:
|
||||
|
||||
`rpcclient --user {{domain}}\{{username}} --pw-nt-hash {{ip}}`
|
||||
`rpcclient {{[-U|--user]}} {{domain}}\{{username}} --pw-nt-hash {{ip}}`
|
||||
|
||||
- Execute shell commands on a remote host:
|
||||
|
||||
`rpcclient --user {{domain}}\{{username}}%{{password}} --command {{semicolon_separated_commands}} {{ip}}`
|
||||
`rpcclient {{[-U|--user]}} {{domain}}\{{username}}%{{password}} {{[-c|--command]}} {{semicolon_separated_commands}} {{ip}}`
|
||||
|
||||
- Display domain users:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# sam
|
||||
|
||||
> AWS Serverless Application Model (SAM) CLI.
|
||||
> More information: <https://github.com/awslabs/aws-sam-cli>.
|
||||
> More information: <https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/using-sam-cli-corecommands.html>.
|
||||
|
||||
- Initialize a serverless application:
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Initialize a serverless application with a specific runtime:
|
||||
|
||||
`sam init --runtime {{python3.7}}`
|
||||
`sam init {{[-r|--runtime]}} {{python3.7}}`
|
||||
|
||||
- Package a SAM application:
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List available scanners to ensure the target device is connected and recognized:
|
||||
|
||||
`scanimage -L`
|
||||
`scanimage {{[-L|--list-devices]}}`
|
||||
|
||||
- Scan an image and save it to a file:
|
||||
|
||||
`scanimage --format={{pnm|tiff|png|jpeg}} > {{path/to/new_image}}`
|
||||
`scanimage --format {{pnm|tiff|png|jpeg}} > {{path/to/new_image}}`
|
||||
|
||||
@@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Connect with a username and password:
|
||||
|
||||
`smbget {{smb://server/share/file}} --user {{username%password}}`
|
||||
`smbget {{smb://server/share/file}} {{[-U|--user]}} {{username%password}}`
|
||||
|
||||
- Require encrypted transfers:
|
||||
|
||||
`smbget {{smb://server/share/file}} --encrypt`
|
||||
`smbget {{smb://server/share/file}} {{[-e|--encrypt]}}`
|
||||
|
||||
@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Submit an interactive job with different attributes:
|
||||
|
||||
`srun --ntasks-per-node={{num_cores}} --mem-per-cpu={{memory_MB}} --pty /bin/bash`
|
||||
`srun --ntasks-per-node {{num_cores}} --mem-per-cpu {{memory_MB}} --pty /bin/bash`
|
||||
|
||||
- Connect to a worker node with a job running:
|
||||
|
||||
`srun --jobid={{job_id}} --pty /bin/bash`
|
||||
`srun --jobid {{job_id}} --pty /bin/bash`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tcptraceroute
|
||||
|
||||
> A traceroute implementation using TCP packets.
|
||||
> More information: <https://github.com/mct/tcptraceroute>.
|
||||
> More information: <https://manned.org/tcptraceroute>.
|
||||
|
||||
- Trace the route to a host:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tic
|
||||
|
||||
> Compile terminfo and install for ncurses.
|
||||
> More information: <https://pubs.opengroup.org/onlinepubs/007908799/xcurses/terminfo.html>.
|
||||
> More information: <https://manned.org/tic>.
|
||||
|
||||
- Compile and install terminfo for a terminal:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# timeshift
|
||||
|
||||
> System restore utility.
|
||||
> More information: <https://github.com/teejee2008/timeshift>.
|
||||
> More information: <https://github.com/linuxmint/timeshift>.
|
||||
|
||||
- List snapshots:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Advanced power management for Linux.
|
||||
> See also `tlp-stat`.
|
||||
> More information: <https://linrunner.de/tlp/>.
|
||||
> More information: <https://linrunner.de/tlp/usage/tlp.html>.
|
||||
|
||||
- Apply settings (according to the actual power source):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# unshadow
|
||||
|
||||
> Utility provided by the John the Ripper project to obtain the traditional Unix password file if the system uses shadow passwords.
|
||||
> More information: <https://www.openwall.com/john/>.
|
||||
> More information: <https://www.openwall.com/john/doc/>.
|
||||
|
||||
- Combine the `/etc/shadow` and `/etc/passwd` of the current system:
|
||||
|
||||
|
||||
@@ -6,20 +6,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# veracrypt
|
||||
|
||||
> Free and open source disk encryption software.
|
||||
> More information: <https://www.veracrypt.fr/code/VeraCrypt/plain/doc/html/Documentation.html>.
|
||||
> More information: <https://arcanecode.com/2021/06/21/veracrypt-on-the-command-line-for-ubuntu-linux/>.
|
||||
|
||||
- Create a new volume through a text user interface and use `/dev/urandom` as a source of random data:
|
||||
|
||||
`veracrypt --text --create --random-source={{/dev/urandom}}`
|
||||
`veracrypt {{[-t|--text]}} {{[-c|--create]}} --random-source={{/dev/urandom}}`
|
||||
|
||||
- Decrypt a volume interactively through a text user interface and mount it to a directory:
|
||||
|
||||
`veracrypt --text {{path/to/volume}} {{path/to/mount_point}}`
|
||||
`veracrypt {{[-t|--text]}} {{path/to/volume}} {{path/to/mount_point}}`
|
||||
|
||||
- Decrypt a partition using a keyfile and mount it to a directory:
|
||||
|
||||
`veracrypt --keyfiles={{path/to/keyfile}} {{/dev/sdXN}} {{path/to/mount_point}}`
|
||||
`veracrypt {{[-k|--keyfiles]}} {{path/to/keyfile}} {{/dev/sdXN}} {{path/to/mount_point}}`
|
||||
|
||||
- Dismount a volume on the directory it is mounted to:
|
||||
|
||||
`veracrypt --dismount {{path/to/mounted_point}}`
|
||||
`veracrypt {{[-d|--dismount]}} {{path/to/mounted_point}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# wg-quick
|
||||
|
||||
> Quickly set up WireGuard tunnels based on config files.
|
||||
> More information: <https://www.wireguard.com/quickstart/>.
|
||||
> More information: <https://manned.org/wg-quick>.
|
||||
|
||||
- Set up a VPN tunnel:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# xbacklight
|
||||
|
||||
> Utility to adjust backlight brightness using the RandR extension.
|
||||
> More information: <https://gitlab.freedesktop.org/xorg/app/xbacklight>.
|
||||
> More information: <https://manned.org/xbacklight>.
|
||||
|
||||
- Get the current screen brightness as a percentage:
|
||||
|
||||
|
||||
@@ -20,15 +20,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Copy the output from a command to the system clipboard, using short notation:
|
||||
|
||||
`echo 123 | xclip {{[-se|-selection]}} clip`
|
||||
`echo 123 | xclip {{[-se|-selection]}} {{[c|clipboard]}}`
|
||||
|
||||
- Copy the contents of a file into the system clipboard:
|
||||
|
||||
`xclip {{[-se|-selection]}} clip {{input_file.txt}}`
|
||||
`xclip {{[-se|-selection]}} {{[c|clipboard]}} {{input_file.txt}}`
|
||||
|
||||
- Copy the contents of a PNG into the system clipboard (can be pasted in other programs correctly):
|
||||
|
||||
`xclip {{[-se|-selection]}} clip {{[-t|-target]}} image/png {{input_file.png}}`
|
||||
`xclip {{[-se|-selection]}} {{[c|clipboard]}} {{[-t|-target]}} image/png {{input_file.png}}`
|
||||
|
||||
- Copy the user input in the console into the system clipboard:
|
||||
|
||||
@@ -40,4 +40,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Paste the contents of the system clipboard to the console:
|
||||
|
||||
`xclip {{[-o|-out]}} {{[-se|-selection]}} clip`
|
||||
`xclip {{[-o|-out]}} {{[-se|-selection]}} {{[c|clipboard]}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# xvfb-run
|
||||
|
||||
> Run a command in a virtual X server environment.
|
||||
> More information: <https://www.x.org/wiki/>.
|
||||
> More information: <https://manned.org/xvfb-run>.
|
||||
|
||||
- Run the specified command in a virtual X server:
|
||||
|
||||
@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Try to get a free server number, if the default (99) is not available:
|
||||
|
||||
`xvfb-run --auto-servernum {{command}}`
|
||||
`xvfb-run {{[-a|--auto-servernum]}} {{command}}`
|
||||
|
||||
- Pass arguments to the Xvfb server:
|
||||
|
||||
`xvfb-run --server-args "{{-screen 0 1024x768x24}}" {{command}}`
|
||||
`xvfb-run {{[-s|--server-args]}} "{{-screen 0 1024x768x24}}" {{command}}`
|
||||
|
||||
10
tldr/lt
10
tldr/lt
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start tunnel from a specific port:
|
||||
|
||||
`lt --port {{8000}}`
|
||||
`lt {{[-p|--port]}} {{8000}}`
|
||||
|
||||
- Specify the upstream server doing the forwarding:
|
||||
|
||||
`lt --port {{8000}} --host {{host}}`
|
||||
`lt {{[-p|--port]}} {{8000}} {{[-h|--host]}} {{host}}`
|
||||
|
||||
- Request a specific subdomain:
|
||||
|
||||
`lt --port {{8000}} --subdomain {{subdomain}}`
|
||||
`lt {{[-p|--port]}} {{8000}} {{[-s|--subdomain]}} {{subdomain}}`
|
||||
|
||||
- Print basic request info:
|
||||
|
||||
`lt --port {{8000}} --print-requests`
|
||||
`lt {{[-p|--port]}} {{8000}} --print-requests`
|
||||
|
||||
- Open the tunnel URL in the default web browser:
|
||||
|
||||
`lt --port {{8000}} --open`
|
||||
`lt {{[-p|--port]}} {{8000}} {{[-o|--open]}}`
|
||||
|
||||
2
tldr/lua
2
tldr/lua
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# lua
|
||||
|
||||
> A powerful, light-weight embeddable programming language.
|
||||
> More information: <https://www.lua.org>.
|
||||
> More information: <https://www.lua.org/manual/5.4/lua.html>.
|
||||
|
||||
- Start an interactive Lua shell:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# luac
|
||||
|
||||
> Lua bytecode compiler.
|
||||
> More information: <https://www.lua.org>.
|
||||
> More information: <https://www.lua.org/manual/5.4/luac.html>.
|
||||
|
||||
- Compile a Lua source file to Lua bytecode:
|
||||
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Force creating a fresh virtual machine:
|
||||
|
||||
`makebuildserver --clean`
|
||||
`makebuildserver {{[-c|--clean]}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# matlab
|
||||
|
||||
> Numerical computation environment by MathWorks.
|
||||
> More information: <https://uk.mathworks.com/help/matlab/>.
|
||||
> More information: <https://se.mathworks.com/help/matlab/matlab_env/startup-options.html>.
|
||||
|
||||
- Run without splash screen during startup:
|
||||
|
||||
|
||||
8
tldr/mdp
8
tldr/mdp
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# mdp
|
||||
|
||||
> A command-line based tool to make presentations from Markdown files.
|
||||
> More information: <https://github.com/visit1985/mdp>.
|
||||
> More information: <https://manned.org/mdp>.
|
||||
|
||||
- Launch a presentation in the terminal from a Markdown file:
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Disable fading transitions:
|
||||
|
||||
`mdp --nofade {{presentation.md}}`
|
||||
`mdp {{[-f|--nofade]}} {{presentation.md}}`
|
||||
|
||||
- Invert font colors to use in terminals with light background:
|
||||
|
||||
`mdp --invert {{presentation.md}}`
|
||||
`mdp {{[-i|--invert]}} {{presentation.md}}`
|
||||
|
||||
- Disable transparency in transparent terminals:
|
||||
|
||||
`mdp --notrans {{presentation.md}}`
|
||||
`mdp {{[-t|--notrans]}} {{presentation.md}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# middleman
|
||||
|
||||
> Static site generator written in Ruby.
|
||||
> More information: <https://middlemanapp.com/>.
|
||||
> More information: <https://middlemanapp.com/basics/install/>.
|
||||
|
||||
- Create a new Middleman project:
|
||||
|
||||
|
||||
@@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Convert a file to the specified format (automatically determined from the file extension):
|
||||
|
||||
`mmdc --input {{input.mmd}} --output {{output.svg}}`
|
||||
`mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}}`
|
||||
|
||||
- Specify the theme of the chart:
|
||||
|
||||
`mmdc --input {{input.mmd}} --output {{output.svg}} --theme {{forest|dark|neutral|default}}`
|
||||
`mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}} {{[-t|--theme]}} {{forest|dark|neutral|default}}`
|
||||
|
||||
- Specify the background color of the chart (e.g. `lime`, `"#D8064F"`, or `transparent`):
|
||||
|
||||
`mmdc --input {{input.mmd}} --output {{output.svg}} --backgroundColor {{color}}`
|
||||
`mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}} {{[-b|--backgroundColor]}} {{color}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# nasm
|
||||
|
||||
> The Netwide Assembler, a portable 80x86 assembler.
|
||||
> More information: <https://nasm.us>.
|
||||
> More information: <https://www.nasm.us/xdoc/2.16.03/html/nasmdoc2.html>.
|
||||
|
||||
- Assemble `source.asm` into a binary file `source`, in the (default) raw binary format:
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set a login [s]hell for a specific user:
|
||||
|
||||
`chpass chsh -s {{path/to/shell}} {{username}}`
|
||||
`chpass -s {{path/to/shell}} {{username}}`
|
||||
|
||||
- Specify a user database entry in the `passwd` file format:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ngrep
|
||||
|
||||
> Filter network traffic packets using regular expressions.
|
||||
> More information: <https://github.com/jpr5/ngrep>.
|
||||
> More information: <https://github.com/jpr5/ngrep/blob/master/EXAMPLES.md>.
|
||||
|
||||
- Capture traffic of all interfaces:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm-home
|
||||
|
||||
> Open the npm page, Yarn page, or GitHub repository of a package in the web browser.
|
||||
> Open the `npm` page, Yarn page, or GitHub repository of a package in the web browser.
|
||||
> More information: <https://github.com/sindresorhus/npm-home>.
|
||||
|
||||
- Open the `npm` page of a specific package in the web browser:
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display more detailed GPU information:
|
||||
|
||||
`nvidia-smi --query`
|
||||
`nvidia-smi {{[-q|--query]}}`
|
||||
|
||||
- Monitor overall GPU usage with 1-second update interval:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> The OCaml repl (read-evaluate-print-loop).
|
||||
> Interprets Ocaml commands.
|
||||
> More information: <https://ocaml.org>.
|
||||
> More information: <https://manned.org/ocaml>.
|
||||
|
||||
- Read OCaml commands from the user and execute them:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> The OCaml bytecode compiler.
|
||||
> Produces executables runnable by the OCaml interpreter.
|
||||
> More information: <https://ocaml.org>.
|
||||
> More information: <https://manned.org/ocamlc>.
|
||||
|
||||
- Create a binary from a source file:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> The findlib package manager for OCaml.
|
||||
> Simplifies linking executables with external libraries.
|
||||
> More information: <https://projects.camlcity.org/projects/findlib.html>.
|
||||
> More information: <https://manned.org/ocamlfind>.
|
||||
|
||||
- Compile a source file to a native binary and link with packages:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> The OCaml native code compiler.
|
||||
> Produces native executables, e.g. ELF on Linux.
|
||||
> More information: <https://ocaml.org>.
|
||||
> More information: <https://manned.org/ocamlopt>.
|
||||
|
||||
- Compile a source file:
|
||||
|
||||
|
||||
@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set a specific login shell for the current user interactively:
|
||||
|
||||
`doas chsh`
|
||||
`doas chpass`
|
||||
|
||||
- Set a specific login [s]hell for the current user:
|
||||
|
||||
`doas chsh -s {{path/to/shell}}`
|
||||
`doas chpass -s {{path/to/shell}}`
|
||||
|
||||
- Set a login [s]hell for a specific user:
|
||||
|
||||
`doas chsh -s {{path/to/shell}} {{username}}`
|
||||
`doas chpass -s {{path/to/shell}} {{username}}`
|
||||
|
||||
- Specify a user database entry in the `passwd` file format:
|
||||
|
||||
`doas chsh -a {{username:encrypted_password:uid:gid:...}}`
|
||||
`doas chpass -a {{username:encrypted_password:uid:gid:...}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pamixer
|
||||
|
||||
> A simple command-line mixer for PulseAudio.
|
||||
> More information: <https://github.com/cdemoulins/pamixer>.
|
||||
> More information: <https://github.com/cdemoulins/pamixer#installation>.
|
||||
|
||||
- List all sinks and sources with their corresponding IDs:
|
||||
|
||||
@@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Increase the volume on default sink by 5%:
|
||||
|
||||
`pamixer --increase {{5}}`
|
||||
`pamixer {{[-i|--increase]}} {{5}}`
|
||||
|
||||
- Decrease the volume on a source by 5%:
|
||||
|
||||
`pamixer --decrease {{5}} --source {{ID}}`
|
||||
`pamixer {{[-d|--decrease]}} {{5}} --source {{ID}}`
|
||||
|
||||
- Use the allow boost option to increase, decrease, or set the volume above 100%:
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Mute the default sink (use `--unmute` instead to unmute):
|
||||
|
||||
`pamixer --mute`
|
||||
`pamixer {{[-m|--mute]}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pass otp
|
||||
|
||||
> A pass extension for managing one-time-password (OTP) tokens.
|
||||
> More information: <https://github.com/tadfisher/pass-otp#readme>.
|
||||
> More information: <https://manned.org/pass-otp>.
|
||||
|
||||
- Prompt for an otpauth URI token and create a new pass file:
|
||||
|
||||
@@ -22,12 +22,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Copy and don't print a 2FA code using the OTP token in a pass file:
|
||||
|
||||
`pass otp --clip {{path/to/pass}}`
|
||||
`pass otp {{[-c|--clip]}} {{path/to/pass}}`
|
||||
|
||||
- Display a QR code using the OTP token stored in a pass file:
|
||||
|
||||
`pass otp uri --qrcode {{path/to/pass}}`
|
||||
`pass otp uri {{[-q|--qrcode]}} {{path/to/pass}}`
|
||||
|
||||
- Prompt for an OTP secret value specifying issuer and account (at least one must be specified) and append to existing pass file:
|
||||
|
||||
`pass otp append --secret --issuer {{issuer_name}} --account {{account_name}} {{path/to/pass}}`
|
||||
`pass otp append {{[-s|--secret]}} {{[-i|--issuer]}} {{issuer_name}} {{[-a|--account]}} {{account_name}} {{path/to/pass}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pdftk
|
||||
|
||||
> PDF toolkit.
|
||||
> More information: <https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit>.
|
||||
> More information: <https://www.pdflabs.com/docs/pdftk-man-page/>.
|
||||
|
||||
- Extract pages 1-3, 5 and 6-10 from a PDF file and save them as another one:
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user