mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-09 23:46:38 +00:00
Update cheatsheets
This commit is contained in:
8
tldr/at
8
tldr/at
@@ -28,3 +28,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Execute commands from a given file next Tuesday:
|
||||
|
||||
`at -f {{path/to/file}} 9:30 PM Tue`
|
||||
|
||||
- List all queued jobs for the current user (same as `atq`):
|
||||
|
||||
`at -l`
|
||||
|
||||
- View a specied job:
|
||||
|
||||
`at -c {{job_number}}`
|
||||
|
||||
41
tldr/aws-s3-sync
Normal file
41
tldr/aws-s3-sync
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aws s3 sync
|
||||
|
||||
> Recursively sync files and directories between your local system and an S3 bucket, or between S3 buckets.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/sync.html>.
|
||||
|
||||
- Sync files and directories from local to a bucket:
|
||||
|
||||
`aws s3 sync {{path/to/file_or_directory}} s3://{{bucket_target_name}}/{{path/to/remote_location}}`
|
||||
|
||||
- Sync files and directories from a bucket to local:
|
||||
|
||||
`aws s3 sync s3://{{bucket_source_name}}/{{path/to/remote_location}} {{path/to/file_or_directory}}`
|
||||
|
||||
- Sync objects between two buckets:
|
||||
|
||||
`aws s3 sync s3://{{bucket_source_name}}/{{path/to/remote_location}} s3://{{bucket_target_name}}/{{path/to/remote_location}}`
|
||||
|
||||
- Sync local files to S3 while excluding specific files or directories:
|
||||
|
||||
`aws s3 sync {{path/to/file_or_directory}} s3://{{bucket_target_name}}/{{path/to/remote_location}} --exclude {{path/to/file}} --exclude {{path/to/directory}}/*`
|
||||
|
||||
- Sync objects between buckets and delete destination files not in source:
|
||||
|
||||
`aws s3 sync s3://{{bucket_source_name}}/{{path/to/remote_location}} s3://{{bucket_target_name}}/{{path/to/remote_location}} --delete`
|
||||
|
||||
- Sync to S3 with advanced options (set ACL and storage class):
|
||||
|
||||
`aws s3 sync {{path/to/local_directory}} s3://{{bucket_name}}/{{path/to/remote_location}} --acl {{private|public-read}} --storage-class {{STANDARD_IA|GLACIER}}`
|
||||
|
||||
- Sync files to S3 and skip unchanged ones (compare size and modification time):
|
||||
|
||||
`aws s3 sync {{path/to/file_or_directory}} s3://{{bucket_name}}/{{path/to/remote_location}} --size-only`
|
||||
|
||||
- Display help:
|
||||
|
||||
`aws s3 sync help`
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit browsh:
|
||||
|
||||
`<Ctrl q>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`browsh {{[-h|--help]}}`
|
||||
|
||||
@@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit `btop`:
|
||||
|
||||
`<q>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`btop {{[-h|--help]}}`
|
||||
|
||||
19
tldr/busybox
Normal file
19
tldr/busybox
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# busybox
|
||||
|
||||
> A collection of small system utilities in a single executable.
|
||||
> Executing `busybox` via a symlink is equivalent to running `busybox symlink_name`.
|
||||
> Linux distributions that use BusyBox will usually provide symlinks for all programs.
|
||||
> More information: <https://www.busybox.net/downloads/BusyBox.html>.
|
||||
|
||||
- Execute a BusyBox function:
|
||||
|
||||
`busybox {{ls|rm|mkdir|cat|...}} {{args}}`
|
||||
|
||||
- Display help and a list of functions:
|
||||
|
||||
`busybox --help`
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit carbonyl:
|
||||
|
||||
`<Ctrl c>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`carbonyl {{[-h|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Continue to the next pattern's commands without checking the pattern:
|
||||
|
||||
`case {{$ANIMAL}} in {{cat}}) echo "It's a cat" ;& {{dog}}) echo "It's either a dog or cat fell through" ;& *) echo "Fallback" ;; esac`
|
||||
|
||||
- Display help:
|
||||
|
||||
`help case`
|
||||
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`docker system df --verbose`
|
||||
|
||||
- Remove unused data:
|
||||
- Remove unused data (append `--volumes` to remove unused volumes as well):
|
||||
|
||||
`docker system prune`
|
||||
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Run a function named `func_name`:
|
||||
|
||||
`func_name`
|
||||
|
||||
- Display help:
|
||||
|
||||
`help function`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Get the translation of a string or output a default string if it doesn't exist:
|
||||
|
||||
`LANGUAGE={{locale}} gettext {{msgid}} {{default_value}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gettext {{[-h|--help]}}`
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Initialize a repository with the specified name for the initial branch:
|
||||
|
||||
`git init --initial-branch={{branch_name}}`
|
||||
`git init {{[-b|--initial-branch]}} {{branch_name}}`
|
||||
|
||||
- Initialize a repository using SHA256 for object hashes (requires Git version 2.29+):
|
||||
|
||||
`git init --object-format={{sha256}}`
|
||||
`git init --object-format {{sha256}}`
|
||||
|
||||
- Initialize a barebones repository, suitable for use as a remote over SSH:
|
||||
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Print the full path of `command`:
|
||||
|
||||
`hash -t {{command}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`hash --help`
|
||||
|
||||
12
tldr/iperf
12
tldr/iperf
@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run on server:
|
||||
|
||||
`iperf -s`
|
||||
`iperf {{[-s|--server]}}`
|
||||
|
||||
- Run on server using UDP mode and set server port to listen on 5001:
|
||||
|
||||
`iperf -u -s -p {{5001}}`
|
||||
`iperf {{[-u|--udp]}} {{[-s|--server]}} {{[-p|--port]}} {{5001}}`
|
||||
|
||||
- Run on client:
|
||||
|
||||
`iperf -c {{server_address}}`
|
||||
`iperf {{[-c|--client]}} {{server_address}}`
|
||||
|
||||
- Run on client every 2 seconds:
|
||||
|
||||
`iperf -c {{server_address}} -i {{2}}`
|
||||
`iperf {{[-c|--client]}} {{server_address}} {{[-i|--interval]}} {{2}}`
|
||||
|
||||
- Run on client with 5 parallel threads:
|
||||
|
||||
`iperf -c {{server_address}} -P {{5}}`
|
||||
`iperf {{[-c|--client]}} {{server_address}} {{[-P|--parallel]}} {{5}}`
|
||||
|
||||
- Run on client using UDP mode:
|
||||
|
||||
`iperf -u -c {{server_address}} -p {{5001}}`
|
||||
`iperf {{[-u|--udp]}} {{[-c|--client]}} {{server_address}} {{[-p|--port]}} {{5001}}`
|
||||
|
||||
10
tldr/iperf3
10
tldr/iperf3
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run iperf3 as a server:
|
||||
|
||||
`iperf3 -s`
|
||||
`iperf3 {{[-s|--server]}}`
|
||||
|
||||
- Run an iperf3 server on a specific port:
|
||||
|
||||
`iperf3 -s -p {{port}}`
|
||||
`iperf3 {{[-s|--server]}} {{[-p|--port]}} {{port}}`
|
||||
|
||||
- Start bandwidth test:
|
||||
|
||||
`iperf3 -c {{server}}`
|
||||
`iperf3 {{[-c|--client]}} {{server}}`
|
||||
|
||||
- Run iperf3 in multiple parallel streams:
|
||||
|
||||
`iperf3 -c {{server}} -P {{streams}}`
|
||||
`iperf3 {{[-c|--client]}} {{server}} {{[-P|--parallel]}} {{streams}}`
|
||||
|
||||
- Reverse direction of the test. Server sends data to the client:
|
||||
|
||||
`iperf3 -c {{server}} -R`
|
||||
`iperf3 {{[-c|--client]}} {{server}} {{[-R|--reverse]}}`
|
||||
|
||||
@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Print full Apache configuration:
|
||||
|
||||
`apachectl -S`
|
||||
|
||||
- Display help:
|
||||
|
||||
`apachectl -h`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Add githooks to the current repository:
|
||||
|
||||
`aurpublish setup`
|
||||
|
||||
- Display help:
|
||||
|
||||
`aurpublish {{[-h|--help]}}`
|
||||
|
||||
@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List services available on the local network along with their addresses and ports, ignoring ones on the local machine:
|
||||
|
||||
`avahi-browse --all --resolve --ignore-local`
|
||||
`avahi-browse {{[-a|--all]}} {{[-r|--resolve]}} {{[-l|--ignore-local]}}`
|
||||
|
||||
- Quickly list services in the local network in SSV format for scripts:
|
||||
|
||||
`avahi-browse --all --terminate --parsable`
|
||||
`avahi-browse {{[-a|--all]}} {{[-t|--terminate]}} {{[-p|--parsable]}}`
|
||||
|
||||
- List domains in the neighbourhood:
|
||||
|
||||
`avahi-browse --browse-domains`
|
||||
`avahi-browse {{[-D|--browse-domains]}}`
|
||||
|
||||
- Limit the search to a particular domain:
|
||||
|
||||
`avahi-browse --all --domain={{domain}}`
|
||||
`avahi-browse {{[-a|--all]}} --domain={{domain}}`
|
||||
|
||||
@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Resolve a local service to its IPv4:
|
||||
|
||||
`avahi-resolve -4 --name {{service.local}}`
|
||||
`avahi-resolve -4 {{[-n|--name]}} {{service.local}}`
|
||||
|
||||
- Resolve an IP to a hostname, verbosely:
|
||||
|
||||
`avahi-resolve --verbose --address {{IP}}`
|
||||
`avahi-resolve {{[-v|--verbose]}} {{[-a|--address]}} {{IP}}`
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Watch for changes in bridge interfaces:
|
||||
|
||||
`bridge {{[mo|monitor]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`bridge {{[h|help]}}`
|
||||
|
||||
@@ -10,20 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List password information for the user:
|
||||
|
||||
`chage --list {{username}}`
|
||||
`chage {{[-l|--list]]} {{username}}`
|
||||
|
||||
- Enable password expiration in 10 days:
|
||||
|
||||
`sudo chage --maxdays {{10}} {{username}}`
|
||||
`sudo chage {{[-M|--maxdays]}} {{10}} {{username}}`
|
||||
|
||||
- Disable password expiration:
|
||||
|
||||
`sudo chage --maxdays {{-1}} {{username}}`
|
||||
`sudo chage {{[-M|--maxdays]}} {{-1}} {{username}}`
|
||||
|
||||
- Set account expiration date:
|
||||
|
||||
`sudo chage --expiredate {{YYYY-MM-DD}} {{username}}`
|
||||
`sudo chage {{[-E|--expiredate]}} {{YYYY-MM-DD}} {{username}}`
|
||||
|
||||
- Force user to change password on next log in:
|
||||
|
||||
`sudo chage --lastday {{0}} {{username}}`
|
||||
`sudo chage {{[-d|--lastday]}} {{0}} {{username}}`
|
||||
|
||||
- Re-enable an account:
|
||||
|
||||
`sudo chage {{[-E|--expiredate]}} -1 {{username}}`
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit the `cu` session when in connection:
|
||||
|
||||
`<Enter><~><.>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`cu --help`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Prompt the user for a yes/no question:
|
||||
|
||||
`dialog --yesno "{{Continue?}}" {{7}} {{40}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`dialog`
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`fadvise --help`
|
||||
`fadvise {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display all possible data columns:
|
||||
|
||||
`fincore --output-all {{path/to/file}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`fincore {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Specify the audio driver:
|
||||
|
||||
`fluidsynth {{[-a|--audio-driver]}} {{pipewire|pulseaudio}} {{path/to/soundfont.sf2}} {{path/to/file.midi}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`fluidsynth {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Launch an application:
|
||||
|
||||
`gtk-launch {{Application_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gtk-launch {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display interface status:
|
||||
|
||||
`ifstatus {{interface_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ifstatus`
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`informant --help`
|
||||
`informant {{[-h|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Leave a static multicast group:
|
||||
|
||||
`sudo ip {{[m|maddress]}} {{[d|delete]}} {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ip {{[m|maddress]}} {{[h|help]}}`
|
||||
|
||||
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- List available transmit power levels for the interface:
|
||||
|
||||
`iwinfo {{interface}} txpowerlist`
|
||||
|
||||
- Display help:
|
||||
|
||||
`iwinfo h`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- List all available folders:
|
||||
|
||||
`kwallet-query {{kdewallet}} {{[-l|--list-entries]}} {{[-f|--folder]}} ""`
|
||||
|
||||
- Display help:
|
||||
|
||||
`kwallet-query {{[-h|--help]}}`
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`libinput -h`
|
||||
`libinput {{[-h|--help]}}`
|
||||
|
||||
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Log a user out on all of their sessions:
|
||||
|
||||
`loginctl terminate-user {{username}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`loginctl {{[-h|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Print log messages as they happen:
|
||||
|
||||
`logread -f`
|
||||
|
||||
- Display help:
|
||||
|
||||
`logread -h`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- List open IPv4 or IPv6 sockets:
|
||||
|
||||
`lsfd -i{{4|6}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lsfd {{[-h|--help]}}`
|
||||
|
||||
@@ -14,20 +14,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display users belonging to a specific group:
|
||||
|
||||
`lslogins --groups={{groups}}`
|
||||
`lslogins {{[-g|--groups]}} {{groups}}`
|
||||
|
||||
- Display user accounts:
|
||||
|
||||
`lslogins --user-accs`
|
||||
`lslogins {{[-u|--user-accs]}}`
|
||||
|
||||
- Display last logins:
|
||||
|
||||
`lslogins --last`
|
||||
`lslogins {{[-L|--last]}}`
|
||||
|
||||
- Display system accounts:
|
||||
|
||||
`lslogins --system-accs`
|
||||
`lslogins {{[-s|--system-accs]}}`
|
||||
|
||||
- Display supplementary groups:
|
||||
|
||||
`lslogins --supp-groups`
|
||||
`lslogins {{[-G|--supp-groups]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Attach to a container:
|
||||
|
||||
`sudo lxc-attach {{container_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-attach {{[-?|--help]}}`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit `lxc-console`:
|
||||
|
||||
`<Ctrl a><q>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-console {{[-?|--help]}}`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Create a container passing options to a template:
|
||||
|
||||
`sudo lxc-create {{[-n|--name]}} {{container_name}} {{[-t|--template]}} download -- {{[-d|--dist]}} {{distro-name}} {{[-r|--release]}} {{release-version}} {{[-a|--arch]}} {{arch}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-create {{[-?|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Delete a container:
|
||||
|
||||
`sudo lxc-destroy {{container_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-destroy {{[-?|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Query information from a container:
|
||||
|
||||
`sudo lxc-info {{container_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-info {{[-?|--help]}}`
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- List containers in a fancy, column-based output:
|
||||
|
||||
`sudo lxc-ls {{[-f|--fancy]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-ls {{[-?|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit out of a foreground container (run this in a separate terminal):
|
||||
|
||||
`sudo lxc-stop {{container_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-start {{[-?|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Stop a container:
|
||||
|
||||
`sudo lxc-stop {{container_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-stop {{[-?|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit minicom:
|
||||
|
||||
`<Ctrl a><x><Enter>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`minicom {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- View all-time network statistics:
|
||||
|
||||
`nstat {{[-a|--ignore]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`nstat {{[-h|--help]}}`
|
||||
|
||||
@@ -24,3 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Start interactive mode with the specified disk selected:
|
||||
|
||||
`sudo parted {{/dev/sdX}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`parted {{[-h|--help]}}`
|
||||
|
||||
@@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Remove a partition in interactive mode:
|
||||
|
||||
`rm {{/dev/sdXN}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`?`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- View a file:
|
||||
|
||||
`pg {{path/to/file}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pg {{[-h|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Record a sample recording using a different sample rate:
|
||||
|
||||
`pw-cat --record --rate {{6000}} {{path/to/file.wav}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-cat {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Monitor a device instead of reserving it:
|
||||
|
||||
`pw-reserve {{[-n|--name]}} {{audioN}} {{[-m|--monitor]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-reserve {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Run a program:
|
||||
|
||||
`pw-v4l2 {{program}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-v4l2 -h`
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Enable debug mode:
|
||||
|
||||
`qmake -d`
|
||||
|
||||
- Display help:
|
||||
|
||||
`qmake -help`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Use a configuration file to fetch mirrors:
|
||||
|
||||
`sudo reflector @{{/etc/xdg/reflector/reflector.conf}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`reflector {{[-h|--help]}}`
|
||||
|
||||
@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Pass the asked password to another program:
|
||||
|
||||
`systemd-ask-password | {{command}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`systemd-ask-password {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Install drivers for detected hardware:
|
||||
|
||||
`sudo ubuntu-drivers install`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ubuntu-drivers`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Listen to events:
|
||||
|
||||
`ubus subscribe {{event_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ubus`
|
||||
|
||||
@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Discard uncommitted changes:
|
||||
|
||||
`uci revert {{config}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`uci`
|
||||
|
||||
@@ -23,8 +23,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add a user to supplementary groups (mind the lack of whitespace):
|
||||
|
||||
`sudo usermod {{[-a|--append]}} {{[-G|--groups]}} {{group1,group2,...}} {{username}}`
|
||||
`sudo usermod {{[-aG|--append --groups]}} {{group1,group2,...}} {{username}}`
|
||||
|
||||
- Change a user home directory:
|
||||
|
||||
`sudo usermod {{[-m|--move-home]}} {{[-d|--home]}} {{path/to/new_home}} {{username}}`
|
||||
|
||||
- Lock an account:
|
||||
|
||||
`sudo usermod {{[-L|--lock]}} {{username}}`
|
||||
|
||||
- Unlock an account:
|
||||
|
||||
`sudo usermod {{[-U|--unlock]}} {{username}}`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Skip testing for Vulkan support:
|
||||
|
||||
`waypipe --test-skip-vulkan ssh {{user}}@{{server}} {{program}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`waypipe {{[-h|--help]}}`
|
||||
|
||||
@@ -28,3 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Declare a readonly variable with the specified value:
|
||||
|
||||
`local -r {{variable}}="{{value}}"`
|
||||
|
||||
- Display help:
|
||||
|
||||
`local --help`
|
||||
|
||||
2
tldr/ls
2
tldr/ls
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List files in [l]ong format, sorted by [S]ize (descending) recursively:
|
||||
|
||||
`ls {{-lSR|-lS --recursive}}`
|
||||
`ls {{[-lSR|-lS --recursive]}}`
|
||||
|
||||
- List files in [l]ong format, sorted by [t]ime the file was modified and in reverse order (oldest first):
|
||||
|
||||
|
||||
@@ -33,3 +33,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Reduce file sizes of all GIF images in the current directory by reducing quality:
|
||||
|
||||
`magick mogrify -layers 'optimize' -fuzz {{7%}} {{*.gif}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`magick mogrify -help`
|
||||
|
||||
@@ -24,3 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Send a `tar.gz` file as an attachment:
|
||||
|
||||
`tar cvzf - {{path/to/directory1 path/to/directory2}} | uuencode {{data.tar.gz}} | mail --subject "{{subject_line}}" {{to_user@example.com}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`mail {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Initialize a database:
|
||||
|
||||
`sudo mariadb-install-db --user {{user}} --basedir {{/usr}} --datadir {{/var/lib/mysql}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`mariadb-install-db --help`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Convert a `.po` file to a `.mo` file:
|
||||
|
||||
`msgfmt {{path/to/file.po}} {{[-o|--output-file]}} {{path/to/file.mo}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`msgfmt {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Define locale to generate from a specific template:
|
||||
|
||||
`msginit {{[-l|--locale]}} {{locale}} {{[-i|--input]}} {{path/to/messages.pot}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`msginit {{[-h|--help]}}`
|
||||
|
||||
@@ -3,7 +3,7 @@ syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# Exclamation mark
|
||||
# msgmerge
|
||||
|
||||
> Update an existing translation file from a new template.
|
||||
> More information: <https://www.gnu.org/software/gettext/manual/html_node/msgmerge-Invocation.html>.
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Update a translation file:
|
||||
|
||||
`msgmerge {{[-U|--update]}} {{path/to/file.po}} {{path/to/messages.pot}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`msgmerge {{[-h|--help]}}`
|
||||
|
||||
4
tldr/o
4
tldr/o
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Quit Orbiton:
|
||||
|
||||
`<Ctrl q>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`o {{[-h|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display a specific date (represented as a Unix timestamp) using the default format:
|
||||
|
||||
`date -r {{1473305798}}`
|
||||
|
||||
- Display a date relative to the current date using the default format:
|
||||
|
||||
`date -v {{+1d}} -v {{-20m}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Make the password of the account blank (it will set the named account passwordless):
|
||||
|
||||
`passwd {{[-d|--delete]}}`
|
||||
|
||||
- Set password programmatically (ideal for install scripts):
|
||||
|
||||
`yes {{password}} | passwd`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit picocom:
|
||||
|
||||
`<Ctrl a><Ctrl x>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`picocom {{[-h|--help]}}`
|
||||
|
||||
25
tldr/propelauth
Normal file
25
tldr/propelauth
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# propelauth
|
||||
|
||||
> Set up PropelAuth authentication as quickly and easily as possible.
|
||||
> More information: <https://docs.propelauth.com/reference/api/cli>.
|
||||
|
||||
- Login to PropelAuth using an API Key generated from <https://auth.propelauth.com/api_keys/personal>:
|
||||
|
||||
`propelauth login`
|
||||
|
||||
- Set the default PropelAuth Project for the CLI. If no default project is set, the system will prompt for selecting a Project each time certain commands are run:
|
||||
|
||||
`propelauth set-default-project`
|
||||
|
||||
- Install PropelAuth authentication in an application. If no directory is provided, the current directory is used:
|
||||
|
||||
`propelauth setup {{[-f|--framework]}} {{path/to/directory}}`
|
||||
|
||||
- Log the CLI out of PropelAuth:
|
||||
|
||||
`propelauth logout`
|
||||
6
tldr/pwd
6
tldr/pwd
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pwd
|
||||
|
||||
> Print name of current/working directory.
|
||||
> Print the name of current/working directory.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/pwd-invocation.html>.
|
||||
|
||||
- Print the current directory:
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Print the current directory, and resolve all symlinks (i.e. show the "physical" path):
|
||||
|
||||
`pwd {{[-P|--physical]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pwd --help`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Copy at most the specified number of lines:
|
||||
|
||||
`readarray -n {{N}} {{array_name}} < {{path/to/file.txt}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`help mapfile`
|
||||
|
||||
@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Execute quietly without start and done messages:
|
||||
|
||||
`script {{[-q|--quiet]}} {{logfile.log}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`script {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display the full Object Identifier (OID) path:
|
||||
|
||||
`snmpbulkget -v {{version}} -c {{community}} -O f {{ip}} {{oid}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`snmpbulkget {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Fetch the disk space usage:
|
||||
|
||||
`snmpdf -v {{version}} -c {{community}} {{ip}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`snmpdf {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display the full Object Identifier (OID) path:
|
||||
|
||||
`snmpget -v {{version}} -c {{community}} -O f {{ip}} {{oid}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`snmpget {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display the full Object Identifier (OID) path:
|
||||
|
||||
`snmpgetnext -v {{version}} -c {{community}} -O f {{ip}} {{oid}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`snmpgetnext {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Fetch the networking status:
|
||||
|
||||
`snmpnetstat -v {{version}} -c {{community}} {{ip}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`snmpnetstat {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Set a value:
|
||||
|
||||
`snmpset -v {{version}} -c {{community}} {{ip}} {{oid}} {{value_type}} {{value}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`snmpset {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Fetch the values:
|
||||
|
||||
`snmpstatus -v {{version}} -c {{community}} {{ip}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`snmpstatus {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Fetch data:
|
||||
|
||||
`snmptable -v {{version}} -c {{community}} {{ip}} {{oid}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`snmptable {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Start the prompt:
|
||||
|
||||
`snmptest -v {{version}} -c {{community}} {{ip}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`snmptest {{[-h|--help]}}`
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Query system information on a remote host by OID using SNMPv3 without authentication or encryption:
|
||||
|
||||
`snmpwalk -v 3 -l {{noAuthNoPriv}} -u {{username}} {{ip}} {{oid}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`snmpwalk {{[-h|--help]}}`
|
||||
|
||||
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Turn character echoing off or on:
|
||||
|
||||
`stty {{-echo|echo}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`stty --help`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Set max per-user process limit:
|
||||
|
||||
`ulimit -u 30`
|
||||
|
||||
- Display help:
|
||||
|
||||
`help ulimit`
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Generate a new `/etc/machine-id` file and enable customizations to be able to change the host name to avoid network conflicts:
|
||||
|
||||
`sudo virt-sysprep --domain {{vm_name}} --enable {{customizations}} --hostname {{host_name}} --operation {{machine-id}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`virt-sysprep {{[-he|--help]}}`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Wait for a job to finish:
|
||||
|
||||
`wait %{{N}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`wait --help`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Don't add a header containing metadata to the output file:
|
||||
|
||||
`xgettext --omit-header {{path/to/input_file}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`xgettext {{[-h|--help]}}`
|
||||
|
||||
Reference in New Issue
Block a user