diff --git a/tldr/behat b/tldr/behat index 9678c76b..605b2bc2 100644 --- a/tldr/behat +++ b/tldr/behat @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # behat > A PHP framework for Behaviour-Driven Development. -> More information: . +> More information: . - Initialize a new Behat project: diff --git a/tldr/cf b/tldr/cf index 96bfdaf5..bed3b9e4 100644 --- a/tldr/cf +++ b/tldr/cf @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # cf > Manage apps and services on Cloud Foundry. -> More information: . +> More information: . - Log in to the Cloud Foundry API: diff --git a/tldr/cloc b/tldr/cloc index 8dcfa30d..8a85fd0a 100644 --- a/tldr/cloc +++ b/tldr/cloc @@ -5,25 +5,21 @@ source: https://github.com/tldr-pages/tldr.git --- # cloc -> Count, and compute differences of, lines of source code and comments. -> More information: . +> Count lines of code. +> More information: . - Count all the lines of code in a directory: `cloc {{path/to/directory}}` -- Count all the lines of code in a directory, displaying a progress bar during the counting process: - -`cloc --progress=1 {{path/to/directory}}` - - Compare 2 directory structures and count the differences between them: -`cloc --diff {{path/to/directory/one}} {{path/to/directory/two}}` +`cloc --diff {{path/to/directory1}} {{path/to/directory2}}` - Ignore files that are ignored by VCS, such as files specified in `.gitignore`: `cloc --vcs git {{path/to/directory}}` -- Count all the lines of code in a directory, displaying the results for each file instead of each language: +- Display the results for each file instead of each language: `cloc --by-file {{path/to/directory}}` diff --git a/tldr/conda-remove b/tldr/conda-remove new file mode 100644 index 00000000..c601ba01 --- /dev/null +++ b/tldr/conda-remove @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# conda remove + +> Remove packages from a conda environment. +> More information: . + +- Remove `scipy` from the currently active environment: + +`conda remove scipy` + +- Remove a list of packages from the specified environment: + +`conda remove {{[-n|--name]}} {{environment_name}} {{package1 package2 ...}}` + +- Remove all packages and the environment itself: + +`conda remove {{[-n|--name]}} {{environment_name}} --all` + +- Remove all packages, but keep the environment: + +`conda remove {{[-n|--name]}} {{environment_name}} --all --keep-env` diff --git a/tldr/conda-repoquery b/tldr/conda-repoquery new file mode 100644 index 00000000..af8381c7 --- /dev/null +++ b/tldr/conda-repoquery @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# conda repoquery + +> Advanced search for packages in a conda repository. +> More information: . + +- Show available versions of the specified package: + +`conda repoquery search {{package}}` + +- Show dependencies of the specified package: + +`conda repoquery depends {{package}}` + +- Show packages that depend on the specified package: + +`conda repoquery whoneeds {{package}}` diff --git a/tldr/conda-run b/tldr/conda-run new file mode 100644 index 00000000..f060fd0c --- /dev/null +++ b/tldr/conda-run @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# conda run + +> Run an executable command in a conda environment. +> More information: . + +- Run a command in the currently active environment: + +`conda run {{command}}` + +- Target an environment by name: + +`conda run {{[-n|--name]}} {{environment_name}} {{command}}` + +- Target an environment by its path (i.e. prefix): + +`conda run {{[-p|--path]}} {{path/to/env}} {{command}}` diff --git a/tldr/gh b/tldr/gh index 5c584d13..9a3da1c7 100644 --- a/tldr/gh +++ b/tldr/gh @@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - View an issue in the default web browser: -`gh issue view {{[-w|--web]}} {{issue_number}}` +`gh issue view {{[-w|--web]}} {{issue_number|url}}` - Create a pull request: @@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git - View a pull request in the default web browser: -`gh pr view {{[-w|--web]}} {{pr_number}}` +`gh pr view {{[-w|--web]}} {{pr_number|url|branch}}` - Check out a specific pull request locally: diff --git a/tldr/gh-copilot b/tldr/gh-copilot new file mode 100644 index 00000000..10b6521b --- /dev/null +++ b/tldr/gh-copilot @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gh copilot + +> Interact with GitHub Copilot. +> More information: . + +- Suggest a command, given a description: + +`gh copilot suggest "{{Install git}}"` + +- Suggest a Git command: + +`gh copilot suggest {{[-t|--target]}} git "{{Undo the most recent local commits}}"` + +- Explain a command: + +`gh copilot explain "{{traceroute example.com}}"` + +- Generate shell-specific aliases for Bash: + +`echo 'eval "$(gh copilot alias -- bash)"' >> ~/.bashrc` + +- Generate shell-specific aliases for Zsh: + +`echo 'eval "$(gh copilot alias -- zsh)"' >> ~/.zshrc` + +- Configure options: + +`gh copilot config` diff --git a/tldr/linux/emaint b/tldr/linux/emaint new file mode 100644 index 00000000..d2a0584f --- /dev/null +++ b/tldr/linux/emaint @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# emaint + +> Perform Portage maintenance tasks. +> More information: . + +- Synchronize repositories that are set to auto-sync (default for most repositories): + +`sudo emaint sync {{[-a|--auto]}}` + +- Synchronize a specific repository: + +`sudo emaint sync {{[-r|--repo]}} {{repository}}` + +- Clear the Portage resume list: + +`sudo emaint cleanresume {{[-f|--fix]}}` + +- Clean Portage logs: + +`sudo emaint logs {{[-C|--clean]}}` diff --git a/tldr/linux/lvmsadc b/tldr/linux/lvmsadc new file mode 100644 index 00000000..42f1d947 --- /dev/null +++ b/tldr/linux/lvmsadc @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lvmsadc + +> LVM system activity data collector (not supported under LVM2; prefer `dmstats`). +> More information: . + +- Run the collector (legacy LVM1 systems only): + +`lvmsadc` + +- Report I/O statistics using the device-mapper replacement: + +`dmstats report {{/dev/mapper/device}}` diff --git a/tldr/linux/postfix b/tldr/linux/postfix index 05af4c9a..a2a2612c 100644 --- a/tldr/linux/postfix +++ b/tldr/linux/postfix @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Postfix mail transfer agent (MTA) control program. > See also: `dovecot`, a mail delivery agent (MDA) that integrates with Postfix. -> More information: . +> More information: . - Check the configuration: diff --git a/tldr/linux/systemctl-cancel b/tldr/linux/systemctl-cancel index 86d8c15b..4eb3101c 100644 --- a/tldr/linux/systemctl-cancel +++ b/tldr/linux/systemctl-cancel @@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git - Cancel a job in the user service manager: -`systemctl --user cancel {{job_id}}` +`systemctl cancel --user {{job_id}}` diff --git a/tldr/linux/systemctl-disable b/tldr/linux/systemctl-disable index 306f037c..5c5d8d24 100644 --- a/tldr/linux/systemctl-disable +++ b/tldr/linux/systemctl-disable @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Stop a service from running on boot and stop its current execution: -`systemctl disable {{unit}} --now` +`systemctl disable --now {{unit}}` - Stop a user service from running on login: diff --git a/tldr/linux/systemctl-enable b/tldr/linux/systemctl-enable index eadce740..9e580c74 100644 --- a/tldr/linux/systemctl-enable +++ b/tldr/linux/systemctl-enable @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Enable a service to run on boot and start it now: -`systemctl enable {{unit}} --now` +`systemctl enable --now {{unit}}` - Enable a user unit to run on login: diff --git a/tldr/linux/systemctl-mask b/tldr/linux/systemctl-mask index 10c8b9d7..803a75fd 100644 --- a/tldr/linux/systemctl-mask +++ b/tldr/linux/systemctl-mask @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Ensure that the service is shut down while masking: -`systemctl mask {{service_name}} --now` +`systemctl mask --now {{service_name}}` - Mask a user service: diff --git a/tldr/linux/systemctl-unmask b/tldr/linux/systemctl-unmask index 66c81ed4..213cb3b2 100644 --- a/tldr/linux/systemctl-unmask +++ b/tldr/linux/systemctl-unmask @@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Unmask and start a service immediately: -`systemctl unmask {{service_name}} --now` +`systemctl unmask --now {{service_name}}` - Unmask a user service: diff --git a/tldr/osx/port b/tldr/osx/port index e672c55c..aa373e9e 100644 --- a/tldr/osx/port +++ b/tldr/osx/port @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # port > Package manager for macOS. -> More information: . +> More information: . - Search for a package: diff --git a/tldr/scrapy b/tldr/scrapy index ae3f7141..0eb654ac 100644 --- a/tldr/scrapy +++ b/tldr/scrapy @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # scrapy > Web-crawling framework. -> More information: . +> More information: . - Create a project: diff --git a/tldr/supervisorctl b/tldr/supervisorctl index 10abbc6a..e962b175 100644 --- a/tldr/supervisorctl +++ b/tldr/supervisorctl @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Supervisor, a client/server system that allows its users to control a number of processes on UNIX-like operating systems. > Supervisorctl is the command-line client piece of the supervisor which provides a shell-like interface. -> More information: . +> More information: . - Show the status of a process (or all processes if `process_name` is not specified): diff --git a/tldr/supervisord b/tldr/supervisord index 77644264..9c64984b 100644 --- a/tldr/supervisord +++ b/tldr/supervisord @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Supervisor is a client/server system for controlling some processes on UNIX-like operating systems. > Supervisord is the server part of supervisor; it is primarily managed via a configuration file. -> More information: . +> More information: . - Start `supervisord` with specified configuration file: diff --git a/tldr/telegram-desktop b/tldr/telegram-desktop index 91ee7697..438e61ad 100644 --- a/tldr/telegram-desktop +++ b/tldr/telegram-desktop @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # telegram-desktop > Instant messenger with open source clients, chats and stickers. -> More information: . +> More information: . - Start GUI: diff --git a/tldr/valgrind b/tldr/valgrind index 0958390b..f56f36ee 100644 --- a/tldr/valgrind +++ b/tldr/valgrind @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Wrapper for a set of expert tools for profiling, optimizing and debugging programs. > Commonly used tools include `memcheck`, `cachegrind`, `callgrind`, `massif`, `helgrind`, and `drd`. -> More information: . +> More information: . - Use the (default) Memcheck tool to show a diagnostic of memory usage by `program`: diff --git a/tldr/windows/cd b/tldr/windows/cd index 27bae19c..e901bcb4 100644 --- a/tldr/windows/cd +++ b/tldr/windows/cd @@ -17,11 +17,11 @@ source: https://github.com/tldr-pages/tldr.git `cd` -- Go to a specific directory in the same drive: +- Go to a specific directory on the same drive: `cd {{path o\directory}}` -- Go to a specific directory in a different [d]rive: +- Go to a specific directory on a different [d]rive: `cd /d {{C}}:{{path o\directory}}` diff --git a/tldr/you-get b/tldr/you-get index 7f22bfe9..3798dcca 100644 --- a/tldr/you-get +++ b/tldr/you-get @@ -7,11 +7,11 @@ source: https://github.com/tldr-pages/tldr.git > Download media contents (videos, audios, images) from the Web. > See also: `yt-dlp`, `youtube-viewer`, `instaloader`. -> More information: . +> More information: . - Print media information about a specific media on the web: -`you-get --info {{https://example.com/video?id=value}}` +`you-get {{[-i|--info]}} {{https://example.com/video?id=value}}` - Download a media from a specific URL: @@ -23,8 +23,8 @@ source: https://github.com/tldr-pages/tldr.git - Download a media to a specific location: -`you-get --output-dir {{path/to/directory}} --output-filename {{filename}} {{https://example.com/watch?v=value}}` +`you-get {{[-o|--output-dir]}} {{path/to/directory}} {{[-O|--output-filename]}} {{filename}} {{https://example.com/watch?v=value}}` - Download a media using a proxy: -`you-get --http-proxy {{proxy_server}} {{https://example.com/watch?v=value}}` +`you-get {{[-x|--http-proxy]}} {{proxy_server}} {{https://example.com/watch?v=value}}` diff --git a/tldr/zig b/tldr/zig index c0368807..b0de1e3a 100644 --- a/tldr/zig +++ b/tldr/zig @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # zig > The Zig compiler and toolchain. -> More information: . +> More information: . - Compile the project in the current directory: