diff --git a/tldr/! b/tldr/! index b51cc271..0dc40f40 100644 --- a/tldr/! +++ b/tldr/! @@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git `!{{string}}` -- Substitute with the arguments of the latest command: +- Substitute with all of the arguments of the latest command: `{{command}} !*` diff --git a/tldr/$ b/tldr/$ index 2e1599dc..324468c4 100644 --- a/tldr/$ +++ b/tldr/$ @@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git `echo ${{PS0|PS1|PS2|PS3|PS4}}` -- Expand with the output of `command` and run it. Same as enclosing `command` in backtics: +- Expand with the output of `command` and run it. Same as enclosing `command` in backticks: `$({{command}})` diff --git a/tldr/bun-list b/tldr/bun-list new file mode 100644 index 00000000..fbdf11c4 --- /dev/null +++ b/tldr/bun-list @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bun list + +> This command is an alias of `bun pm ls`. + +- View documentation for the original command: + +`tldr bun pm ls` diff --git a/tldr/bun-pm-bin b/tldr/bun-pm-bin new file mode 100644 index 00000000..6baad75f --- /dev/null +++ b/tldr/bun-pm-bin @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bun pm bin + +> Display the path to `bin` directories. +> More information: . + +- Get the path to the local project's `bin` directory: + +`bun pm bin` + +- Get the path to the global `bin` directory: + +`bun pm bin {{[-g|--global]}}` diff --git a/tldr/bun-pm-ls b/tldr/bun-pm-ls new file mode 100644 index 00000000..91edf232 --- /dev/null +++ b/tldr/bun-pm-ls @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bun pm ls + +> List installed dependencies and their versions. +> More information: . + +- List dependencies in the current project: + +`bun pm {{[ls|list]}}` + +- List all transitive dependencies: + +`bun pm {{[ls|list]}} {{[-a|--all]}}` diff --git a/tldr/linux/dd b/tldr/linux/dd index fd973390..d30f8b19 100644 --- a/tldr/linux/dd +++ b/tldr/linux/dd @@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Create a system backup, save it into an IMG file (can be restored later by swapping `if` and `of`), and show the progress: -`dd if={{/dev/drive_device}} of={{path/to/file.img}} status=progress` +`sudo dd if={{/dev/drive_device}} of={{path/to/file.img}} status=progress` - Check the progress of an ongoing `dd` operation (run this command from another shell): diff --git a/tldr/linux/envycontrol b/tldr/linux/envycontrol index 4401cc27..d81eb698 100644 --- a/tldr/linux/envycontrol +++ b/tldr/linux/envycontrol @@ -12,9 +12,9 @@ source: https://github.com/tldr-pages/tldr.git `sudo envycontrol {{[-s|--switch]}} {{nvidia|integrated|hybrid}}` -- Specify your display manager manually: +- Specify your [d]isplay [m]anager manually: -`envycontrol --dm` +`envycontrol --dm {{gdm|gdm3|sddm|lightdm}}` - Check current GPU mode: diff --git a/tldr/linux/head b/tldr/linux/head index 690b05e3..fdc6face 100644 --- a/tldr/linux/head +++ b/tldr/linux/head @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # head > Output the first part of files. +> See also: `tail`. > More information: . - Show first 10 lines in a file: diff --git a/tldr/linux/natural-selection-2 b/tldr/linux/natural-selection-2 new file mode 100644 index 00000000..d2550159 --- /dev/null +++ b/tldr/linux/natural-selection-2 @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# Natural Selection 2 + +> Start a headless Natural Selection 2 server. +> More information: . + +- Start a server with the default settings: + +`{{path/to/server_linux}}` + +- Give a server a custom name that shows in the server browser: + +`{{path/to/server_linux}} -name '{{server_name}}'` + +- Specify a connection port for the server: + +`{{path/to/server_linux}} -port {{27015}}` + +- Specify maximum player count: + +`{{path/to/server_linux}} -limit {{2..24}}` + +- Specify the initial map the server starts on: + +`{{path/to/server_linux}} -map {{ns2_summit}}` + +- Limit access to the server with a password: + +`{{path/to/server_linux}} -password {{password}}` + +- Start a server with webui admin interface: + +`{{path/to/server_linux}} -webadmin -webport {{8080}}` diff --git a/tldr/linux/sleep b/tldr/linux/sleep index 858f6105..63496f64 100644 --- a/tldr/linux/sleep +++ b/tldr/linux/sleep @@ -23,3 +23,11 @@ source: https://github.com/tldr-pages/tldr.git - Execute a specific command after 20 [m]inutes delay: `sleep 20m && {{command}}` + +- Delay forever: + +`sleep {{[inf|infinity]}}` + +- Display help: + +`sleep --help` diff --git a/tldr/ln b/tldr/ln index 87306390..d462a189 100644 --- a/tldr/ln +++ b/tldr/ln @@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `ln {{[-s|--symbolic]}} /{{path/to/file_or_directory}} {{path/to/symlink}}` +- Create a symbolic link relative to where the link is located: + +`ln {{[-s|--symbolic]}} {{path/to/file_or_directory}} {{path/to/symlink}}` + - Overwrite an existing symbolic link to point to a different file: `ln {{[-sf|--symbolic --force]}} /{{path/to/new_file}} {{path/to/symlink}}` diff --git a/tldr/osx/head b/tldr/osx/head index a1d8dd12..b0fca813 100644 --- a/tldr/osx/head +++ b/tldr/osx/head @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # head > Output the first part of files. +> See also: `tail`. > More information: . - Output the first 10 lines of a file: diff --git a/tldr/sort b/tldr/sort index da9c995c..c25790c9 100644 --- a/tldr/sort +++ b/tldr/sort @@ -24,13 +24,13 @@ source: https://github.com/tldr-pages/tldr.git `sort {{[-n|--numeric-sort]}} {{path/to/file}}` -- Sort `/etc/passwd` by the 3rd field of each line numerically, using ":" as a field separator: +- Sort `/etc/passwd` by the 3rd field of each line numerically, using `:` as a field separator: -`sort {{[-t|--field-separator]}} {{:}} {{[-k|--key]}} {{3n}} {{/etc/passwd}}` +`sort {{[-t|--field-separator]}} : {{[-k|--key]}} 3n /etc/passwd` - As above, but when items in the 3rd field are equal, sort by the 4th field by numbers with exponents: -`sort {{[-t|--field-separator]}} {{:}} {{[-k|--key]}} {{3,3n}} {{[-k|--key]}} {{4,4g}} {{/etc/passwd}}` +`sort {{[-t|--field-separator]}} : {{[-k|--key]}} 3,3n {{[-k|--key]}} 4,4g /etc/passwd` - Sort a file preserving only unique lines: @@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git - Sort a file, printing the output to the specified output file (can be used to sort a file in-place): -`sort {{[-o|--output]}} {{path/to/file}} {{path/to/file}}` +`sort {{[-o|--output]}} {{path/to/output_file}} {{path/to/input_file}}` diff --git a/tldr/tail b/tldr/tail index 5bc8f80a..707195ae 100644 --- a/tldr/tail +++ b/tldr/tail @@ -17,9 +17,9 @@ source: https://github.com/tldr-pages/tldr.git `tail {{path/to/file1 path/to/file2 ...}}` -- Show last `count` lines in file: +- Show last 5 lines in file: -`tail {{[-n|--lines]}} {{count}} {{path/to/file}}` +`tail {{[-5|--lines 5]}} {{path/to/file}}` - Print a file from a specific line number: diff --git a/tldr/vagrant-init b/tldr/vagrant-init new file mode 100644 index 00000000..490334c1 --- /dev/null +++ b/tldr/vagrant-init @@ -0,0 +1,38 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# vagrant init + +> Initialize a Vagrant environment in the current directory by creating a `Vagrantfile`. +> See also: `vagrant`. +> More information: . + +- Create a `Vagrantfile`: + +`vagrant init` + +- Create a `Vagrantfile` without instructional comments: + +`vagrant init {{[-m|--minimal]}}` + +- Specify the box name and URL: + +`vagrant init {{box_name}} {{box_url}}` + +- Create a `Vagrantfile` with a specific box version: + +`vagrant init --box-version {{version}} {{box_name}}` + +- Send the `Vagrantfile` to `stdout`: + +`vagrant init {{[-o|--output]}} -` + +- Overwrite an existing `Vagrantfile`: + +`vagrant init {{[-f|--force]}}` + +- Provide a custom ERB template for generating the `Vagrantfile`: + +`vagrant init --template {{path/to/file.erb}}` diff --git a/tldr/vagrant-ssh-config b/tldr/vagrant-ssh-config new file mode 100644 index 00000000..fe4bd29f --- /dev/null +++ b/tldr/vagrant-ssh-config @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# vagrant ssh-config + +> Display configuration to SSH into a Vagrant machine manually (instead of using `vagrant ssh`). +> See also: `vagrant`. +> More information: . + +- Get SSH configuration for the machine running in the current directory: + +`vagrant ssh-config` + +- Target a machine by name or ID: + +`vagrant ssh-config {{name|id}}`