diff --git a/tldr/airodump-ng b/tldr/airodump-ng index 71fa157e..82d23d04 100644 --- a/tldr/airodump-ng +++ b/tldr/airodump-ng @@ -9,10 +9,18 @@ source: https://github.com/tldr-pages/tldr.git > Part of `aircrack-ng`. > More information: . -- Capture packets and display information about a wireless network: +- Capture packets and display information about wireless network(s) on the 2.4GHz band: `sudo airodump-ng {{interface}}` +- Capture packets and display information about wireless network(s) on the 5GHz band: + +`sudo airodump-ng {{interface}} --band a` + +- Capture packets and display information about wireless network(s) on both 2.4GHz and 5GHz bands: + +`sudo airodump-ng {{interface}} --band abg` + - Capture packets and display information about a wireless network given the MAC address and channel, and save the output to a file: `sudo airodump-ng --channel {{channel}} --write {{path/to/file}} --bssid {{mac}} {{interface}}` diff --git a/tldr/bat b/tldr/bat index 65f0ecc5..bb80e2a6 100644 --- a/tldr/bat +++ b/tldr/bat @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > A `cat` clone with syntax highlighting and Git integration. > More information: . -- Print the contents of one or more files to `stdout`: +- Pretty print the contents of one or more files to `stdout`: `bat {{path/to/file1 path/to/file2 ...}}` @@ -17,18 +17,26 @@ source: https://github.com/tldr-pages/tldr.git `bat {{path/to/file1 path/to/file2 ...}} > {{path/to/target_file}}` -- Append several files into the target file: +- Remove decorations and disable paging (`--style plain` can be replaced with `-p`, or both options with `-pp`): -`bat {{path/to/file1 path/to/file2 ...}} >> {{path/to/target_file}}` +`bat --style plain --pager never {{path/to/file}}` -- Number all output lines: +- Highlight a specific line or a range of lines with a different background color: -`bat --number {{path/to/file}}` +`bat {{--highlight-line|-H}} {{10|5:10|:10|10:|10:+5}} {{path/to/file}}` -- Syntax highlight a JSON file: +- Show non-printable characters like space, tab or newline: -`bat --language json {{path/to/file.json}}` +`bat {{--show-all|-A}} {{path/to/file}}` + +- Remove all decorations except line numbers in the output: + +`bat {{--number|-n}} {{path/to/file}}` + +- Syntax highlight a JSON file by explicitly setting the language: + +`bat {{--language|-l}} json {{path/to/file.json}}` - Display all supported languages: -`bat --list-languages` +`bat {{--list-languages|-L}}` diff --git a/tldr/dolt-gc b/tldr/dolt-gc new file mode 100644 index 00000000..c74f6902 --- /dev/null +++ b/tldr/dolt-gc @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# dolt gc + +> Search the repository for data that are no longer referenced and no longer needed. +> More information: . + +- Clean up unreferenced data from the repository: + +`dolt gc` + +- Initiate a faster but less thorough garbage collection process: + +`dolt gc --shallow` diff --git a/tldr/linux/iwlist b/tldr/linux/iwlist new file mode 100644 index 00000000..e003c1d1 --- /dev/null +++ b/tldr/linux/iwlist @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# iwlist + +> Get detailed information from a wireless interface. +> More information: . + +- Display the list of access points and ad-hoc cells in range: + +`iwlist {{wireless_interface}} scan` + +- Display available frequencies in the device: + +`iwlist {{wireless_interface}} frequency` + +- List the bit-rates supported by the device: + +`iwlist {{wireless_interface}} rate` + +- List the WPA authentication parameters currently set: + +`iwlist {{wireless_interface}} auth` + +- List all the WPA encryption keys set in the device: + +`iwlist {{wireless_interface}} wpakeys` + +- List the encryption key sizes supported and list all the encryption keys set in the device: + +`iwlist {{wireless_interface}} keys` + +- List the various power management attributes and modes of the device: + +`iwlist {{wireless_interface}} power` + +- List generic information elements set in the device (used for WPA support): + +`iwlist {{wireless_interface}} genie` diff --git a/tldr/linux/macchanger b/tldr/linux/macchanger index 06e5cf59..090d29a6 100644 --- a/tldr/linux/macchanger +++ b/tldr/linux/macchanger @@ -16,10 +16,18 @@ source: https://github.com/tldr-pages/tldr.git `macchanger --random {{interface}}` -- Set interface to a specific MAC: +- Set an interface to a random MAC address, and pretend to be a [b]urned-[i]n-[a]ddress: + +`macchanger --random --bia {{interface}}` + +- Set an interface to a specific MAC address: `macchanger --mac {{XX:XX:XX:XX:XX:XX}} {{interface}}` -- Reset interface to its permanent hardware MAC: +- Print the identifications (the first three bytes of a MAC address) of all known vendors: + +`macchanger --list` + +- Reset an interface to its permanent hardware MAC address: `macchanger --permanent {{interface}}` diff --git a/tldr/pipes.sh b/tldr/pipes.sh new file mode 100644 index 00000000..6135584f --- /dev/null +++ b/tldr/pipes.sh @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pipes.sh + +> A bash script which draws randomly pathed pipes over the terminal. +> More information: . + +- Change the pa[t]tern of the pipes: + +`pipes.sh -t {{0..9}}` + +- Change the [c]olor of the pipes: + +`pipes.sh -c {{0..7}}` + +- Change the [f]ramerate of the pipes: + +`pipes.sh -f {{20..100}}` + +- Disable [C]olors: + +`pipes.sh -C` + +- Display [v]ersion: + +`pipes.sh -v` diff --git a/tldr/pngtopnm b/tldr/pngtopnm new file mode 100644 index 00000000..de3514ba --- /dev/null +++ b/tldr/pngtopnm @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pngtopnm + +> This command is superseded by `pngtopam`. +> More information: . + +- View documentation for the current command: + +`tldr pngtopam`