mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,11 +6,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# autojump
|
||||
|
||||
> Quickly jump among the directories you visit the most.
|
||||
> Aliases like j or jc are provided for even less typing.
|
||||
> Aliases like `j` or `jc` are provided for even less typing.
|
||||
> See also: `bashmarks`.
|
||||
> More information: <https://github.com/wting/autojump>.
|
||||
|
||||
- Add the autojump aliases to your shell:
|
||||
- Add the `autojump` aliases to your shell:
|
||||
|
||||
`source /usr/share/autojump/autojump.{{bash|fish|zsh}}`
|
||||
|
||||
@@ -26,10 +26,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`jo {{pattern}}`
|
||||
|
||||
- Remove non-existing directories from the autojump database:
|
||||
- Remove non-existing directories from the `autojump` database:
|
||||
|
||||
`j --purge`
|
||||
|
||||
- Show the entries in the autojump database:
|
||||
- Show the entries in the `autojump` database:
|
||||
|
||||
`j {{[-s|--stat]}}`
|
||||
|
||||
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Get logs for any streams in the specified group between 1 and 2 hours ago:
|
||||
|
||||
`awslogs get {{/var/log/syslog}} --start='{{2h ago}}' --end='{{1h ago}}'`
|
||||
`awslogs get {{/var/log/syslog}} {{[-s|--start]}} '{{2h ago}}' {{[-e|--end]}} '{{1h ago}}'`
|
||||
|
||||
- Get logs that match a specific CloudWatch Logs Filter pattern:
|
||||
|
||||
`awslogs get {{/aws/lambda/my_lambda_group}} --filter-pattern='{{ERROR}}'`
|
||||
`awslogs get {{/aws/lambda/my_lambda_group}} --filter-pattern '{{ERROR}}'`
|
||||
|
||||
- Watch logs for any streams in the specified group:
|
||||
|
||||
|
||||
@@ -6,24 +6,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# bandwhich
|
||||
|
||||
> Display the current network utilization by process, connection or remote IP/hostname.
|
||||
> More information: <https://github.com/imsnif/bandwhich>.
|
||||
> More information: <https://github.com/imsnif/bandwhich#usage>.
|
||||
|
||||
- Show the remote addresses table only:
|
||||
|
||||
`bandwhich --addresses`
|
||||
`bandwhich {{[-a|--addresses]}}`
|
||||
|
||||
- Show DNS queries:
|
||||
|
||||
`bandwhich --show-dns`
|
||||
`bandwhich {{[-s|--show-dns]}}`
|
||||
|
||||
- Show total (cumulative) usage:
|
||||
|
||||
`bandwhich --total-utilization`
|
||||
`bandwhich {{[-t|--total-utilization]}}`
|
||||
|
||||
- Show the network utilization for a specific network interface:
|
||||
|
||||
`bandwhich --interface {{eth0}}`
|
||||
`bandwhich {{[-i|--interface]}} {{eth0}}`
|
||||
|
||||
- Show DNS queries with a given DNS server:
|
||||
|
||||
`bandwhich --show-dns --dns-server {{dns_server_ip}}`
|
||||
`bandwhich {{[-s|--show-dns]}} {{[-d|--dns-server]}} {{dns_server_ip}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# buku
|
||||
|
||||
> Command-line browser-independent bookmark manager.
|
||||
> More information: <https://github.com/jarun/Buku?tab=readme-ov-file#usage>.
|
||||
> More information: <https://github.com/jarun/Buku#usage>.
|
||||
|
||||
- Display all bookmarks matching "keyword" and with "privacy" tag:
|
||||
|
||||
|
||||
@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display `stdout` and `stderr` of the specified command if and only if it produces a non-zero exit code or crashes:
|
||||
|
||||
`chronic {{command options ...}}`
|
||||
`chronic {{command}} {{option1 option2 ...}}`
|
||||
|
||||
- Display `stdout` and `stderr` of the specified command if and only if it produces a non-empty `stderr`:
|
||||
|
||||
`chronic -e {{command options ...}}`
|
||||
`chronic -e {{command}} {{option1 option2 ...}}`
|
||||
|
||||
- Enable [v]erbose mode:
|
||||
|
||||
`chronic -v {{command options ...}}`
|
||||
`chronic -v {{command}} {{option1 option2 ...}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Launch Dillo with a specific window size and screen location:
|
||||
|
||||
`dillo --geometry {{width}}x{{height}}+{{x_position}}+{{y_position}}`
|
||||
`dillo {{[-g|--geometry]}} {{width}}x{{height}}+{{x_position}}+{{y_position}}`
|
||||
|
||||
- Launch Dillo and open a specific URL:
|
||||
|
||||
@@ -26,12 +26,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Launch Dillo in full-screen mode:
|
||||
|
||||
`dillo --fullwindow`
|
||||
`dillo {{[-f|--fullwindow]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`dillo --version`
|
||||
`dillo {{[-v|--version]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`dillo --help`
|
||||
`dillo {{[-h|--help]}}`
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Scan a web server for user-defined paths with common extensions:
|
||||
|
||||
`dirsearch {{[-u|--url]}} {{url}} --extensions-list {{[-w|--wordlists]}} {{path/to/url-paths.txt,path/to/url-paths.txt,...}}`
|
||||
`dirsearch {{[-u|--url]}} {{url}} --extensions-list {{[-w|--wordlists]}} {{path/to/url-paths1.txt,path/to/url-paths2.txt,...}}`
|
||||
|
||||
- Scan a web server using a cookie:
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> A fast and multi-purpose DNS toolkit to run multiple DNS queries.
|
||||
> Note: input to `dnsx` needs to be passed through `stdin` (pipe `|`) in some cases.
|
||||
> See also: `dig`, `dog`, `dnstracer`.
|
||||
> More information: <https://github.com/projectdiscovery/dnsx>.
|
||||
> More information: <https://docs.projectdiscovery.io/tools/dnsx/running>.
|
||||
|
||||
- Query the A record of a (sub)domain and show [re]sponse received:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker start`
|
||||
`docker start --help`
|
||||
|
||||
- Start a Docker container:
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Generate data with a specific output format:
|
||||
|
||||
`fakedata --format {{csv|tab|sql}} {{generator}}`
|
||||
`fakedata {{[-f|--format]}} {{csv|tab|sql}} {{generator}}`
|
||||
|
||||
- Generate a given number of data items (defaults to 10):
|
||||
|
||||
`fakedata --limit {{n}} {{generator}}`
|
||||
`fakedata {{[-l|--limit]}} {{n}} {{generator}}`
|
||||
|
||||
- Generate data using a custom output template (the first letter of generator names must be capitalized):
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> F-Droid build tool.
|
||||
> F-Droid is an installable catalog of FOSS (Free and Open Source Software) applications for the Android platform.
|
||||
> More information: <https://f-droid.org/>.
|
||||
> More information: <https://f-droid.org/en/docs/Building_Applications/>.
|
||||
|
||||
- Build a specific app:
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`kldload ipmi.ko`
|
||||
|
||||
- Open IPMI shell on the local hardware :
|
||||
- Open IPMI shell on the local hardware:
|
||||
|
||||
`ipmitool shell`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# geth
|
||||
|
||||
> The go-ethereum command-line interface.
|
||||
> More information: <https://geth.ethereum.org>.
|
||||
> More information: <https://geth.ethereum.org/docs/fundamentals/command-line-options>.
|
||||
|
||||
- Connect to the main Ethereum network and automatically download the full node:
|
||||
|
||||
|
||||
6
tldr/gh
6
tldr/gh
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Work seamlessly with GitHub.
|
||||
> Some subcommands such as `config` have their own usage documentation.
|
||||
> More information: <https://cli.github.com/>.
|
||||
> More information: <https://cli.github.com/manual/gh>.
|
||||
|
||||
- Clone a GitHub repository locally:
|
||||
|
||||
@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View an issue in the default web browser:
|
||||
|
||||
`gh issue view --web {{issue_number}}`
|
||||
`gh issue view {{[-w|--web]}} {{issue_number}}`
|
||||
|
||||
- Create a pull request:
|
||||
|
||||
@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View a pull request in the default web browser:
|
||||
|
||||
`gh pr view --web {{pr_number}}`
|
||||
`gh pr view {{[-w|--web]}} {{pr_number}}`
|
||||
|
||||
- Check out a specific pull request locally:
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set a shell command as a `gh` subcommand:
|
||||
|
||||
`gh alias set --shell {{alias_name}} {{command}}`
|
||||
`gh alias set {{[-s|--shell]}} {{alias_name}} {{command}}`
|
||||
|
||||
- Delete a command shortcut:
|
||||
|
||||
|
||||
@@ -14,19 +14,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a reaction for a specific issue:
|
||||
|
||||
`gh api --header {{Accept:application/vnd.github.squirrel-girl-preview+json}} --raw-field '{{content=+1}}' {{repos/:owner/:repo/issues/123/reactions}}`
|
||||
`gh api {{[-H|--header]}} {{Accept:application/vnd.github.squirrel-girl-preview+json}} {{[-f|--raw-field]}} '{{content=+1}}' {{repos/:owner/:repo/issues/123/reactions}}`
|
||||
|
||||
- Display the result of a GraphQL query in JSON format:
|
||||
|
||||
`gh api graphql --field {{name=':repo'}} --raw-field '{{query}}'`
|
||||
`gh api graphql {{[-f|--field]}} {{name=':repo'}} {{[-f|--raw-field]}} '{{query}}'`
|
||||
|
||||
- Send a request using a custom HTTP method:
|
||||
|
||||
`gh api --method {{POST}} {{endpoint}}`
|
||||
`gh api {{[-X|--method]}} {{POST}} {{endpoint}}`
|
||||
|
||||
- Include the HTTP response headers in the output:
|
||||
|
||||
`gh api --include {{endpoint}}`
|
||||
`gh api {{[--include]}} {{endpoint}}`
|
||||
|
||||
- Do not print the response body:
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Log in with a specific GitHub Enterprise Server:
|
||||
|
||||
`gh auth login --hostname {{github.example.com}}`
|
||||
`gh auth login {{[-h|--hostname]}} {{github.example.com}}`
|
||||
|
||||
- Refresh the session to ensure authentication credentials have the correct minimum scopes (removes additional scopes requested previously):
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Expand the permission scopes:
|
||||
|
||||
`gh auth refresh --scopes {{repo,admin:repo_hook,admin:org,admin:public_key,admin:org_hook,...}}`
|
||||
`gh auth refresh {{[-s|--scopes]}} {{repo,admin:repo_hook,admin:org,admin:public_key,admin:org_hook,...}}`
|
||||
|
||||
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Open the settings page of the current repository in the default web browser:
|
||||
|
||||
`gh browse --settings`
|
||||
`gh browse {{[-s|--settings]}}`
|
||||
|
||||
- Open the wiki of the current repository in the default web browser:
|
||||
|
||||
`gh browse --wiki`
|
||||
`gh browse {{[-w|--wiki]}}`
|
||||
|
||||
- Open a specific issue or pull request in the web browser:
|
||||
|
||||
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Open a specific branch in the web browser:
|
||||
|
||||
`gh browse --branch {{branch_name}}`
|
||||
`gh browse {{[-b|--branch]}} {{branch_name}}`
|
||||
|
||||
- Open a specific file or directory of the current repository in the web browser:
|
||||
|
||||
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print the destination URL without open the web browser:
|
||||
|
||||
`gh browse --no-browser`
|
||||
`gh browse {{[-n|--no-browser]}}`
|
||||
|
||||
@@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print a completion script:
|
||||
|
||||
`gh completion --shell {{bash|zsh|fish|powershell}}`
|
||||
`gh completion {{[-s|--shell]}} {{bash|zsh|fish|powershell}}`
|
||||
|
||||
- Append the `gh` completion script to `~/.bashrc`:
|
||||
|
||||
`gh completion --shell {{bash}} >> {{~/.bashrc}}`
|
||||
`gh completion {{[-s|--shell]}} {{bash}} >> {{~/.bashrc}}`
|
||||
|
||||
- Append the `gh` completion script to `~/.zshrc`:
|
||||
|
||||
`gh completion --shell {{zsh}} >> {{~/.zshrc}}`
|
||||
`gh completion {{[-s|--shell]}} {{zsh}} >> {{~/.zshrc}}`
|
||||
|
||||
- Display the subcommand help:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new Gist with a specific [desc]ription:
|
||||
|
||||
`gh gist create {{path/to/file1 path/to/file2 ...}} --desc "{{description}}"`
|
||||
`gh gist create {{path/to/file1 path/to/file2 ...}} {{[-d|--desc]}} "{{description}}"`
|
||||
|
||||
- Edit a Gist:
|
||||
|
||||
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List up to 42 Gists owned by the currently logged in user:
|
||||
|
||||
`gh gist list --limit {{42}}`
|
||||
`gh gist list {{[-L|--limit]}} {{42}}`
|
||||
|
||||
- View a Gist in the default browser without rendering Markdown:
|
||||
|
||||
`gh gist view {{id|url}} --web --raw`
|
||||
`gh gist view {{id|url}} {{[-w|--web]}} {{[-r|--raw]}}`
|
||||
|
||||
@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display a specific issue in the default web browser:
|
||||
|
||||
`gh issue view {{issue_number}} --web`
|
||||
`gh issue view {{issue_number}} {{[-w|--web]}}`
|
||||
|
||||
- Create a new issue in the default web browser:
|
||||
|
||||
`gh issue create --web`
|
||||
`gh issue create {{[-w|--web]}}`
|
||||
|
||||
- List the last 10 issues with the `bug` label:
|
||||
|
||||
`gh issue list --limit {{10}} --label "{{bug}}"`
|
||||
`gh issue list {{[-L|--limit]}} {{10}} {{[-l|--label]}} "{{bug}}"`
|
||||
|
||||
- List closed issues made by a specific user:
|
||||
|
||||
`gh issue list --state closed --author {{username}}`
|
||||
`gh issue list {{[-s|--state]}} closed {{[-A|--author]}} {{username}}`
|
||||
|
||||
- Display the status of issues relevant to the user, in a specific repository:
|
||||
|
||||
`gh issue status --repo {{owner}}/{{repository}}`
|
||||
`gh issue status {{[-R|--repo]}} {{owner}}/{{repository}}`
|
||||
|
||||
- Reopen a specific issue:
|
||||
|
||||
|
||||
@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new issue with the `bug` label interactively:
|
||||
|
||||
`gh issue create --label "{{bug}}"`
|
||||
`gh issue create {{[-l|--label]}} "{{bug}}"`
|
||||
|
||||
- Create a new issue interactively and assign it to the specified users:
|
||||
|
||||
`gh issue create --assignee {{user1,user2,...}}`
|
||||
`gh issue create {{[-a|--assignee]}} {{user1,user2,...}}`
|
||||
|
||||
- Create a new issue with a title, body and assign it to the current user:
|
||||
|
||||
`gh issue create --title "{{title}}" --body "{{body}}" --assignee "{{@me}}"`
|
||||
`gh issue create {{[-t|--title]}} "{{title}}" {{[-b|--body]}} "{{body}}" {{[-a|--assignee]}} "{{@me}}"`
|
||||
|
||||
- Create a new issue interactively, reading the body text from a file:
|
||||
|
||||
`gh issue create --body-file {{path/to/file}}`
|
||||
`gh issue create {{[-F|--body-file]}} {{path/to/file}}`
|
||||
|
||||
- Create a new issue in the default web browser:
|
||||
|
||||
`gh issue create --web`
|
||||
`gh issue create {{[-w|--web]}}`
|
||||
|
||||
- Display the help:
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View labels for the repository in the current directory in the default web browser:
|
||||
|
||||
`gh label list --web`
|
||||
`gh label list {{[-w|--web]}}`
|
||||
|
||||
- Create a label with a specific name, description and color in hexadecimal format for the repository in the current directory:
|
||||
|
||||
`gh label create {{name}} --description "{{description}}" --color {{color_hex}}`
|
||||
`gh label create {{name}} {{[-d|--description]}} "{{description}}" {{[-c|--color]}} {{color_hex}}`
|
||||
|
||||
- Delete a label for the repository in the current directory, prompting for confirmation:
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Update the name and description for a specific label for the repository in the current directory:
|
||||
|
||||
`gh label edit {{name}} --name {{new_name}} --description "{{description}}"`
|
||||
`gh label edit {{name}} {{[-n|--name]}} {{new_name}} {{[-d|--description]}} "{{description}}"`
|
||||
|
||||
- Clone labels from a specific repository into the repository in the current directory:
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Approve the pull request for the current branch:
|
||||
|
||||
`gh pr review --approve`
|
||||
`gh pr review {{[-a|--approve]}}`
|
||||
|
||||
- Merge the pull request associated with the current branch interactively:
|
||||
|
||||
@@ -35,7 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Edit the base branch of a pull request:
|
||||
|
||||
`gh pr edit --base {{branch_name}}`
|
||||
`gh pr edit {{[-B|--base]}} {{branch_name}}`
|
||||
|
||||
- Check the status of the current repository's pull requests:
|
||||
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a pull request, determining the title and description from the commit messages of the current branch:
|
||||
|
||||
`gh pr create --fill`
|
||||
`gh pr create {{[-f|--fill]}}`
|
||||
|
||||
- Create a draft pull request:
|
||||
|
||||
`gh pr create --draft`
|
||||
`gh pr create {{[-d|--draft]}}`
|
||||
|
||||
- Create a pull request specifying the base branch, title, and description:
|
||||
|
||||
`gh pr create --base {{base_branch}} --title "{{title}}" --body "{{body}}"`
|
||||
`gh pr create {{[-B|--base]}} {{base_branch}} {{[-t|--title]}} "{{title}}" {{[-b|--body]}} "{{body}}"`
|
||||
|
||||
- Start opening a pull request in the default web browser:
|
||||
|
||||
`gh pr create --web`
|
||||
`gh pr create {{[-w|--web]}}`
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Merge the pull request, removing the branch on both the local and the remote:
|
||||
|
||||
`gh pr merge --delete-branch`
|
||||
`gh pr merge {{[-d|--delete-branch]}}`
|
||||
|
||||
- Merge the current pull request with the specified merge strategy:
|
||||
|
||||
@@ -26,11 +26,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Merge the current pull request with the specified merge strategy and commit message:
|
||||
|
||||
`gh pr merge --{{merge|squash|rebase}} --subject {{commit_message}}`
|
||||
`gh pr merge --{{merge|squash|rebase}} {{[-t|--subject]}} {{commit_message}}`
|
||||
|
||||
- Squash the current pull request into one commit with the message body and merge:
|
||||
|
||||
`gh pr merge --squash --body="{{commit_message_body}}"`
|
||||
`gh pr merge {{[-s|--squash]}} {{[-b|--body]}} "{{commit_message_body}}"`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View a repository in the default web browser:
|
||||
|
||||
`gh repo view {{repository}} --web`
|
||||
`gh repo view {{repository}} {{[-w|--web]}}`
|
||||
|
||||
- List repositories owned by a specific user or organization (if the owner is not set, the default owner will be the currently logged in user):
|
||||
|
||||
@@ -30,8 +30,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List only non-forks repositories and limit the number of repositories to list (default: 30):
|
||||
|
||||
`gh repo list {{owner}} --source -L {{limit}}`
|
||||
`gh repo list {{owner}} --source {{[-L|--limit]}} {{limit}}`
|
||||
|
||||
- List repositories with a specific primary coding language:
|
||||
|
||||
`gh repo list {{owner}} --language {{language_name}}`
|
||||
`gh repo list {{owner}} {{[-l|--language]}} {{language_name}}`
|
||||
|
||||
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display information about the steps of a job:
|
||||
|
||||
`gh run view --job={{job_number}}`
|
||||
`gh run view {{[-j|--job]}} {{job_number}}`
|
||||
|
||||
- Display the log of a job:
|
||||
|
||||
`gh run view --job={{job_number}} --log`
|
||||
`gh run view {{[-j|--job]}} {{job_number}} --log`
|
||||
|
||||
- Check a specific workflow and exit with a non-zero status if the run failed:
|
||||
|
||||
|
||||
@@ -15,16 +15,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a specific screensaver:
|
||||
|
||||
`gh screensaver --saver {{fireworks|life|marquee|pipes|pollock|starfield}}`
|
||||
`gh screensaver {{[-s|--saver]}} {{fireworks|life|marquee|pipes|pollock|starfield}}`
|
||||
|
||||
- Run the "marquee" screensaver with a specific text and font:
|
||||
|
||||
`gh screensaver --saver {{marquee}} -- --message="{{message}}" --font={{font_name}}`
|
||||
`gh screensaver {{[-s|--saver]}} {{marquee}} -- --message="{{message}}" --font={{font_name}}`
|
||||
|
||||
- Run the "starfield" screensaver with a specific density and speed:
|
||||
|
||||
`gh screensaver --saver {{starfield}} -- --density {{500}} --speed {{10}}`
|
||||
`gh screensaver {{[-s|--saver]}} {{starfield}} -- --density {{500}} --speed {{10}}`
|
||||
|
||||
- List available screensavers:
|
||||
|
||||
`gh screensaver --list`
|
||||
`gh screensaver {{[-l|--list]}}`
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List secret keys for a specific organization:
|
||||
|
||||
`gh secret list --org {{organization}}`
|
||||
`gh secret list {{[-o|--org]}} {{organization}}`
|
||||
|
||||
- List secret keys for a specific repository:
|
||||
|
||||
`gh secret list --repo {{owner}}/{{repository}}`
|
||||
`gh secret list {{[-R|--repo]}} {{owner}}/{{repository}}`
|
||||
|
||||
- Set a secret for the current repository (user will be prompted for the value):
|
||||
|
||||
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set an organization secret for specific repositories:
|
||||
|
||||
`gh secret set {{name}} --org {{organization}} --repos {{repository1,repository2}}`
|
||||
`gh secret set {{name}} {{[-o|--org]}} {{organization}} {{[-r|--repos]}} {{repository1,repository2}}`
|
||||
|
||||
- Remove a secret for the current repository:
|
||||
|
||||
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove a secret for a specific organization:
|
||||
|
||||
`gh secret remove {{name}} --org {{organization}}`
|
||||
`gh secret remove {{name}} {{[-o|--org]}} {{organization}}`
|
||||
|
||||
@@ -18,12 +18,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set a secret for a specific repository:
|
||||
|
||||
`gh secret set {{name}} --body {{value}} --repo {{owner}}/{{repository}}`
|
||||
`gh secret set {{name}} {{[-b|--body]}} {{value}} {{[-R|--repo]}} {{owner}}/{{repository}}`
|
||||
|
||||
- Set an organization secret for specific repositories:
|
||||
|
||||
`gh secret set {{name}} --org {{organization}} --repos "{{repository1,repository2,...}}"`
|
||||
`gh secret set {{name}} {{[-o|--org]}} {{organization}} {{[-r|--repos]}} "{{repository1,repository2,...}}"`
|
||||
|
||||
- Set an organization secret with a specific visibility:
|
||||
|
||||
`gh secret set {{name}} --org {{organization}} --visibility {{all|private|selected}}`
|
||||
`gh secret set {{name}} {{[-o|--org]}} {{organization}} {{[-v|--visibility]}} {{all|private|selected}}`
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add an SSH key to the currently authenticated user's account with a specific title:
|
||||
|
||||
`gh ssh-key add --title {{title}} {{path/to/key.pub}}`
|
||||
`gh ssh-key add {{[-t|--title]}} {{title}} {{path/to/key.pub}}`
|
||||
|
||||
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View a specific workflow in the default browser:
|
||||
|
||||
`gh workflow view {{id|workflow_name|filename.yml}} --web`
|
||||
`gh workflow view {{id|workflow_name|filename.yml}} {{[-w|--web]}}`
|
||||
|
||||
- Display the YAML definition of a specific workflow:
|
||||
|
||||
`gh workflow view {{id|workflow_name|filename.yml}} --yaml`
|
||||
`gh workflow view {{id|workflow_name|filename.yml}} {{[-y|--yaml]}}`
|
||||
|
||||
- Display the YAML definition for a specific Git branch or tag:
|
||||
|
||||
`gh workflow view {{id|workflow_name|filename.yml}} --ref {{branch|tag_name}} --yaml`
|
||||
`gh workflow view {{id|workflow_name|filename.yml}} {{[-r|--ref]}} {{branch|tag_name}} {{[-y|--yaml]}}`
|
||||
|
||||
- List workflow files (use `--all` to include disabled workflows):
|
||||
|
||||
@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a manual workflow using a specific branch or tag with JSON parameters from `stdin`:
|
||||
|
||||
`echo '{{{"param1": "value1", "param2": "value2", ...}}}' | gh workflow run {{id|workflow_name|filename.yml}} --ref {{branch|tag_name}}`
|
||||
`echo '{{{"param1": "value1", "param2": "value2", ...}}}' | gh workflow run {{id|workflow_name|filename.yml}} {{[-r|--ref]}} {{branch|tag_name}}`
|
||||
|
||||
- Enable or disable a specific workflow:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# git fame
|
||||
|
||||
> Pretty-print Git repository contributions.
|
||||
> More information: <https://github.com/casperdcl/git-fame>.
|
||||
> More information: <https://github.com/casperdcl/git-fame#usage>.
|
||||
|
||||
- Calculate contributions for the current Git repository:
|
||||
|
||||
@@ -26,11 +26,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display contributions per file extension:
|
||||
|
||||
`git fame --bytype`
|
||||
`git fame {{[-t|--bytype]}}`
|
||||
|
||||
- Ignore whitespace changes:
|
||||
|
||||
`git fame --ignore-whitespace`
|
||||
`git fame {{[-w|--ignore-whitespace]}}`
|
||||
|
||||
- Detect inter-file line moves and copies:
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Ignore file(s) privately, updating `.git/info/exclude` file:
|
||||
|
||||
`git ignore {{file_pattern}} --private`
|
||||
`git ignore {{file_pattern}} {{[-p|--private]}}`
|
||||
|
||||
- Ignore file(s) locally, updating local `.gitignore` file:
|
||||
|
||||
@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Ignore file(s) globally, updating global `.gitignore` file:
|
||||
|
||||
`git ignore {{file_pattern}} --global`
|
||||
`git ignore {{file_pattern}} {{[-g|--global]}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Generate a .gitignore template:
|
||||
|
||||
`git ignore-io {{item_a,item_b,item_n}}`
|
||||
`git ignore-io {{item_a,item_b,...}}`
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show only tags references in the default remote repository:
|
||||
|
||||
`git ls-remote --tags`
|
||||
`git ls-remote {{[-t|--tags]}}`
|
||||
|
||||
- Show all references from a remote repository based on name or URL:
|
||||
|
||||
|
||||
@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print the current working directory relative to the root of the current Git repository:
|
||||
|
||||
`git root --relative`
|
||||
`git root {{[-r|--relative]}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> A fast and multi-purpose HTTP toolkit written in Go to run multiple probes at once.
|
||||
> Note: not to be confused with the unrelated Python's HTTPX which has the same command name.
|
||||
> More information: <https://github.com/projectdiscovery/httpx>.
|
||||
> More information: <https://docs.projectdiscovery.io/tools/httpx/running>.
|
||||
|
||||
- Run a probe against a [u]RL, host, IP Address or subnet (CIDR notation) showing probe status:
|
||||
|
||||
|
||||
12
tldr/impacket-ntfs-read
Normal file
12
tldr/impacket-ntfs-read
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# impacket-ntfs-read
|
||||
|
||||
> This command is an alias of `ntfs-read.py`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr ntfs-read.py`
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Interface with the Intelligent Platform Management Interface (IPMI).
|
||||
> More information: <https://manned.org/ipmitool>.
|
||||
|
||||
- Open IPMI shell on the local hardware :
|
||||
- Open IPMI shell on the local hardware:
|
||||
|
||||
`sudo ipmitool shell`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# jhipster
|
||||
|
||||
> Web application generator using either monolithic or microservices architecture.
|
||||
> More information: <https://www.jhipster.tech/>.
|
||||
> More information: <https://www.jhipster.tech/creating-an-app/#command-line-options>.
|
||||
|
||||
- Generate a simple full-stack project (monolithic or microservices):
|
||||
|
||||
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Import a JDL file to configure your application (see: <https://start.jhipster.tech/jdl-studio/>):
|
||||
|
||||
`jhipster import-jdl {{first_file.jh second_file.jh ... n_file.jh}}`
|
||||
`jhipster import-jdl {{file1.jh file2.jh ...}}`
|
||||
|
||||
- Generate a CI/CD pipeline for your application:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# josm
|
||||
|
||||
> Extensible OpenStreetMap editor for Java 8+.
|
||||
> More information: <https://josm.openstreetmap.de/>.
|
||||
> More information: <https://manned.org/josm>.
|
||||
|
||||
- Launch JOSM:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> A fast crawler focused on execution in automation pipelines offering both headless and non-headless crawling.
|
||||
> See also: `gau`, `scrapy`, `waymore`.
|
||||
> More information: <https://github.com/projectdiscovery/katana>.
|
||||
> More information: <https://docs.projectdiscovery.io/tools/katana/running>.
|
||||
|
||||
- Crawl a list of URLs:
|
||||
|
||||
@@ -17,10 +17,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`katana -u {{https://example.com}} {{[-hl|-headless]}}`
|
||||
|
||||
- Use `subfinder` to find subdomains, and then use [p]a[s]sive sources (Wayback Machine, Common Crawl, and AlienVault) for URL discovery:
|
||||
|
||||
`subfinder {{[-dL|-list]}} {{path/to/domains.txt}} | katana -passive`
|
||||
|
||||
- Pass requests through a proxy (http/socks5) and use custom headers from a file:
|
||||
|
||||
`katana -proxy {{http://127.0.0.1:8080}} {{[-H|-headers]}} {{path/to/headers.txt}} -u {{https://example.com}}`
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`distrobox-export {{[-b|--bin]}} {{path/to/binary}} {{[-ep|--export-path]}} {{path/to/binary_on_host}}`
|
||||
|
||||
- Export a binary from the container to the host (i.e.`$HOME/.local/bin`) :
|
||||
- Export a binary from the container to the host (i.e.`$HOME/.local/bin`):
|
||||
|
||||
`distrobox-export {{[-b|--bin]}} {{path/to/binary}} {{[-ep|--export-path]}} {{path/to/export}}`
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`systemctl start ipmidrv`
|
||||
|
||||
- Open IPMI shell on the local hardware :
|
||||
- Open IPMI shell on the local hardware:
|
||||
|
||||
`sudo ipmitool shell`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mcookie
|
||||
|
||||
> Generates random 128-bit hexadecimal numbers.
|
||||
> Generate random 128-bit hexadecimal numbers.
|
||||
> More information: <https://manned.org/mcookie>.
|
||||
|
||||
- Generate a random number:
|
||||
|
||||
22
tldr/linux/pkexec
Normal file
22
tldr/linux/pkexec
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pkexec
|
||||
|
||||
> Execute commands as another user.
|
||||
> Asks for password in a GUI if available.
|
||||
> More information: <https://polkit.pages.freedesktop.org/polkit/pkexec.1.html>.
|
||||
|
||||
- Run command as root:
|
||||
|
||||
`pkexec {{command}}`
|
||||
|
||||
- Switch user to root:
|
||||
|
||||
`pkexec`
|
||||
|
||||
- Run command as a specific user:
|
||||
|
||||
`pkexec --user {{username}} {{command}}`
|
||||
25
tldr/linux/setfont
Normal file
25
tldr/linux/setfont
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# setfont
|
||||
|
||||
> Set the terminal font for TTYs.
|
||||
> More information: <https://manned.org/setfont>.
|
||||
|
||||
- Change the terminal font:
|
||||
|
||||
`setfont {{font}}.gz`
|
||||
|
||||
- Change the terminal font by specifying a path:
|
||||
|
||||
`setfont /usr/share/kbd/{{mapping}}/{{font.ext}}`
|
||||
|
||||
- Double font size:
|
||||
|
||||
`setfont {{[-d|--double]}}`
|
||||
|
||||
- Reset to the default font:
|
||||
|
||||
`setfont`
|
||||
@@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Show security scores of running units:
|
||||
|
||||
`systemd-analyze security`
|
||||
|
||||
- View all udev rules together:
|
||||
|
||||
`systemd-analyze cat-config udev/rules.d`
|
||||
|
||||
@@ -14,19 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show detailed information about a device:
|
||||
|
||||
`udisksctl info --block-device {{/dev/sdX}}`
|
||||
`udisksctl info {{[-b|--block-device]}} {{/dev/sdX}}`
|
||||
|
||||
- Show detailed information about a device partition:
|
||||
|
||||
`udisksctl info --block-device {{/dev/sdXN}}`
|
||||
`udisksctl info {{[-b|--block-device]}} {{/dev/sdXN}}`
|
||||
|
||||
- Mount a device partition and prints the mount point:
|
||||
|
||||
`udisksctl mount --block-device {{/dev/sdXN}}`
|
||||
`udisksctl mount {{[-b|--block-device]}} {{/dev/sdXN}}`
|
||||
|
||||
- Unmount a device partition:
|
||||
|
||||
`udisksctl unmount --block-device {{/dev/sdXN}}`
|
||||
`udisksctl unmount {{[-b|--block-device]}} {{/dev/sdXN}}`
|
||||
|
||||
- Power off a device to safely remove it:
|
||||
|
||||
`udisksctl power-off {{[-b|--block-device]}} {{/dev/sdX}}`
|
||||
|
||||
- Monitor the daemon for events:
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Invoke a chaincode method with the specified arguments:
|
||||
|
||||
`minifab invoke {{[-n|--chaincode-name]}} {{chaincode_name}} {{[-p|--chaincode-parameters]}} '"{{method_name}}", "{{argument1}}", "{{argument2}}", ...'`
|
||||
`minifab invoke {{[-n|--chaincode-name]}} {{chaincode_name}} {{[-p|--chaincode-parameters]}} '"{{method_name}}", {{"argument1", "argument2", ...}}'`
|
||||
|
||||
- Make a query on the ledger:
|
||||
|
||||
|
||||
@@ -10,23 +10,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Import a JSON file into a specific collection:
|
||||
|
||||
`mongoimport --file={{path/to/file.json}} --uri={{mongodb_uri}} --collection={{collection_name}}`
|
||||
`mongoimport --file {{path/to/file.json}} --uri {{mongodb_uri}} {{[-c|--collection]}} {{collection_name}}`
|
||||
|
||||
- Import a CSV file, using the first line of the file to determine field names:
|
||||
|
||||
`mongoimport --type={{csv}} --file={{path/to/file.csv}} --db={{database_name}} --collection={{collection_name}}`
|
||||
`mongoimport --type {{csv}} --file {{path/to/file.csv}} {{[-d|--db]}} {{database_name}} {{[-c|--collection]}} {{collection_name}}`
|
||||
|
||||
- Import a JSON array, using each element as a separate document:
|
||||
|
||||
`mongoimport --jsonArray --file={{path/to/file.json}}`
|
||||
`mongoimport --jsonArray --file {{path/to/file.json}}`
|
||||
|
||||
- Import a JSON file using a specific mode and a query to match existing documents:
|
||||
|
||||
`mongoimport --file={{path/to/file.json}} --mode={{delete|merge|upsert}} --upsertFields="{{field1,field2,...}}"`
|
||||
`mongoimport --file {{path/to/file.json}} --mode {{delete|merge|upsert}} --upsertFields "{{field1,field2,...}}"`
|
||||
|
||||
- Import a CSV file, reading field names from a separate CSV file and ignoring fields with empty values:
|
||||
|
||||
`mongoimport --type={{csv}} --file={{path/to/file.csv}} --fieldFile={{path/to/field_file.csv}} --ignoreBlanks`
|
||||
`mongoimport --type {{csv}} --file {{path/to/file.csv}} --fieldFile {{path/to/field_file.csv}} --ignoreBlanks`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Play an audio source exactly `n` times (0 means forever):
|
||||
|
||||
`mpg321 {{[-l|--loop]}} {{n}} {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}`
|
||||
`mpg321 {{[-l|--loop]}} {{n}} {{path/to/file_a|URL path/to/file_b|URL ...}}`
|
||||
|
||||
- Play a directory recursively:
|
||||
|
||||
@@ -19,15 +19,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Enable Basic Keys ( `*` or `/` - Increase or decrease volume, `n` - Skip song, `m` - Mute/unmute.) while playing:
|
||||
|
||||
`mpg321 -K {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}`
|
||||
`mpg321 -K {{path/to/file_a|URL path/to/file_b|URL ...}}`
|
||||
|
||||
- Play files randomly until interrupted:
|
||||
|
||||
`mpg321 {{[-Z|--random]}} {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}`
|
||||
`mpg321 {{[-Z|--random]}} {{path/to/file_a|URL path/to/file_b|URL ...}}`
|
||||
|
||||
- Shuffle the files before playing them once:
|
||||
|
||||
`mpg321 {{[-z|--shuffle]}} {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}`
|
||||
`mpg321 {{[-z|--shuffle]}} {{path/to/file_a|URL path/to/file_b|URL ...}}`
|
||||
|
||||
- Play all files in the current directory and subdirectories, randomly (until interrupted), with Basic Keys enabled:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> A fast port scanner written in Go with a focus on reliability and simplicity.
|
||||
> Note: Some features are only activated when `naabu` is run with root privileges such as SYN scan.
|
||||
> More information: <https://github.com/projectdiscovery/naabu>.
|
||||
> More information: <https://docs.projectdiscovery.io/tools/naabu/running>.
|
||||
|
||||
- Run a SYN scan against default (top 100) ports of remote host:
|
||||
|
||||
|
||||
14
tldr/netstat
14
tldr/netstat
@@ -11,28 +11,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all ports:
|
||||
|
||||
`netstat --all`
|
||||
`netstat {{[-a|--all]}}`
|
||||
|
||||
- List all listening ports:
|
||||
|
||||
`netstat --listening`
|
||||
`netstat {{-l|--listening]}}`
|
||||
|
||||
- List listening TCP ports:
|
||||
|
||||
`netstat --tcp`
|
||||
`netstat {{-t|--tcp]}}`
|
||||
|
||||
- Display PID and program names:
|
||||
|
||||
`netstat --program`
|
||||
`netstat {{[-p|--program]}}`
|
||||
|
||||
- List information continuously:
|
||||
|
||||
`netstat --continuous`
|
||||
`netstat {{[-c|--continuous]}}`
|
||||
|
||||
- List routes and do not resolve IP addresses to hostnames:
|
||||
|
||||
`netstat --route --numeric`
|
||||
`netstat {{[-rn|--route --numeric]}}`
|
||||
|
||||
- List listening TCP and UDP ports (+ user and process if you're root):
|
||||
|
||||
`netstat --listening --program --numeric --tcp --udp --extend`
|
||||
`netstat {{[-tulpne|--tcp --udp --listening --program --numeric --extend]}}`
|
||||
|
||||
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start a shell with the specified packages available:
|
||||
|
||||
`nix-shell {{[-p|--packages]}} {{pkg1 pkg2 pkg3...}}`
|
||||
`nix-shell {{[-p|--packages]}} {{pkg1 pkg2 pkg3 ...}}`
|
||||
|
||||
- Install some packages permanently:
|
||||
|
||||
`nix-env {{[-iA|--install --attr]}} {{nixpkgs.pkg1 nixpkgs.pkg2...}}`
|
||||
`nix-env {{[-iA|--install --attr]}} {{nixpkgs.pkg1 nixpkgs.pkg2 ...}}`
|
||||
|
||||
- Show all dependencies of a store path (package), in a tree format:
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Search `nixpkgs` for a package based on its name or description:
|
||||
|
||||
`nix search {{nixpkgs}} {{search_term...}}`
|
||||
`nix search {{nixpkgs}} {{search_term}}`
|
||||
|
||||
- Show description of a package from nixpkgs:
|
||||
|
||||
|
||||
16
tldr/ntfs-read.py
Normal file
16
tldr/ntfs-read.py
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ntfs-read.py
|
||||
|
||||
> A read-only NTFS explorer for accessing and extracting files from NTFS volumes.
|
||||
> Part of the Impacket suite.
|
||||
> More information: <https://github.com/fortra/impacket>.
|
||||
|
||||
- Open an NTFS volume for exploration (e.g., `C:\.\` or `/dev/disk1s1`):
|
||||
|
||||
`ntfs-read.py {{volume}}`
|
||||
|
||||
- Extract a specific file from an NTFS volume (e.g., `\windows\system32
|
||||
18
tldr/nuclei
18
tldr/nuclei
@@ -6,36 +6,36 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# nuclei
|
||||
|
||||
> Fast and customizable vulnerability scanner based on a simple YAML based DSL.
|
||||
> More information: <https://docs.projectdiscovery.io/tools/nuclei/overview>.
|
||||
> More information: <https://docs.projectdiscovery.io/tools/nuclei/running>.
|
||||
|
||||
- [u]pdate `nuclei` [t]emplates to the latest released version (will be downloaded to `~/nuclei-templates`):
|
||||
|
||||
`nuclei -ut`
|
||||
`nuclei {{[-ut|-update-templates]}}`
|
||||
|
||||
- [l]ist all [t]emplates with a specific [p]rotocol [t]ype:
|
||||
|
||||
`nuclei -tl -pt {{dns|file|http|headless|tcp|workflow|ssl|websocket|whois|code|javascript}}`
|
||||
`nuclei -tl {{[-pt|-type]}} {{dns|file|http|headless|tcp|workflow|ssl|websocket|whois|code|javascript}}`
|
||||
|
||||
- Run an [a]utomatic web [s]can using wappalyzer technology detection specifying a target [u]RL/host to scan:
|
||||
|
||||
`nuclei -as -u {{scanme.nmap.org}}`
|
||||
`nuclei {{[-as|-automatic-scan]}} {{[-u|-target]}} {{scanme.nmap.org}}`
|
||||
|
||||
- Run HTTP [p]rotocol [t]ype templates of high and critical severity, [e]xporting results to [m]arkdown files inside a specific directory:
|
||||
|
||||
`nuclei -severity high,critical -pt http -u {{http://scanme.sh}} -me {{markdown_directory}}`
|
||||
`nuclei {{[-s|-severity]}} high,critical {{[-pt|-type]}} http {{[-u|-target]}} {{http://scanme.sh}} {{[-me|-markdown-export]}} {{markdown_directory}}`
|
||||
|
||||
- Run all templates using a different [r]ate [l]imit and maximum [b]ulk [s]ize with silent output (only showing the findings):
|
||||
|
||||
`nuclei -rl {{150}} -bs {{25}} -c {{25}} -silent -u {{http://scanme.sh}}`
|
||||
`nuclei {{[-rl|-rate-limit]}} {{150}} {{[-bs|-bulk-size]}} {{25}} {{[-c|-concurrency]}} {{25}} -silent {{[-u|-target]}} {{http://scanme.sh}}`
|
||||
|
||||
- Run the WordPress [w]orkflow against a WordPress site:
|
||||
|
||||
`nuclei -w {{path/to/nuclei-templates/workflows/wordpress-workflow.yaml}} -u {{https://sample.wordpress.site}}`
|
||||
`nuclei {{[-w|-workflows]}} {{path/to/nuclei-templates/workflows/wordpress-workflow.yaml}} {{[-u|-target]}} {{https://sample.wordpress.site}}`
|
||||
|
||||
- Run one or more specific [t]emplates or directory with [t]emplates with [v]erbose output in `stderr` and [o]utput detected issues/vulnerabilities to a file:
|
||||
|
||||
`nuclei -t {{path/to/nuclei-templates/http}} -u {{http://scanme.sh}} -v -o {{results}}`
|
||||
`nuclei {{[-t|-templates]}} {{path/to/nuclei-templates/http}} {{[-u|-target]}} {{http://scanme.sh}} {{[-v|-verbose]}} {{[-o|-output]}} {{results}}`
|
||||
|
||||
- Run scan based on one or more [t]emplate [c]onditions:
|
||||
|
||||
`nuclei -tc "{{contains(tags, 'xss') && contains(tags, 'cve')}}" -u {{https://vulnerable.website}}`
|
||||
`nuclei {{[-tc|-template-condition]}} "{{contains(tags, 'xss') && contains(tags, 'cve')}}" {{[-u|-target]}} {{https://vulnerable.website}}`
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display the pollen measurement page for a city at <https://plivazdravlje.hr> in the default web browser:
|
||||
|
||||
`peludna-prognoza "{{city}}" --web`
|
||||
`peludna-prognoza "{{city}}" {{[-w|--web]}}`
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove one or more images given their names:
|
||||
|
||||
`podman rmi {{image:tag}} {{image2:tag}} {{...}}`
|
||||
`podman rmi {{image:tag image2:tag ...}}`
|
||||
|
||||
- Force remove an image:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pueue completions
|
||||
|
||||
> Generates shell completion files for Bash, Elvish, Fish, PowerShell, and Zsh.
|
||||
> Generate shell completion files for Bash, Elvish, Fish, PowerShell, and Zsh.
|
||||
> More information: <https://github.com/Nukesor/pueue>.
|
||||
|
||||
- Generate completions for Bash:
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Search local documentation:
|
||||
|
||||
`raco docs {{search_terms ...}}`
|
||||
`raco docs {{search_terms}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# react-native start
|
||||
|
||||
> Command-line tools to start the React Native server.
|
||||
> More information: <https://github.com/react-native-community/cli/blob/master/docs/commands.md#start>.
|
||||
> More information: <https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin#start>.
|
||||
|
||||
- Start the server that communicates with connected devices:
|
||||
|
||||
|
||||
32
tldr/rg
32
tldr/rg
@@ -7,36 +7,36 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Ripgrep, a recursive line-oriented search tool.
|
||||
> Aims to be a faster alternative to `grep`.
|
||||
> More information: <https://github.com/BurntSushi/ripgrep>.
|
||||
> More information: <https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md>.
|
||||
|
||||
- Recursively search the current directory for a regular expression:
|
||||
- Recursively search current directory for a pattern (regular expression):
|
||||
|
||||
`rg {{regular_expression}}`
|
||||
`rg {{pattern}}`
|
||||
|
||||
- Search for regular expressions recursively in the current directory, including hidden files and files listed in `.gitignore`:
|
||||
- Recursively search for a pattern in a file or directory:
|
||||
|
||||
`rg --no-ignore --hidden {{regular_expression}}`
|
||||
`rg {{pattern}} {{path/to/file_or_directory}}`
|
||||
|
||||
- Search for a regular expression only in a subset of directories:
|
||||
- Include hidden files and entries listed in `.gitignore`:
|
||||
|
||||
`rg {{regular_expression}} {{set_of_subdirs}}`
|
||||
`rg {{[-.|--hidden]}} --no-ignore {{pattern}}`
|
||||
|
||||
- Search for a regular expression in files matching a glob (e.g. `README.*`):
|
||||
- Only search the files whose names match the glob pattern(s) (e.g. `README.*`):
|
||||
|
||||
`rg {{regular_expression}} --glob {{glob}}`
|
||||
`rg {{pattern}} {{[-g|--glob]}} {{filename_glob_pattern}}`
|
||||
|
||||
- Search for filenames that match a regular expression:
|
||||
- Recursively list filenames in the current directory that match a pattern:
|
||||
|
||||
`rg --files | rg {{regular_expression}}`
|
||||
`rg --files | rg {{pattern}}`
|
||||
|
||||
- Only list matched files (useful when piping to other commands):
|
||||
|
||||
`rg --files-with-matches {{regular_expression}}`
|
||||
`rg {{[-l|--files-with-matches]}} {{pattern}}`
|
||||
|
||||
- Show lines that do not match the given regular expression:
|
||||
- Show lines that do not match the pattern:
|
||||
|
||||
`rg --invert-match {{regular_expression}}`
|
||||
`rg {{[-v|--invert-match]}} {{pattern}}`
|
||||
|
||||
- Search a literal string pattern:
|
||||
- Search for a literal string pattern:
|
||||
|
||||
`rg --fixed-strings -- {{string}}`
|
||||
`rg {{[-F|--fixed-strings]}} -- {{string}}`
|
||||
|
||||
@@ -3,7 +3,7 @@ syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# RsaCtfTool
|
||||
# RsaCtfTool.py
|
||||
|
||||
> RSA attack tool for CTF challenges - recover private keys from weak public keys and/or decrypt data.
|
||||
> More information: <https://github.com/RsaCtfTool/RsaCtfTool>.
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Scan a specific list of ports:
|
||||
|
||||
`rustscan {{[-p|--ports]}} {{port1,port2,...,portN}} {{[-a|--addresses]}} {{address_or_addresses}}`
|
||||
`rustscan {{[-p|--ports]}} {{port1,port2,...}} {{[-a|--addresses]}} {{address_or_addresses}}`
|
||||
|
||||
- Scan a specific range of ports:
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Reformat specific files or directories with a custom formatting configuration:
|
||||
|
||||
`scalafmt --config {{path/to/.scalafmt.conf}} {{path/to/file_or_directory}} {{path/to/file_or_directory}} {{...}}`
|
||||
`scalafmt --config {{path/to/.scalafmt.conf}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
||||
|
||||
- Check if files are correctly formatted, returning `0` if all files respect the formatting style:
|
||||
|
||||
@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Exclude files or directories:
|
||||
|
||||
`scalafmt --exclude {{path/to/file_or_directory}} {{...}}`
|
||||
`scalafmt --exclude {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
||||
|
||||
- Format only files that were edited against the current Git branch:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk compiledb
|
||||
|
||||
> Generates compilation database.
|
||||
> Generate compilation database.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/70-ide-compiledb/doc/command.compiledb.adoc>.
|
||||
|
||||
- Generate compilation database:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk qmltypes
|
||||
|
||||
> Generates qmltypes files.
|
||||
> Generate qmltypes files.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/80-ide-qmltypes/doc/command.qmltypes.adoc>.
|
||||
|
||||
- Generate qmltypes files:
|
||||
|
||||
10
tldr/siege
10
tldr/siege
@@ -14,20 +14,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Test a list of URLs:
|
||||
|
||||
`siege --file {{path/to/url_list.txt}}`
|
||||
`siege {{[-f|--file]}} {{path/to/url_list.txt}}`
|
||||
|
||||
- Test list of URLs in a random order (Simulates internet traffic):
|
||||
|
||||
`siege --internet --file {{path/to/url_list.txt}}`
|
||||
`siege {{[-i|--internet]}} {{[-f|--file]}} {{path/to/url_list.txt}}`
|
||||
|
||||
- Benchmark a list of URLs (without waiting between requests):
|
||||
|
||||
`siege --benchmark --file {{path/to/url_list.txt}}`
|
||||
`siege {{[-b|--benchmark]}} {{[-f|--file]}} {{path/to/url_list.txt}}`
|
||||
|
||||
- Set the amount of concurrent connections:
|
||||
|
||||
`siege --concurrent={{50}} --file {{path/to/url_list.txt}}`
|
||||
`siege {{[-c|--concurrent]}} {{50}} {{[-f|--file]}} {{path/to/url_list.txt}}`
|
||||
|
||||
- Set how long for the siege to run for:
|
||||
|
||||
`siege --time={{30s}} --file {{path/to/url_list.txt}}`
|
||||
`siege {{[-t|--time]}} {{30s}} {{[-f|--file]}} {{path/to/url_list.txt}}`
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Download songs from the provided URLs and embed metadata:
|
||||
|
||||
`spotdl {{open.spotify.com/playlist/playlistId open.spotify.com/track/trackId ...}}`
|
||||
`spotdl {{open.spotify.com/playlist/playlistId1 open.spotify.com/track/trackId2 ...}}`
|
||||
|
||||
- Start a web interface to download individual songs:
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Save only the metadata without downloading anything:
|
||||
|
||||
`spotdl save {{open.spotify.com/playlist/playlistId ...}} --save-file {{path/to/save_file.spotdl}}`
|
||||
`spotdl save {{open.spotify.com/playlist/playlistId1 open.spotify.com/track/trackId2 ...}} --save-file {{path/to/save_file.spotdl}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Discover valid subdomains for websites.
|
||||
> Designed as a passive framework to be useful for bug bounties and safe for penetration testing.
|
||||
> More information: <https://github.com/projectdiscovery/subfinder>.
|
||||
> More information: <https://docs.projectdiscovery.io/tools/subfinder/running>.
|
||||
|
||||
- Find subdomains for a specific domain:
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show only specific information about a package:
|
||||
|
||||
`tlmgr info {{package}} --data "{{name}},{{category}},{{installed}},{{size}},{{depends}},..."`
|
||||
`tlmgr info {{package}} --data "{{name}},{{category}},{{installed}},{{size}},{{depends}},{{...}}"`
|
||||
|
||||
- Print all available packages as JSON encoded array:
|
||||
|
||||
|
||||
10
tldr/tmux
10
tldr/tmux
@@ -14,17 +14,17 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`tmux`
|
||||
|
||||
- Start a new named session:
|
||||
- Start a new named [s]ession:
|
||||
|
||||
`tmux new -s {{name}}`
|
||||
`tmux {{[new|new-session]}} -s {{name}}`
|
||||
|
||||
- List existing sessions:
|
||||
|
||||
`tmux ls`
|
||||
`tmux {{[ls|list-sessions]}}`
|
||||
|
||||
- Attach to the most recently used session:
|
||||
|
||||
`tmux attach`
|
||||
`tmux {{[a|attach]}}`
|
||||
|
||||
- Detach from the current session (inside a tmux session):
|
||||
|
||||
@@ -38,6 +38,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`<Ctrl b><w>`
|
||||
|
||||
- Kill a session by name:
|
||||
- Kill a session by [t]arget name:
|
||||
|
||||
`tmux kill-session -t {{name}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new instance:
|
||||
|
||||
`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} instance create --domain-name={{domain_name}} --image-id={{image_id}} | {{--options...}}`
|
||||
`VBoxManage cloud --provider={{provider_name}} --profile={{profile_name}} instance create --domain-name={{domain_name}} --image-id={{image_id}}`
|
||||
|
||||
- Gather information about a particular instance:
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# virsh-undefine
|
||||
# virsh undefine
|
||||
|
||||
> Delete a virtual machine.
|
||||
> More information: <https://manned.org/virsh>.
|
||||
|
||||
@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Clone a virtual machine and automatically generate a new name, storage path, and MAC address:
|
||||
|
||||
`virt-clone --original {{vm_name}} --auto-clone`
|
||||
`virt-clone {{[-o|--original]}} {{vm_name}} --auto-clone`
|
||||
|
||||
- Clone a virtual machine and specify the new name, storage path, and MAC address:
|
||||
|
||||
`virt-clone --original {{vm_name}} --name {{new_vm_name}} --file {{path/to/new_storage}} --mac {{ff:ff:ff:ff:ff:ff|RANDOM}}`
|
||||
`virt-clone {{[-o|--original]}} {{vm_name}} {{[-n|--name]}} {{new_vm_name}} {{[-f|--file]}} {{path/to/new_storage}} {{[-m|--mac]}} {{ff:ff:ff:ff:ff:ff|RANDOM}}`
|
||||
|
||||
@@ -6,24 +6,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# virt-install
|
||||
|
||||
> Create virtual machines with libvirt and begin OS installation.
|
||||
> More information: <https://virt-manager.org/>.
|
||||
> More information: <https://manned.org/virt-install>.
|
||||
|
||||
- Create a virtual machine with 1 GB RAM and 12 GB storage and start a Debian installation:
|
||||
|
||||
`virt-install --name {{vm_name}} --memory {{1024}} --disk path={{path/to/image.qcow2}},size={{12}} --cdrom {{path/to/debian.iso}}`
|
||||
`virt-install {{[-n|--name]}} {{vm_name}} --memory {{1024}} --disk path={{path/to/image.qcow2}},size={{12}} {{[-c|--cdrom]}} {{path/to/debian.iso}}`
|
||||
|
||||
- Create a x86-64, KVM-accelerated, UEFI-based virtual machine with the Q35 chipset, 4 GiB RAM, 16 GiB RAW storage, and start a Fedora installation:
|
||||
|
||||
`virt-install --name {{vm_name}} --arch {{x86_64}} --virt-type {{kvm}} --machine {{q35}} --boot {{uefi}} --memory {{4096}} --disk path={{path/to/image.raw}},size={{16}} --cdrom {{path/to/fedora.iso}}`
|
||||
`virt-install {{[-n|--name]}} {{vm_name}} --arch {{x86_64}} --virt-type {{kvm}} --machine {{q35}} --boot {{uefi}} --memory {{4096}} --disk path={{path/to/image.raw}},size={{16}} {{[-c|--cdrom]}} {{path/to/fedora.iso}}`
|
||||
|
||||
- Create a diskless live virtual machine without an emulated sound device or a USB controller. Don't start an installation and don't autoconnect to console but attach a cdrom to it (might be useful for when using a live CD like tails):
|
||||
|
||||
`virt-install --name {{vm_name}} --memory {{512}} --disk {{none}} --controller {{type=usb,model=none}} --sound {{none}} --autoconsole {{none}} --install {{no_install=yes}} --cdrom {{path/to/tails.iso}}`
|
||||
`virt-install {{[-n|--name]}} {{vm_name}} --memory {{512}} --disk {{none}} --controller {{type=usb,model=none}} --sound {{none}} --autoconsole {{none}} --install {{no_install=yes}} {{[-c|--cdrom]}} {{path/to/tails.iso}}`
|
||||
|
||||
- Create a virtual machine with 16 GiB RAM, 250 GiB storage, 8 cores with hyperthreading, a specific CPU topology, and a CPU model that shares most features with the host CPU:
|
||||
|
||||
`virt-install --name {{vm_name}} --cpu {{host-model}},topology.sockets={{1}},topology.cores={{4}},topology.threads={{2}} --memory {{16384}} --disk path={{path/to/image.qcow2}},size={{250}} --cdrom {{path/to/debian.iso}}`
|
||||
`virt-install {{[-n|--name]}} {{vm_name}} --cpu {{host-model}},topology.sockets={{1}},topology.cores={{4}},topology.threads={{2}} --memory {{16384}} --disk path={{path/to/image.qcow2}},size={{250}} {{[-c|--cdrom]}} {{path/to/debian.iso}}`
|
||||
|
||||
- Create a virtual machine and kickstart an automated deployment based on Fedora 35 using only remote resources (no ISO required):
|
||||
|
||||
`virt-install --name {{vm_name}} --memory {{2048}} --disk path={{path/to/image.qcow2}},size={{20}} --location={{https://download.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/}} --extra-args="{{inst.ks=https://path/to/valid/kickstart.org}}"`
|
||||
`virt-install {{[-n|--name]}} {{vm_name}} --memory {{2048}} --disk path={{path/to/image.qcow2}},size={{20}} {{[-l|--location]}} {{https://download.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/}} {{[-x|--extra-args]}} "{{inst.ks=https://path/to/valid/kickstart.org}}"`
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a QEMU virtual machine and store the state in a specific directory:
|
||||
|
||||
`virt-qemu-run --root={{path/to/directory}} {{path/to/guest.xml}}`
|
||||
`virt-qemu-run {{[-r|--root]}} {{path/to/directory}} {{path/to/guest.xml}}`
|
||||
|
||||
- Run a QEMU virtual machine and display verbose information about the startup:
|
||||
|
||||
`virt-qemu-run --verbose {{path/to/guest.xml}}`
|
||||
`virt-qemu-run {{[-v|--verbose]}} {{path/to/guest.xml}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`virt-qemu-run --help`
|
||||
`virt-qemu-run {{[-h|--help]}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Make virtual machine drive images thin-provisioned.
|
||||
> Note: Use only for offline machines to avoid data corruption.
|
||||
> More information: <https://libguestfs.org>.
|
||||
> More information: <https://manned.org/virt-sparsify>.
|
||||
|
||||
- Create a sparsified compressed image without snapshots from an unsparsified one:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# whois
|
||||
|
||||
> Command-line client for the WHOIS (RFC 3912) protocol.
|
||||
> More information: <https://github.com/rfc1036/whois>.
|
||||
> More information: <https://manned.org/whois>.
|
||||
|
||||
- Get information about a domain name:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# wrangler
|
||||
|
||||
> Cloudflare Workers command-line tool.
|
||||
> More information: <https://developers.cloudflare.com/workers/>.
|
||||
> More information: <https://developers.cloudflare.com/workers/wrangler/commands/>.
|
||||
|
||||
- Initialize a project with a skeleton configuration:
|
||||
|
||||
|
||||
@@ -7,23 +7,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Securely run GUI applications and desktop UIs in Docker containers.
|
||||
> See also `xephyr`.
|
||||
> More information: <https://github.com/mviereck/x11docker>.
|
||||
> More information: <https://github.com/mviereck/x11docker#terminal-syntax>.
|
||||
|
||||
- Launch VLC in a container:
|
||||
|
||||
`x11docker --pulseaudio --share={{$HOME/Videos}} {{jess/vlc}}`
|
||||
`x11docker {{[-p|--pulseaudio]}} --share {{$HOME/Videos}} {{jess/vlc}}`
|
||||
|
||||
- Launch Xfce in a window:
|
||||
|
||||
`x11docker --desktop {{x11docker/xfce}}`
|
||||
`x11docker {{[-d|--desktop]}} {{x11docker/xfce}}`
|
||||
|
||||
- Launch GNOME in a window:
|
||||
|
||||
`x11docker --desktop --gpu --init={{systemd}} {{x11docker/gnome}}`
|
||||
`x11docker {{[-d|--desktop]}} {{[-g|--gpu]}} --init={{systemd}} {{x11docker/gnome}}`
|
||||
|
||||
- Launch KDE Plasma in a window:
|
||||
|
||||
`x11docker --desktop --gpu --init={{systemd}} {{x11docker/kde-plasma}}`
|
||||
`x11docker {{[-d|--desktop]}} {{[-g|--gpu]}} --init={{systemd}} {{x11docker/kde-plasma}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Validate one or more XML documents for well-formedness only:
|
||||
|
||||
`xml validate {{path/to/input1.xml|URI}} {{input2.xml ...}}`
|
||||
`xml validate {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
||||
|
||||
- Validate one or more XML documents against a Document Type Definition (DTD):
|
||||
|
||||
`xml validate --dtd {{path/to/schema.dtd}} {{path/to/input1.xml|URI}} {{input2.xml ...}}`
|
||||
`xml validate --dtd {{path/to/schema.dtd}} {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
||||
|
||||
- Validate one or more XML documents against an XML Schema Definition (XSD):
|
||||
|
||||
`xml validate --xsd {{path/to/schema.xsd}} {{path/to/input1.xml|URI}} {{input2.xml ...}}`
|
||||
`xml validate --xsd {{path/to/schema.xsd}} {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
||||
|
||||
- Validate one or more XML documents against a Relax NG schema (RNG):
|
||||
|
||||
`xml validate --relaxng {{path/to/schema.rng}} {{path/to/input1.xml|URI}} {{input2.xml ...}}`
|
||||
`xml validate --relaxng {{path/to/schema.rng}} {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user