diff --git a/tldr/arjun b/tldr/arjun new file mode 100644 index 00000000..2a6ba849 --- /dev/null +++ b/tldr/arjun @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# arjun + +> Discover HTTP parameters for web applications. +> More information: . + +- Scan a URL for GET parameters: + +`arjun -u {{https://example.com/page.php}}` + +- Scan using POST method: + +`arjun -u {{https://example.com/api}} -m POST` + +- Save discovered parameters to a JSON file: + +`arjun -u {{https://example.com}} -o {{path/to/output.json}}` + +- Use a custom wordlist: + +`arjun -u {{https://example.com}} -w {{path/to/wordlist.txt}}` + +- Increase request delay by specific amount of seconds to avoid rate limiting: + +`arjun -u {{https://example.com}} -d {{2}}` diff --git a/tldr/bfs b/tldr/bfs index 9b8b7f65..aa1c50b8 100644 --- a/tldr/bfs +++ b/tldr/bfs @@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git - Find files by extension: -`bfs {{root_path}} -name '{{*.ext}}'` +`bfs {{path/to/directory}} -name '{{*.ext}}'` - Find files matching multiple path/name patterns: -`bfs {{root_path}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'` +`bfs {{path/to/directory}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'` - Find directories matching a given name, in case-insensitive mode: -`bfs {{root_path}} -type d -iname '{{*lib*}}'` +`bfs {{path/to/directory}} -type d -iname '{{*lib*}}'` - Find files matching a given pattern, excluding specific paths: -`bfs {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'` +`bfs {{path/to/directory}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'` - Find files matching a given size range, limiting the recursive depth to "1": -`bfs {{root_path}} -maxdepth 1 -size {{+500k}} -size {{-10M}}` +`bfs {{path/to/directory}} -maxdepth 1 -size {{+500k}} -size {{-10M}}` - Run a command for each file (use `{}` within the command to access the filename): -`bfs {{root_path}} -name '{{*.ext}}' -exec {{wc -l}} {} \;` +`bfs {{path/to/directory}} -name '{{*.ext}}' -exec {{wc -l}} {} \;` - Find all files modified today and pass the results to a single command as arguments: -`bfs {{root_path}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+` +`bfs {{path/to/directory}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+` - Find empty files (0 byte) or directories and delete them verbosely: -`bfs {{root_path}} -type {{f|d}} -empty -delete -print` +`bfs {{path/to/directory}} -type {{f|d}} -empty -delete -print` diff --git a/tldr/find b/tldr/find index 0ed12ed8..33e96607 100644 --- a/tldr/find +++ b/tldr/find @@ -11,32 +11,32 @@ source: https://github.com/tldr-pages/tldr.git - Find files by extension: -`find {{root_path}} -name '{{*.ext}}'` +`find {{path/to/directory}} -name '{{*.ext}}'` - Find files matching multiple path/name patterns: -`find {{root_path}} -path '{{*/path/*/*.ext}}' -or -name '{{*pattern*}}'` +`find {{path/to/directory}} -path '{{*/path/*/*.ext}}' -or -name '{{*pattern*}}'` - Find directories matching a given name, in case-insensitive mode: -`find {{root_path}} -type d -iname '{{*lib*}}'` +`find {{path/to/directory}} -type d -iname '{{*lib*}}'` - Find files matching a given pattern, excluding specific paths: -`find {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'` +`find {{path/to/directory}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'` - Find files matching a given size range, limiting the recursive depth to "1": -`find {{root_path}} -maxdepth 1 -size {{+500k}} -size {{-10M}}` +`find {{path/to/directory}} -maxdepth 1 -size {{+500k}} -size {{-10M}}` - Run a command for each file (use `{}` within the command to access the filename): -`find {{root_path}} -name '{{*.ext}}' -exec {{wc -l}} {} \;` +`find {{path/to/directory}} -name '{{*.ext}}' -exec {{wc -l}} {} \;` - Find all files modified today and pass the results to a single command as arguments: -`find {{root_path}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+` +`find {{path/to/directory}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+` - Search for either empty files or directories and delete them verbosely: -`find {{root_path}} -type {{f|d}} -empty -delete -print` +`find {{path/to/directory}} -type {{f|d}} -empty -delete -print` diff --git a/tldr/linux/apptainer-search b/tldr/linux/apptainer-search new file mode 100644 index 00000000..fdb0e2e5 --- /dev/null +++ b/tldr/linux/apptainer-search @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# apptainer search + +> Search a Container Library for container images. +> More information: . + +- Search for container images matching a query: + +`apptainer search {{query}}` + +- Search for container images for a specific architecture: + +`apptainer search --arch {{amd64|arm64|386|ppc64le|s390x}} {{query}}` + +- Search for only signed container images: + +`apptainer search --signed {{query}}` + +- Search in a specific Container Library: + +`apptainer search --library {{library_url}} {{query}}` + +- Display help: + +`apptainer search {{[-h|--help]}}` diff --git a/tldr/linux/apptainer-sign b/tldr/linux/apptainer-sign new file mode 100644 index 00000000..5d0dd1cb --- /dev/null +++ b/tldr/linux/apptainer-sign @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# apptainer sign + +> Add digital signatures to a SIF container image. +> More information: . + +- Sign a container image using the default PGP key: + +`apptainer sign {{path/to/image.sif}}` + +- Sign a container image using a specific private key file: + +`apptainer sign --key {{path/to/private.pem}} {{path/to/image.sif}}` + +- Sign a container image using a specific PGP key index: + +`apptainer sign {{[-k|--keyidx]}} {{key_index}} {{path/to/image.sif}}` + +- Sign a specific object group within the image: + +`apptainer sign {{[-g|--group-id]}} {{group_id}} {{path/to/image.sif}}` + +- Sign a specific object by ID within the image: + +`apptainer sign {{[-i|--sif-id]}} {{object_id}} {{path/to/image.sif}}` + +- Display help: + +`apptainer sign {{[-h|--help]}}` diff --git a/tldr/linux/gio b/tldr/linux/gio index 81fac99b..5271d800 100644 --- a/tldr/linux/gio +++ b/tldr/linux/gio @@ -28,3 +28,7 @@ source: https://github.com/tldr-pages/tldr.git - Send a file to the trash (reversible): `gio trash {{path/to/file}}` + +- Launch an application from a `.desktop` file: + +`gio launch {{path/to/file}}.desktop` diff --git a/tldr/linux/systemctl-mask b/tldr/linux/systemctl-mask index 59646b5f..1b800956 100644 --- a/tldr/linux/systemctl-mask +++ b/tldr/linux/systemctl-mask @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # systemctl mask -> Link units to `/dev/null` so that they can be even started. +> Link units to `/dev/null` so that they cannot be started. > More information: . - Mask a service: diff --git a/tldr/massdns b/tldr/massdns new file mode 100644 index 00000000..045c17c4 --- /dev/null +++ b/tldr/massdns @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# massdns + +> Resolve DNS records in bulk with high performance for reconnaissance. +> See also: `dig`, `dnsx`. +> More information: . + +- Resolve `A` records for domains in a file using specified resolvers: + +`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{path/to/domains.txt}}` + +- Resolve a specific record type and write results to a file: + +`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{[-t|--type]}} {{A|AAAA|NS|MX|TXT}} {{[-w|--outfile]}} {{path/to/output.txt}} {{path/to/domains.txt}}` + +- Resolve domains with simple text output format: + +`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{[-o|--output]}} S {{path/to/domains.txt}}` + +- Resolve domains with JSON output format: + +`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{[-o|--output]}} J {{path/to/domains.txt}}` + +- Resolve domains with a custom number of concurrent lookups: + +`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{[-s|--hashmap-size]}} {{10000}} {{path/to/domains.txt}}` + +- Resolve domains in quiet mode, suppressing status output: + +`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{[-q|--quiet]}} {{path/to/domains.txt}}` diff --git a/tldr/npm-completion b/tldr/npm-completion index 5426834a..fd55f16f 100644 --- a/tldr/npm-completion +++ b/tldr/npm-completion @@ -12,11 +12,11 @@ source: https://github.com/tldr-pages/tldr.git `npm completion` -- Add completion to your shell profile (Bash): +- Add completion to the shell profile (Bash): `npm completion >> ~/.bashrc` -- Add completion to your shell profile (Zsh): +- Add completion to the shell profile (Zsh): `npm completion >> ~/.zshrc` diff --git a/tldr/showmount b/tldr/showmount new file mode 100644 index 00000000..6c1f7a46 --- /dev/null +++ b/tldr/showmount @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# showmount + +> Display mount information for an NFS server. +> More information: . + +- Show clients currently mounting from the server: + +`showmount {{hostname}}` + +- Show the NFS server's export list: + +`showmount {{[-e|--exports]}} {{hostname}}` + +- Show all clients and their mounted directories: + +`showmount {{[-a|--all]}} {{hostname}}` + +- Show only the directories mounted by clients: + +`showmount {{[-d|--directories]}} {{hostname}}` + +- Show the export list without headers: + +`showmount {{[-e|--exports]}} --no-headers {{hostname}}` + +- Display help: + +`showmount {{[-h|--help]}}` diff --git a/tldr/sipcalc b/tldr/sipcalc new file mode 100644 index 00000000..6cbf1d98 --- /dev/null +++ b/tldr/sipcalc @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# sipcalc + +> Calculate IP subnet information for IPv4 and IPv6 addresses. +> See also: `ipcalc`. +> More information: . + +- Display subnet information for an IPv4 CIDR address: + +`sipcalc {{192.168.1.0/24}}` + +- Display all available information for an address: + +`sipcalc {{[-a|--all]}} {{192.168.1.0/24}}` + +- Split an IPv4 network into subnets of a specified mask: + +`sipcalc {{[-s|--v4split]}} {{255.255.255.128}} {{192.168.1.0/24}}` + +- Display IPv6 reverse DNS information: + +`sipcalc {{[-r|--v6rev]}} {{2001:db8::/32}}` + +- Enable DNS name resolution: + +`sipcalc {{[-d|--resolve]}} {{192.168.1.0/24}}` + +- Display help: + +`sipcalc {{[-h|--help]}}` diff --git a/tldr/squid b/tldr/squid new file mode 100644 index 00000000..f34f99c3 --- /dev/null +++ b/tldr/squid @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# squid + +> Cache and forward HTTP requests through a proxy server. +> More information: . + +- Start Squid in the background: + +`sudo squid` + +- Start Squid in the foreground: + +`sudo squid -N` + +- Start Squid with a specific configuration file: + +`sudo squid -f {{path/to/squid.conf}}` + +- Test the configuration file for errors: + +`sudo squid -k parse` + +- Reload the configuration file: + +`sudo squid -k reconfigure` + +- Shut down Squid gracefully: + +`sudo squid -k shutdown` + +- Rotate the log files: + +`sudo squid -k rotate`