diff --git a/tldr/asnmap b/tldr/asnmap new file mode 100644 index 00000000..6f38d4bc --- /dev/null +++ b/tldr/asnmap @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# asnmap + +> A Go CLI tool for mapping organization network ranges using ASN information. +> Note: An API key is required from ProjectDiscovery Cloud Platform for the tool to work. +> More information: . + +- Lookup CIDR ranges for an ASN: + +`asnmap {{[-a|-asn]}} {{AS5650}} -silent` + +- Lookup CIDR ranges for an IP address: + +`asnmap {{[-i|-ip]}} {{100.19.12.21}} -silent` + +- Lookup CIDR ranges for a domain: + +`asnmap {{[-d|-domain]}} {{example.com}} -silent` + +- Lookup CIDR ranges for an organization: + +`asnmap -org {{GOOGLE}} -silent` + +- Lookup CIDR ranges from a file of targets: + +`asnmap {{[-f|-file]}} {{targets.txt}} -silent` + +- Output results in JSON format: + +`asnmap {{[-d|-domain]}} {{facebook.com}} {{[-j|-json]}} -silent` + +- Output results in CSV format: + +`asnmap {{[-a|-asn]}} {{AS394161}} {{[-c|-csv]}} -silent` + +- Update asnmap to the latest version: + +`asnmap {{[-up|-update]}}` diff --git a/tldr/linux/dmesg b/tldr/linux/dmesg index 6120319b..4a92e67a 100644 --- a/tldr/linux/dmesg +++ b/tldr/linux/dmesg @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git `sudo dmesg {{[-l|--level]}} err` -- Show kernel messages and keep reading new ones, similar to `tail --follow` (available in kernels 3.5.0 and newer): +- Show kernel messages and keep [w]aiting for new ones, similar to `tail --follow` (available in kernels 3.5.0 and newer): `sudo dmesg {{[-w|--follow]}}` diff --git a/tldr/linux/keyd b/tldr/linux/keyd new file mode 100644 index 00000000..50da04eb --- /dev/null +++ b/tldr/linux/keyd @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# keyd + +> Remap keys. +> More information: . + +- Start and enable the `keyd` service: + +`systemctl enable keyd --now` + +- Display keypress information: + +`sudo keyd monitor` + +- Reset bindings and reload the configuration files in `/etc/keyd`: + +`sudo keyd reload` + +- List all valid key names: + +`keyd list-keys` + +- Create a temporary binding: + +`sudo keyd bind "{{pressed_key}} = {{output_key}}` diff --git a/tldr/linux/lshw b/tldr/linux/lshw index b61edc65..dc5cf578 100644 --- a/tldr/linux/lshw +++ b/tldr/linux/lshw @@ -6,9 +6,9 @@ source: https://github.com/tldr-pages/tldr.git # lshw > List detailed information about hardware configurations as root user. -> More information: . +> More information: . -- Launch the GUI: +- Launch the X11 GUI (if available): `sudo lshw -X` @@ -16,10 +16,18 @@ source: https://github.com/tldr-pages/tldr.git `sudo lshw -short` -- List all disks and storage controllers in tabular format: +- List multiple class of hardware (all disks and storage controllers) in tabular format: -`sudo lshw {{[-c|-class]}} disk -class storage -short` +`sudo lshw {{[-c|-class]}} disk {{[-c|-class]}} storage -short` - Save all network interfaces to an HTML/XML/JSON file: `sudo lshw {{[-c|-class]}} network -{{html|xml|json}} > interfaces{{.html|.xml|.json}}` + +- List network interfaces without revealing sensitive information (IP addresses, serial numbers, etc.): + +`sudo lshw {{[-c|-class]}} network -sanitize` + +- List a particular class of hardware: + +`sudo lshw {{[-c|-class]}} {{system|bridge|memory|processor|address|storage|disk|tape|bus|network|display|input|printer|multimedia|communication|power|volume|generic}}`