diff --git a/tldr/adb-connect b/tldr/adb-connect new file mode 100644 index 00000000..eba4f9cd --- /dev/null +++ b/tldr/adb-connect @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# adb connect + +> Connect to an Android device wirelessly. +> More information: . + +- Pair with an Android device (address and pairing code can be found in developer options): + +`adb pair {{ip_address}}:{{port}}` + +- Connect to an Android device (port will be different from pairing): + +`adb connect {{ip_address}}:{{port}}` + +- Disconnect a device: + +`adb disconnect {{ip_address}}:{{port}}` diff --git a/tldr/adb-disconnect b/tldr/adb-disconnect new file mode 100644 index 00000000..b6ea1661 --- /dev/null +++ b/tldr/adb-disconnect @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# adb disconnect + +> This command has been moved to `adb connect`. + +- View documentation for `adb disconnect`: + +`tldr adb connect` diff --git a/tldr/adb-pair b/tldr/adb-pair new file mode 100644 index 00000000..21f28d65 --- /dev/null +++ b/tldr/adb-pair @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# adb pair + +> This command has been moved to `adb connect`. + +- View documentation for `adb pair`: + +`tldr adb connect` diff --git a/tldr/case b/tldr/case index 7bc317a4..07ef0d01 100644 --- a/tldr/case +++ b/tldr/case @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Combine patterns with |, use * as a fallback pattern: -`case {{$COUNTRULE}} in {{[wW]|words}}) {{wc -w README}} ;; {{[lL]|lines}}) {{wc -l README}} ;; *) {{echo "what?"}}; ;; esac` +`case {{$COUNTRULE}} in {{[wW]|words}}) {{wc -w README}} ;; {{[lL]|lines}}) {{wc -l README}} ;; *) {{echo "what?"}} ;; esac` - Allow matching multiple patterns: diff --git a/tldr/gendesk b/tldr/gendesk new file mode 100644 index 00000000..6ccfc1de --- /dev/null +++ b/tldr/gendesk @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gendesk + +> Specifies the command to generate a `.desktop` file and a download icon with minimal information. +> More information: . + +- Create a `.desktop` file named `app`: + +`gendesk -n --name "{{app}}" --exec "{{/path/to/app}}" --icon "{{/path/to/icon.png}}" --comment "{{This is application}}"` + +- Create a `.desktop` file named `app`, do not display any output, and overwrite it if it exists: + +`gendesk -q -f -n --name "{{app}}" --exec "{{/path/to/app}}" --icon "{{/path/to/icon.png}}" --comment "{{This is application}}"` + +- Display help: + +`gendesk -h` diff --git a/tldr/linux/audit2allow b/tldr/linux/audit2allow index e5a10b41..0d956d53 100644 --- a/tldr/linux/audit2allow +++ b/tldr/linux/audit2allow @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # audit2allow > Create an SELinux local policy module to allow rules based on denied operations found in logs. -> Note: Use audit2allow with caution—always review the generated policy before applying it, as it may allow excessive access. +> Note: Use audit2allow with caution. Always review the generated policy before applying it, as it may allow excessive access. > More information: . - Generate a local policy to allow access for all denied services: diff --git a/tldr/linux/parted b/tldr/linux/parted index 89b40ce9..f0cb90df 100644 --- a/tldr/linux/parted +++ b/tldr/linux/parted @@ -6,37 +6,21 @@ source: https://github.com/tldr-pages/tldr.git # parted > A partition manipulation program. -> See also: `partprobe`. +> See also: `parted-interactive`, `partprobe`. > More information: . - List partitions on all block devices: `sudo parted --list` +- Create a new partition table of the specified label-type: + +`sudo parted {{/dev/sdX}} --script mklabel {{aix|amiga|bsd|dvh|gpt|loop|mac|msdos|pc98|sun}}` + +- Create a new `gpt` partition table with a 500MiB boot partition and give the rest for the system partition: + +`sudo parted {{/dev/sdX}} --script mklabel gpt mkpart primary 0% 500MiB mkpart primary 500MiB 100%` + - Start interactive mode with the specified disk selected: `sudo parted {{/dev/sdX}}` - -- Create a new partition table of the specified label-type: - -`sudo parted --script {{/dev/sdX}} mklabel {{aix|amiga|bsd|dvh|gpt|loop|mac|msdos|pc98|sun}}` - -- Show partition information in interactive mode: - -`print` - -- Select a disk in interactive mode: - -`select {{/dev/sdX}}` - -- Create a 16 GB partition with the specified filesystem in interactive mode: - -`mkpart {{primary|logical|extended}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}` - -- Resize a partition in interactive mode: - -`resizepart {{/dev/sdXN}} {{end_position_of_partition}}` - -- Remove a partition in interactive mode: - -`rm {{/dev/sdXN}}` diff --git a/tldr/linux/parted-interactive b/tldr/linux/parted-interactive new file mode 100644 index 00000000..57e6e6b5 --- /dev/null +++ b/tldr/linux/parted-interactive @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# parted + +> A partition manipulation program. +> See also: `partprobe`. +> More information: . + +- Start interactive mode with the specified disk selected: + +`sudo parted {{/dev/sdX}}` + +- Show partition information in interactive mode: + +`print` + +- Select a disk in interactive mode: + +`select {{/dev/sdX}}` + +- Create a 16 GB partition with the specified filesystem in interactive mode: + +`mkpart {{primary|logical|extended}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}` + +- Resize a partition in interactive mode: + +`resizepart {{/dev/sdXN}} {{end_position_of_partition}}` + +- Remove a partition in interactive mode: + +`rm {{/dev/sdXN}}` diff --git a/tldr/lpr b/tldr/lpr index 3f707da0..8c562b0d 100644 --- a/tldr/lpr +++ b/tldr/lpr @@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git `lpr -P {{printer}} {{path/to/file}}` -- Print either a single page (e.g. 2) or a range of pages (e.g. 2–16): +- Print either a single page (e.g. 2) or a range of pages (e.g. 2-16): `lpr -o page-ranges={{2|2-16}} {{path/to/file}}` diff --git a/tldr/sgpt b/tldr/sgpt index 6a4b5ce8..00ec8f5d 100644 --- a/tldr/sgpt +++ b/tldr/sgpt @@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git `sgpt --chat {{session_name}} "{{please remember my favorite number: 4}}"` -- Start a `REPL` (Read–eval–print loop) session: +- Start a `REPL` (Read-eval-print loop) session: `sgpt --repl {{command}}`