diff --git a/tldr/astroterm b/tldr/astroterm new file mode 100644 index 00000000..c8ad07f0 --- /dev/null +++ b/tldr/astroterm @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# astroterm + +> A terminal-based star map. +> More information: . + +- Display real-time positions of stars and planets based on your current location: + +`astroterm` + +- Display constellations, use colour, and render the simulation at the given frame rate: + +`astroterm {{[-C|--constellations]}} {{[-c|--color]}} {{[-f|--fps]}} {{60}}` + +- Use unicode characters instead of the basic ASCII characters, and only render stars brighter than the given magnitude: + +`astroterm {{[-u|--unicode]}} {{[-t|--threshold]}} {{2.0}}` + +- Use a given latitude, longitude and datetime: + +`astroterm {{[-a|--latitude]}} {{90.0}} {{[-o|--longitude]}} {{-180.0}} {{[-d|--datetime]}} {{2025-08-04T12:00:00}}` + +- Use the longitude and latitude of a given city, and set the speed of the simulation to a given factor: + +`astroterm {{[-i|--city]}} {{Singapore}} {{[-s|--speed]}} {{1000.0}}` diff --git a/tldr/elasticsearch-certutil b/tldr/elasticsearch-certutil new file mode 100644 index 00000000..1f605e5b --- /dev/null +++ b/tldr/elasticsearch-certutil @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# elasticsearch-certutil + +> Generate and manage SSL certificates for Elasticsearch security. +> More information: . + +- Generate a new Certificate Authority (CA) with default options: + +`elasticsearch-certutil ca` + +- Generate a new certificate using the built-in CA: + +`elasticsearch-certutil cert` + +- Generate certificates non-interactively and output PEM files: + +`elasticsearch-certutil cert {{[-s|--silent]}} --pem` + +- Generate HTTP certificates with the built-in CA: + +`elasticsearch-certutil http` + +- Generate transport certificates non-interactively: + +`elasticsearch-certutil transport {{[-s|--silent]}}` + +- Generate a certificate signing request (CSR): + +`elasticsearch-certutil csr` + +- Generate encrypted keystore passwords: + +`elasticsearch-certutil password` + +- Generate a keystore password with a specified value: + +`elasticsearch-certutil password --pass {{password}}` diff --git a/tldr/linux/efibootdump b/tldr/linux/efibootdump new file mode 100644 index 00000000..cb197d5f --- /dev/null +++ b/tldr/linux/efibootdump @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# efibootdump + +> Dump boot entries from a variable or a file. +> More information: . + +- Dump boot entries from a file: + +`efibootdump {{[-f|--file]}} {{/sys/firmware/efi/efivars/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c}}` diff --git a/tldr/linux/pct-template b/tldr/linux/pct-template new file mode 100644 index 00000000..4a0b5f57 --- /dev/null +++ b/tldr/linux/pct-template @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# pct template + +> Convert a container into a template. +> More information: . + +- Convert a container into a template: + +`pct template {{100}}` diff --git a/tldr/linux/phpquery b/tldr/linux/phpquery index 059628a0..967875b4 100644 --- a/tldr/linux/phpquery +++ b/tldr/linux/phpquery @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # phpquery > PHP extension manager for Debian-based OSes. -> More information: . +> More information: . - List available PHP versions: diff --git a/tldr/linux/qm b/tldr/linux/qm index d0abac75..4053cf0e 100644 --- a/tldr/linux/qm +++ b/tldr/linux/qm @@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Using an ISO file uploaded on the local storage, create a virtual machine with a 4 GB IDE disk on the `local-lvm` storage and an ID of 100: -`qm {{[cr|create]}} {{100}} -ide0 {{local-lvm:4}} -net0 {{e1000}} -cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}` +`qm {{[cr|create]}} {{100}} --ide0 {{local-lvm:4}} --net0 {{e1000}} --cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}` - Show the configuration of a virtual machine, specifying its ID: diff --git a/tldr/linux/qm-disk b/tldr/linux/qm-disk new file mode 100644 index 00000000..5e9d6c38 --- /dev/null +++ b/tldr/linux/qm-disk @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# qm disk + +> Manage disk images. +> More information: . + +- Add `n` gigabytes to a virtual disk: + +`qm {{[di|disk]}} {{[resi|resize]}} {{vm_id}} {{disk_name}} +{{n}}G` + +- Move a virtual disk: + +`qm {{[di|disk]}} {{[m|move]}} {{vm_id}} {{destination}} {{index}}` + +- Delete the previous copy of the virtual disk: + +`qm {{[di|disk]}} {{[m|move]}} --delete {{vm_id}} {{destination}} {{index}}` + +- Import a VMDK/qcow2/raw disk image using a specific storage name: + +`qm {{[di|disk]}} {{[i|import]}} {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}` diff --git a/tldr/linux/qm-terminal b/tldr/linux/qm-terminal new file mode 100644 index 00000000..bfdb1409 --- /dev/null +++ b/tldr/linux/qm-terminal @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# qm terminal + +> Attach to the serial console of a VM. +> More information: . + +- Attach to a terminal: + +`qm terminal {{100}}` + +- Detach from a terminal: + +`` diff --git a/tldr/linux/reptyr b/tldr/linux/reptyr index 31edf529..d26691b0 100644 --- a/tldr/linux/reptyr +++ b/tldr/linux/reptyr @@ -12,3 +12,7 @@ source: https://github.com/tldr-pages/tldr.git - Move a running process to your current terminal: `reptyr {{pid}}` + +- Attach to a process using its name: + +`reptyr $(pidof {{htop}})` diff --git a/tldr/linux/yaourt b/tldr/linux/yaourt index ba59c1ad..3cce9fc7 100644 --- a/tldr/linux/yaourt +++ b/tldr/linux/yaourt @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # yaourt > Arch Linux utility for building packages from the Arch User Repository. -> More information: . +> More information: . - Synchronize and update all packages (including AUR): diff --git a/tldr/syncthing b/tldr/syncthing index 9d64e072..fcb43e33 100644 --- a/tldr/syncthing +++ b/tldr/syncthing @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # syncthing > Continuous bidirectional decentralised folder synchronisation tool. -> More information: . +> More information: . - Start Syncthing: @@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git - Start Syncthing without opening a web browser: -`syncthing -no-browser` +`syncthing --no-browser` - Print the device ID: -`syncthing -device-id` +`syncthing --device-id` - Change the home directory: -`syncthing -home={{path/to/directory}}` +`syncthing --home {{path/to/directory}}` -- Force a full index exchange: +- Force a full index exchange in order to resolve out of sync files: -`syncthing -reset-deltas` +`syncthing --reset-deltas` - Change the address upon which the web interface listens: -`syncthing -gui-address={{ip_address:port|path/to/socket.sock}}` +`syncthing --gui-address {{ip_address:port|path/to/socket.sock}}` - Show filepaths to the files used by Syncthing: -`syncthing -paths` +`syncthing --paths` - Disable the Syncthing monitor process: -`syncthing -no-restart` +`syncthing --no-restart` diff --git a/tldr/vhs b/tldr/vhs index cea83252..f73f2864 100644 --- a/tldr/vhs +++ b/tldr/vhs @@ -5,29 +5,33 @@ source: https://github.com/tldr-pages/tldr.git --- # vhs -> Generate terminal gifs from a tape file. +> Generate terminal GIFs from a tape file. > More information: . - Create a tape file (add commands to the tape file using an editor): `vhs new {{path/to/file.tape}}` -- Record inputs to a tape file (once done, exit the shell to create the tape): +- Record inputs to a tape file: `vhs record > {{path/to/file.tape}}` - Record inputs to a tape file using a specific shell: -`vhs record --shell {{shell}} > {{path/to/file.tape}}` +`vhs record {{[-s|--shell]}} {{shell}} > {{path/to/file.tape}}` + +- Stop recording: + +`exit` - Validate the syntax of a tape file: `vhs validate {{path/to/file.tape}}` -- Create a gif from a tape file: +- Create a GIF from a tape file: -`vhs < {{path/to/file.tape}}` +`vhs {{path/to/file.tape}}` -- Publish a gif to and get a shareable URL: +- Publish a GIF to and get a shareable URL: `vhs publish {{path/to/file.gif}}` diff --git a/tldr/windows/dir b/tldr/windows/dir index 8fa4a129..7b5f3664 100644 --- a/tldr/windows/dir +++ b/tldr/windows/dir @@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Show a bare list of directories and files, with no additional information: `dir /b` + +- Sort results by date/time, oldest first: + +`dir /o:d`