diff --git a/tldr/compgen b/tldr/compgen index baa28d77..fe600c6a 100644 --- a/tldr/compgen +++ b/tldr/compgen @@ -31,3 +31,11 @@ source: https://github.com/tldr-pages/tldr.git - See all available commands/aliases starting with 'ls': `compgen -ac {{ls}}` + +- List all users on the system: + +`compgen -u` + +- Display help: + +`compgen --help` diff --git a/tldr/dockdiver b/tldr/dockdiver new file mode 100644 index 00000000..00d67125 --- /dev/null +++ b/tldr/dockdiver @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# dockdiver + +> A tool for interacting with Docker registries, including listing and dumping repositories. +> More information: . + +- List all repositories in a Docker registry: + +`dockdiver -url {{http://target}} -list` + +- Dump a specific repository to the default output directory (docker_dump): + +`dockdiver -url {{http://target}} -dump {{repository_name}}` + +- Dump all repositories with basic authentication: + +`dockdiver -url {{http://example.com}} -dump-all -username {{username}} -password {{password}}` + +- Dump a repository with a custom port and rate limit: + +`dockdiver -url http://example.com -dump {{repository_name}} -port {{port}} -rate {{requests_per_second}} -dir {{path/to/output_directory}}` + +- Dump all repositories with bearer token for authorization: + +`dockdiver -url {{http://example.com}} -dump-all -bearer {{bearer_token}}` + +- Add custom headers as JSON (e.g., '{"X-Custom": "Value"}'): + +`dockdiver -url {{http://example.com}} -list -headers {{'{"X-Custom": "Value"}'}}` diff --git a/tldr/linux/avahi-resolve-address b/tldr/linux/avahi-resolve-address new file mode 100644 index 00000000..ea2aedd0 --- /dev/null +++ b/tldr/linux/avahi-resolve-address @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# avahi-resolve-address + +> This command is an alias of `avahi-resolve --address`. + +- View documentation for the original command: + +`tldr avahi-resolve` diff --git a/tldr/linux/avahi-resolve-host-name b/tldr/linux/avahi-resolve-host-name new file mode 100644 index 00000000..7aaacf4f --- /dev/null +++ b/tldr/linux/avahi-resolve-host-name @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# avahi-resolve-host-name + +> This command is an alias of `avahi-resolve --name`. + +- View documentation for the original command: + +`tldr avahi-resolve` diff --git a/tldr/linux/eject b/tldr/linux/eject index 771e2abb..58ae9d2b 100644 --- a/tldr/linux/eject +++ b/tldr/linux/eject @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - Display the default device: -`eject -d` +`eject {{[-d|--default]}}` - Eject the default device: @@ -22,16 +22,20 @@ source: https://github.com/tldr-pages/tldr.git - Toggle whether a device's tray is open or closed: -`eject -T {{/dev/cdrom}}` +`eject {{[-T|--traytoggle]}} {{/dev/cdrom}}` - Eject a cd drive: -`eject -r {{/dev/cdrom}}` +`eject {{[-r|--cdrom]}} {{/dev/cdrom}}` - Eject a floppy drive: -`eject -f {{/mnt/floppy}}` +`eject {{[-f|--floppy]}} {{/mnt/floppy}}` - Eject a tape drive: -`eject -q {{/mnt/tape}}` +`eject {{[-q|--tape]}} {{/mnt/tape}}` + +- Set whether the physical eject button is [i]gnored (`on` prevents ejecting): + +`eject {{[-i|--manualeject]}} {{on|off}}` diff --git a/tldr/linux/ip-route b/tldr/linux/ip-route index 28825e0c..7deafc2c 100644 --- a/tldr/linux/ip-route +++ b/tldr/linux/ip-route @@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git - Display a specific routing table: -`ip {{[r|route]}} {{[s|show]}} {{[t|table]}} {{table_number}}` +`ip {{[r|route]}} {{[l|list]}} {{[t|table]}} {{table_number}}` diff --git a/tldr/linux/ip-route-add b/tldr/linux/ip-route-add new file mode 100644 index 00000000..d26ae16b --- /dev/null +++ b/tldr/linux/ip-route-add @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# ip route + +> Add a new networking route. +> More information: . + +- Add a default route using gateway forwarding: + +`sudo ip {{[r|route]}} {{[a|add]}} default via {{gateway_ip}}` + +- Add a default route using `eth0`: + +`sudo ip {{[r|route]}} {{[a|add]}} default dev {{eth0}}` + +- Add a static route: + +`sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} via {{gateway_ip}} dev {{eth0}}` + +- Add a route to a specific routing table: + +`sudo ip {{[r|route]}} {{[a|add]}} {{destination_ip}} dev {{eth0}} {{[t|table]}} {{ip}}` diff --git a/tldr/linux/ip-route-list b/tldr/linux/ip-route-list index 78185c2b..0aed3bc9 100644 --- a/tldr/linux/ip-route-list +++ b/tldr/linux/ip-route-list @@ -5,8 +5,37 @@ source: https://github.com/tldr-pages/tldr.git --- # ip route list -> This command is an alias of `ip route show`. +> Display subcommand for IP Routing table management. +> More information: . -- View documentation for the original command: +- Display the `main` routing table: -`tldr ip route show` +`ip {{[r|route]}} {{[l|list]}}` + +- Display the main routing table (same as first example): + +`ip {{[r|route]}} {{[l|list]}} {{[t|table]}} {{main|254}}` + +- Display the local routing table: + +`ip {{[r|route]}} {{[l|list]}} {{[t|table]}} {{local|255}}` + +- Display all routing tables: + +`ip {{[r|route]}} {{[l|list]}} {{[t|table]}} {{all|unspec|0}}` + +- List routes from a given device only: + +`ip {{[r|route]}} {{[l|list]}} dev {{eth0}}` + +- List routes within a given scope: + +`ip {{[r|route]}} {{[l|list]}} {{[s|scope]}} link` + +- Display the routing cache: + +`ip {{[r|route]}} {{[l|list]}} {{[c|cache]}}` + +- Display only IPv6 or IPv4 routes: + +`ip {{-6|-4}} {{[r|route]}}` diff --git a/tldr/linux/ip-route-show b/tldr/linux/ip-route-show index 776da503..29e9ab14 100644 --- a/tldr/linux/ip-route-show +++ b/tldr/linux/ip-route-show @@ -5,37 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # ip route show -> Display subcommand for IP Routing table management. -> More information: . +> This command is an alias of `ip route list`. -- Display the `main` routing table: +- View documentation for the original command: -`ip {{[r|route]}} {{[s|show]}}` - -- Display the main routing table (same as first example): - -`ip {{[r|route]}} {{[s|show]}} {{[t|table]}} {{main|254}}` - -- Display the local routing table: - -`ip {{[r|route]}} {{[s|show]}} {{[t|table]}} {{local|255}}` - -- Display all routing tables: - -`ip {{[r|route]}} {{[s|show]}} {{[t|table]}} {{all|unspec|0}}` - -- List routes from a given device only: - -`ip {{[r|route]}} {{[s|show]}} dev {{eth0}}` - -- List routes within a given scope: - -`ip {{[r|route]}} {{[s|show]}} {{[s|scope]}} link` - -- Display the routing cache: - -`ip {{[r|route]}} {{[s|show]}} {{[c|cache]}}` - -- Display only IPv6 or IPv4 routes: - -`ip {{-6|-4}} {{[r|route]}} {{[s|show]}}` +`tldr ip route list` diff --git a/tldr/linux/ip-rule b/tldr/linux/ip-rule index 0db8719f..0d37d8ec 100644 --- a/tldr/linux/ip-rule +++ b/tldr/linux/ip-rule @@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `ip {{[ru|rule]}}` +- Create a new generic routing rule with a higher priority than `main`: + +`sudo ip {{[ru|rule]}} {{[a|add]}} from all lookup {{100}}` + - Add a new rule based on packet source addresses: `sudo ip {{[ru|rule]}} {{[a|add]}} from {{192.168.178.2/32}}` @@ -24,11 +28,7 @@ source: https://github.com/tldr-pages/tldr.git `sudo ip {{[ru|rule]}} {{[d|delete]}} from {{192.168.178.2/32}}` -- Delete a rule based on packet destination addresses: - -`sudo ip {{[ru|rule]}} {{[d|delete]}} to {{192.168.178.2/32}}` - -- Flush all deleted rules: +- Remove all routing rules: `sudo ip {{[ru|rule]}} {{[f|flush]}}` diff --git a/tldr/linux/lldpctl b/tldr/linux/lldpctl new file mode 100644 index 00000000..44457f5b --- /dev/null +++ b/tldr/linux/lldpctl @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lldpctl + +> Print link layer discovery protocol information. +> More information: . + +- Start the lldp daemon: + +`systemctl start lldpd` + +- Display collected neighbor data: + +`sudo lldpctl` + +- Display help: + +`lldpctl {{[-h|--help]}}`