diff --git a/tldr/grep b/tldr/grep index 24600da7..f7b489a7 100644 --- a/tldr/grep +++ b/tldr/grep @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Search for a pattern in all files recursively in a directory, showing line numbers of matches, ignoring binary files: -`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}` +`grep {{[-r|--recursive]}} {{[-n|--line-number]}} {{[-I|--binary-files=without-match]}} "{{search_pattern}}" {{path/to/directory}}` - Use extended regular expressions (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode: diff --git a/tldr/linux/blkid b/tldr/linux/blkid index dda8ca9d..eaaad719 100644 --- a/tldr/linux/blkid +++ b/tldr/linux/blkid @@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - List all partitions in a table, including current mountpoints: `sudo blkid {{[-o|--output]}} list` + +- Get the UUID of the filesystem on a partition: + +`blkid {{[-s|--match-tag]}} UUID {{[-o|--output]}} value {{/dev/sdXY}}` diff --git a/tldr/linux/chmem b/tldr/linux/chmem new file mode 100644 index 00000000..a7e1e3da --- /dev/null +++ b/tldr/linux/chmem @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# chmem + +> Modify the state of memory blocks (online or offline) in a Linux system. +> Typically used in virtualized environments to manage memory hotplug. +> More information: . + +- Set a memory block offline: + +`sudo chmem {{[-b|--block]}} {{[-d|--disable]}} {{block_number}}` + +- Set a memory block online: + +`sudo chmem {{[-b|--block]}} {{[-e|--enable]}} {{block_number}}` + +- Set a memory range offline using hexadecimal addresses: + +`sudo chmem {{[-d|--disable]}} 0x{{start_address}}-0x{{end_address}}` + +- Set a memory range online using hexadecimal addresses: + +`sudo chmem {{[-e|--enable]}} 0x{{start_address}}-0x{{end_address}}` + +- Set memory online and assign it to a specific zone (e.g., Movable): + +`sudo chmem {{[-e|--enable]}} 0x{{start_address}} {{[-z|--zone]}} {{Movable}}` + +- Display help: + +`chmem {{[-h|--help]}}` diff --git a/tldr/pokeget b/tldr/pokeget new file mode 100644 index 00000000..5e963106 --- /dev/null +++ b/tldr/pokeget @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pokeget + +> Display sprites of Pokemon in your terminal. +> More information: . + +- Print a sprite of a given pokemon: + +`pokeget {{pokemon_name}}` + +- Print Mr. Mime (note the use of `-` instead of spaces): + +`pokeget mr-mime` + +- Print Mega Gengar: + +`pokeget gengar {{[-m|--mega]}}` + +- Print a random shiny Pokemon: + +`pokeget random {{[-s|--shiny]}}` + +- Print Alolan Meowth, without printing the Pokemon's name: + +`pokeget meowth {{[-a|--alolan]}} --hide-name` + +- Print a random Pokemon with 1/4096 chance to be shiny: + +`((RANDOM%4096 == 0)) && pokeget random --shiny || pokeget random` diff --git a/tldr/progress b/tldr/progress index cbc1373c..159ca2f1 100644 --- a/tldr/progress +++ b/tldr/progress @@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `progress` +- Monitor all running coreutils: + +`progress {{[-m|--monitor]}}` + - Show the progress of running coreutils in quiet mode: `progress {{[-q|--quiet]}}` diff --git a/tldr/pulumi-down b/tldr/pulumi-down new file mode 100644 index 00000000..d27eff3b --- /dev/null +++ b/tldr/pulumi-down @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pulumi down + +> This command is an alias of `pulumi destroy`. + +- View documentation for the original command: + +`tldr pulumi destroy` diff --git a/tldr/time b/tldr/time index 397ee8dd..279cedd0 100644 --- a/tldr/time +++ b/tldr/time @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Measure how long a command took to run. > Note: `time` can either exist as a shell builtin, a standalone program or both. +> See also: `times`. > More information: . - Run the `command` and print the time measurements to `stdout`: diff --git a/tldr/times b/tldr/times index b16279a0..1e1f7c25 100644 --- a/tldr/times +++ b/tldr/times @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # times > Print the cumulative CPU usage time of the current shell. +> See also: `time`. > More information: . - Print CPU usage. First line is current shell CPU usage for User and System. Second is all child processes: