Compare commits

..

68 Commits

Author SHA1 Message Date
Alejandro Cervera 9f89c45d13
scrot: add two examples (#11748)
* scrot: add two examples

* scrot: replace example description

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-12-15 23:52:09 +05:30
Juri Dispan 5f8536e2fd
pnmtoddif: add page (#11753) 2023-12-15 23:45:50 +05:30
HoJeong Im 769469e98a
adscript: add Korean translation (#11754) 2023-12-15 23:45:05 +05:30
Juri Dispan 3f588a07ea
pnmtile: add page (#11755) 2023-12-15 23:40:41 +05:30
Juri Dispan 73a4fa9506
pampop9: add page (#11756) 2023-12-15 23:40:15 +05:30
Juri Dispan 412ea35825
pnmsmooth: add page (#11757) 2023-12-15 23:38:54 +05:30
Juri Dispan 43da64b365
pnmshear: add page (#11758) 2023-12-15 23:38:07 +05:30
Sebastiaan Speck 948c5232c8
aireplay-ng: fix typo in URL (#11749) 2023-12-15 10:02:08 +01:00
Darío Hereñú 653ce03179
csrutil: fix Spanish typo (#11746)
Update csrutil: fix typo
2023-12-15 10:00:39 +01:00
Starbeamrainbowlabs 508cea7314
COMMUNITY-ROLES: document CODEOWNERS file (#11646)
* COMMUNITY-ROLES: Document CODEOWNERS file

* Update COMMUNITY-ROLES.md

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* Update COMMUNITY-ROLES.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* Update COMMUNITY-ROLES.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* Update COMMUNITY-ROLES.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* COMMUNITY-ROLES: add licence clarification note

ref @kbdharun

* Update COMMUNITY-ROLES.md

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-12-15 11:39:34 +05:30
Reinhart Previano Koentjoro 2ee54b9032
pages.id/*: add and improve Indonesian translation (#11640)
* 7z, 7za, 7zr: update Indonesian translation

* common: imperative mood on Indonesian translation

* linux, osx, windows: imperative mood on Indonesian translation

* common, linux: add Indonesian translation

* powershell, pwsh: add Indonesian translation

* common: add Indonesian translation

* gcc: use standard file path template

* Update pages.id/common/gcc.md

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* Update pages.id/common/gcc.md

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* Update pages.id/common/7za.md

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* Apply suggestions from code review

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* Update pages.id/common/gcc.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* Update pages.id/common/7za.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* Update 7za.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* Update gcc.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* git-commit: update Indonesian translation

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-12-15 08:49:58 +07:00
Sebastiaan Speck 36e4853e5d
qm-move-disk: update Dutch translation (#11743) 2023-12-15 01:15:23 +05:30
Sebastiaan Speck 1276a5b0f9
gnmic-subscribe: add Dutch translation (#11742) 2023-12-14 20:32:47 +01:00
Sebastiaan Speck d843e771fb
git-cola: add Dutch translation (#11741)
Co-authored-by: Leon <leonvsc@users.noreply.github.com>
2023-12-14 19:27:54 +01:00
Sebastiaan Speck 6c8037db23
qm-import-disk: match with translations (#11739) 2023-12-14 23:09:49 +05:30
Gilad Alboher 5e2a144c37
aws-kafka: add page (#11696)
* aws-kafka: add page

---------

Co-authored-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-14 21:34:05 +05:30
K.B.Dharun Krishna 1b6a9a1536
docker-inspect: escape placeholders (#11733)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-14 21:32:43 +05:30
Gabe Livengood 9d865abee1
`test`: Use POSIX-compliant example for equals comparison (#11728)
* [: use posix-compliant example for equals comparison

the previous example worked fine for bash, but some
other shells (zsh, in my case) will not work when
using "==" for comparison. the posix spec only requires
"=", so I think it makes a little more sense to use
that in the example.

* test: use posix-compliant example for equals comparison

the previous example worked fine for bash, but some
other shells (zsh, in my case) will not work when
using "==" for comparison. the posix spec only requires
"=", so I think it makes a little more sense to use
that in the example.
2023-12-14 20:31:13 +05:30
Juri Dispan 5978942629
7z: remove file extension in -t example (#11738) 2023-12-14 14:33:42 +01:00
Juri Dispan 9d383ade68
*: fix typos in command names (#11730)
* *: fix typos in command names

* command name fixes in other languages

* fix incorrectly translated commands

* change incorrect file name

* qm move disk alias pages

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-14 17:41:19 +05:30
Sebastiaan Speck f1be2745a7
gh-codespace: add Dutch translation (#11737) 2023-12-14 13:08:48 +01:00
Sebastiaan Speck 9ff63cd7f7
gemtopnm: add Dutch translation (#11735) 2023-12-14 13:08:35 +01:00
HoJeong Im 62cb0d5d7b
atuin: add Korean translation (#11731) 2023-12-14 12:19:20 +01:00
Sebastiaan Speck ab4e370483
get-nodeversions: add Dutch translation (#11736) 2023-12-14 12:16:52 +01:00
Gilad Alboher 8fbe219b92
gcloud-sql-backups-describe: add page (#11722)
* gcloud-sql-backups-describe: add page

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-14 10:06:45 +05:30
K.B.Dharun Krishna 6bdc5fed4e
chore(ci): bump `actions/setup-python` to v5, set version to 3.12; fix CODEOWNERS (#11726)
* chore(ci): bump actions/setup-python to v5, set version to 3.12

* test: specify workflow directory in CODEOWNERS
2023-12-14 10:04:07 +05:30
Ren Ma a95bc099de
!: add Chinese translation (#11709)
* !: add Chinese translation

---------

Co-authored-by: Ein Verne <git@einverne.info>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-13 12:07:55 +05:30
Gilad Alboher 70b20b7ae8
llm: add page (#11697)
* llm: add page

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2023-12-13 12:07:11 +05:30
Darío Hereñú 63b089e6b5
helm-install: fix typo in Spanish translation (#11664)
* helm-install: fix typo in Spanish translation

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-12-13 11:21:07 +05:30
Juri Dispan f9606bbcc5
style-guide: modify grouping placeholders section (#11723) 2023-12-12 05:33:35 +01:00
HoJeong Im cc4907814e
androguard: add Korean translation (#11721) 2023-12-11 11:49:54 +01:00
Alejandro Cervera 0076e3fc73
byzanz-record: add page (#11716)
* byzanz-record: add page

* byzanz-record: replace description

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>

* byzanz-record: wrap command name in description with backticks

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* byzanz-record: replace example

* byzanz-record: replace More Information link

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-11 08:55:14 +05:30
Darío Hereñú b4740f5135
grub-mkconfig: fix typos in Spanish translation (#11710) 2023-12-11 08:45:43 +05:30
Darío Hereñú deda8b5689
xdg-open: minor fix in Spanish translation (#11717) 2023-12-11 08:39:04 +05:30
Darío Hereñú ec127ec791
as: fix Spanish syntax issue (#11719)
Update as: syntax issue
2023-12-10 19:58:50 +01:00
Darío Hereñú 573ef595fd
yum: translate placeholders to Spanish (#11718)
Update yum: placeholder updated
2023-12-10 19:57:49 +01:00
Darío Hereñú d6c9846545
thunar: fix Spanish verb mode (#11715) 2023-12-10 19:54:57 +01:00
Darío Hereñú 5bd062ebc0
tcpkill: fix Spanish translation (#11714) 2023-12-10 19:54:19 +01:00
Darío Hereñú eea699958c
base64: edit page (#11720) 2023-12-10 19:52:57 +01:00
Darío Hereñú 1c7279c474
raspinfo: fix Spanish typo (#11712)
Update raspinfo: fix typo
2023-12-10 19:45:52 +01:00
Darío Hereñú 0434df342a
man: update Spanish translation (#11711)
Update man: added translation
2023-12-10 19:45:30 +01:00
Sebastiaan Speck 862bbdf4e4
ykman*: add Dutch translation (#11707)
* ykman*: add Dutch translation

---------

Co-authored-by: Leon <leonvsc@users.noreply.github.com>
2023-12-10 18:03:15 +05:30
Isaac-Carrascal 53d5899e76
aws-ec2: add Spanish translation (#11706) 2023-12-10 12:41:46 +01:00
HoJeong Im 5d4fa5b5c6
ajson: add Korean translation (#11708) 2023-12-10 07:59:15 +01:00
Sebastiaan Speck 5721431fe1
clang: add Dutch translation (#11705) 2023-12-09 15:09:20 +01:00
Sebastiaan Speck 1e5987515a
ar: add Dutch translation (#11703) 2023-12-09 14:39:45 +01:00
Sebastiaan Speck 523c134aa1
clj: add Dutch translation (#11704) 2023-12-09 14:50:16 +05:30
Hahaha ac8b4a67bf
docker-{load,diff}: add French translation (#11684) 2023-12-08 23:09:17 +01:00
Reinhart Previano Koentjoro 4b9ccf7ab9
halt: fix page (#11702) 2023-12-08 18:48:28 +01:00
Darío Hereñú f0c2f8c277
apt-add-repository: fix typo in Spanish translation (#11700) 2023-12-08 06:51:46 +01:00
Lena 6ac59acdfa
ykman: update page; ykman-{config,fido,oath,openpgp}: add page (#11698) 2023-12-08 06:51:19 +01:00
K.B.Dharun Krishna 27c6fcc0ec CONTRIBUTING: minor fixes
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2023-12-08 03:30:02 +00:00
K.B.Dharun Krishna 1683b15205 CONTRIBUTING: add tip about pre-commit hook
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-08 03:30:02 +00:00
K.B.Dharun Krishna 4c0855c7e3 CONTRIBUTING: fix typo
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-12-08 03:30:02 +00:00
K.B.Dharun Krishna 246e151e8f CONTRIBUTING: fix typo 2023-12-08 03:30:02 +00:00
K.B.Dharun Krishna 6bf91f8050 cleanup/contributing: update page
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-08 03:30:02 +00:00
Gilad Alboher 8c1df4a32e
gcloud-kms-decrypt: add page. (#11689)
* I have added gcloud-components_update.

* gcloud-kms-decrypt: new page

* deleted pages/common/gcloud-components_update: empty page

* gcloud-kms-decrypt: suggestions fix

* gcloud-kms-decrypt: suggestions fix
2023-12-07 16:01:48 +01:00
K.B.Dharun Krishna b39b125f3b
gcloud-{logging-logs-list, sql-export-sql}: add page (#11695)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: danielsagie <137056545+danielsagie@users.noreply.github.com>
2023-12-07 16:01:19 +01:00
danielsagie 511ed7af54
gcloud-{components-install, config-set}: add pages (#11679) 2023-12-07 15:15:04 +05:30
Gilad Alboher 30d80a3774
gcloud-info: new page (#11690) 2023-12-07 15:12:15 +05:30
Lena b064cde9cf
gpg-card: add page (#11685) 2023-12-07 05:19:53 +01:00
Gilad Alboher 570393df9b
gcloud-components-update: add page (#11682) 2023-12-07 05:16:08 +01:00
Weihang Zheng 51b9299748
mysqlsh: add page (#11672)
* mysqlsh: add page

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-06 22:29:56 +05:30
Darío Hereñú 74cd86395d
nest: fix typo in Spanish translation (#11675) 2023-12-06 12:48:13 +05:30
Darío Hereñú 6b727e7e1c
yes: fix typos in Spanish translation (#11678) 2023-12-06 12:47:55 +05:30
Darío Hereñú 26b815c369
krunvm: fix typos in Spanish translation (#11673) 2023-12-06 12:47:33 +05:30
Darío Hereñú c313d591cf
tree: fix typo in Spanish translation (#11677) 2023-12-06 12:47:10 +05:30
HoJeong Im 8291123e9a
atrm: add Korean translation (#11674) 2023-12-06 08:05:21 +01:00
176 changed files with 2151 additions and 256 deletions

2
.github/CODEOWNERS vendored
View File

@ -16,7 +16,7 @@
/pages/linux/ @sbrl /pages/linux/ @sbrl
/*.md @sbrl @kbdharun /*.md @sbrl @kbdharun
/.github/* @sbrl @kbdharun @sebastiaanspeck /.github/workflows/* @sbrl @kbdharun @sebastiaanspeck
/scripts/* @sebastiaanspeck /scripts/* @sebastiaanspeck
/contributing-guides/maintainers-guide.md @sbrl @kbdharun /contributing-guides/maintainers-guide.md @sbrl @kbdharun

View File

@ -16,9 +16,9 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: '3.12'
cache: 'pip' cache: 'pip'
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4

View File

@ -203,3 +203,17 @@ Any member of the community can (and is encouraged to) propose role changes
by following the process outlined [above](#how-to-change-roles). by following the process outlined [above](#how-to-change-roles).
[Owners of the tldr-pages organization](MAINTAINERS.md#organization-owners) [Owners of the tldr-pages organization](MAINTAINERS.md#organization-owners)
can then perform the actual role changes. can then perform the actual role changes.
## CODEOWNERS
The [`.github/CODEOWNERS` file](https://github.com/tldr-pages/tldr/blob/main/.github/CODEOWNERS) allows contributors with write access to the [tldr-pages/tldr repository](https://github.com/tldr-pages/tldr) to get automatic review request notifications for given files and directories.
If they wish to, contributors can open a pull request to add themselves to this file as desired.
Example uses include (but are not limited to):
- Contributors who speak a specific language and want to assist with reviewing translations in those specific languages.
- Contributors with specific expertise who wish to review pull requests for specific platforms.
- Contributors interested in reviewing [client specification](https://github.com/tldr-pages/tldr/blob/main/CLIENT-SPECIFICATION.md) updates.
> [!NOTE]
> This mechanism is purely for automatic review requests for PRs and doesn't grant collaborators additional copyright over the code-owned files. View the [LICENSE](https://github.com/tldr-pages/tldr/blob/main/LICENSE.md) file for more information.

View File

@ -18,29 +18,30 @@
[license-image]: https://img.shields.io/badge/license-CC_BY_4.0-blue.svg?label=License [license-image]: https://img.shields.io/badge/license-CC_BY_4.0-blue.svg?label=License
Contributions to the tldr-pages project are [most welcome](GOVERNANCE.md)! Contributions to the tldr-pages project are [most welcome](GOVERNANCE.md)!
All `tldr` pages are stored in Markdown right here on GitHub.
Just open an issue or send a pull request and we'll incorporate it as soon as possible. All `tldr` pages are stored in Markdown right here on GitHub. Just open an issue or send a pull request, and we'll incorporate it as soon as possible.
To get started, please [sign](https://cla-assistant.io/tldr-pages/tldr) the To get started, please [sign](https://cla-assistant.io/tldr-pages/tldr) the
[Contributor License Agreement](https://gist.github.com/waldyrious/e50feec13683e565769fbd58ce503d4e). [Contributor License Agreement](https://gist.github.com/waldyrious/e50feec13683e565769fbd58ce503d4e).
> [!NOTE] > [!NOTE]
> When submitting a new command, please base your PR against the `main` branch, and check if there's already a pull request in progress for it. > When submitting a new command, please base your PR against the `main` branch and check if there's already a pull request in progress for it.
## Guidelines ## Guidelines
The basic format of a `tldr` page is a set of concrete usage examples. The basic format of a `tldr` page is a set of concrete usage examples.
Here are a few guidelines to get started: Here are a few guidelines to get started:
1. Try to keep pages at around 5 examples. Pages can be longer or shorter when appropriate, but don't exceed 8 examples. 1. Try to keep pages at around 5 examples. Pages can be longer or shorter when appropriate, but don't exceed the maximum of eight examples.
Remember, it's OK if the page doesn't cover everything; that's what `man` is for. Remember, it's OK if the page doesn't cover everything; that's what `man` is for.
2. When in doubt, keep new command-line users in mind. Err on the side of clarity rather than terseness. 2. When in doubt, keep new command-line users in mind. Err on the side of clarity rather than terseness.
For example, commands that require `sudo` should include it directly in the examples. For example, commands that require `sudo` should include it directly in the examples.
3. Try to incorporate the spelled-out version of single-letter options in the example's description. 3. Try to incorporate the spelled-out version of single-letter options in the example's description.
The goal is to allow people to *understand* the syntax of the commands, not just *memorize* it. The goal is to allow people to *understand* the syntax of the commands, not just *memorize* it.
4. Introduce options gradually, starting with the simplest command invocations, 4. Introduce options gradually, starting with the simplest command invocations and using more complex examples progressively.
and using more complex examples progressively. 5. Focus on details specific to the command and avoid explaining general UNIX concepts that could apply to any command
5. Focus on details specific to the command, and avoid explaining general UNIX concepts that could apply to any command (i.e. relative/absolute paths, glob patterns/wildcards, special character escaping, ...).
(ex: relative/absolute paths, glob patterns/wildcards, special character escaping...).
These are all guidelines, not strict rules. These are all guidelines, not strict rules.
Use proper judgement, keeping simplicity and user-friendliness as the top priorities. Use proper judgement, keeping simplicity and user-friendliness as the top priorities.
@ -51,7 +52,7 @@ When in doubt, have a look at a few existing pages :).
As a quick reference, the format of each page should match the following template: As a quick reference, the format of each page should match the following template:
``` ```md
# command-name # command-name
> Short, snappy description. > Short, snappy description.
@ -67,12 +68,18 @@ As a quick reference, the format of each page should match the following templat
`command --option1 --option2 {{arg_value}}` `command --option1 --option2 {{arg_value}}`
``` ```
For page descriptions, you can additionally use ``See also: `command`.`` and [subcommand reference](#subcommands).
> [!NOTE]
> While we suggest only two lines for the page description, it is acceptable to have more than two lines if it necessary to add additional information (i.e. [`pacman`](https://github.com/tldr-pages/tldr/blob/main/pages/linux/pacman.md)).
To see some examples of preexisting pages, you can look at: To see some examples of preexisting pages, you can look at:
- [pwd](https://github.com/tldr-pages/tldr/blob/main/pages/common/pwd.md) - one of the simplest command examples - [pwd](https://github.com/tldr-pages/tldr/blob/main/pages/common/pwd.md) - one of the simplest command examples
- [tar](https://github.com/tldr-pages/tldr/blob/main/pages/common/tar.md) - page with placeholders - [tar](https://github.com/tldr-pages/tldr/blob/main/pages/common/tar.md) - page with placeholders
In our pages, we use placeholders defined as being tokens within curly brackets. For example, in `sleep {{5}}`, the user can change 5 to any number.
In our pages, we use placeholders which are defined as being tokens within curly brackets, for example `sleep {{5}}`, in this case the user can change 5 to any number.
Other examples but not limited to of our placeholder syntax are: Other examples but not limited to of our placeholder syntax are:
- `{{path/to/directory}}` - `{{path/to/directory}}`
@ -84,84 +91,129 @@ refer to the [style guide](contributing-guides/style-guide.md).
## Subcommands ## Subcommands
Many programs use subcommands for separating functionality, which may require their own separate pages. Many programs use subcommands for separating functionality, which may require their own separate pages.
For instance, `git commit` has its own page, as well as `git push` and many others. For instance, `git commit` has its own page, as well as `git push` and many others.
To create a page for a subcommand, the program and subcommand need to be separated with a dash (`-`), so `git-commit.md` is shown when calling `tldr git commit`. To create a page for a subcommand, the program and subcommand need to be separated with a dash (`-`), so `git-commit.md` is shown when calling `tldr git commit`.
You should always add a base page (e.g. `git`) that describes the program and basic switches like `--version` or `--help`. You should always add a base page (e.g. `git`) that describes the program and basic switches like `--version` or `--help`.
To let users know about the subcommand, add a note saying ``Some subcommands such as `example command` have their own usage documentation`` to the base page.
To let others know about the subcommand, add a note saying ``Some subcommands such as `example command` have their own usage documentation`` to the base page.
See these examples for reference: See these examples for reference:
* [git](pages/common/git.md) - [git](pages/common/git.md)
* [git-commit](pages/common/git-commit.md) - [git-commit](pages/common/git-commit.md)
* [aws](pages/common/aws.md) - [aws](pages/common/aws.md)
* [aws-s3](pages/common/aws-s3.md) - [aws-s3](pages/common/aws-s3.md)
## Translations ## Translations
Translation of pages can be done by simply creating the corresponding page within the appropriate language-specific directory, creating that as well if it does not already exist. Translation of pages can be done by simply creating the corresponding page within the appropriate language-specific directory, creating that as well if it does not already exist.
> [!IMPORTANT]
> Translations of pages should be done based on the English (US) page in the `pages` directory. If the English pages doesn't exist for the command, it should be added first in a PR before creating a translation.
Language specific directories must follow the pattern `pages.<locale>`, where `<locale>` is a [POSIX Locale Name](https://www.gnu.org/software/gettext/manual/html_node/Locale-Names.html#Locale-Names) in the form of `<language>[_<country>]`, where: Language specific directories must follow the pattern `pages.<locale>`, where `<locale>` is a [POSIX Locale Name](https://www.gnu.org/software/gettext/manual/html_node/Locale-Names.html#Locale-Names) in the form of `<language>[_<country>]`, where:
- `<language>` is the shortest [ISO 639](https://en.wikipedia.org/wiki/ISO_639) language code for the chosen language (see [here](https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes) for a complete list). - `<language>` is the shortest [ISO 639](https://en.wikipedia.org/wiki/ISO_639) language code for the chosen language (see [here](https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes) for a complete list).
- `<country>` is the two-letter [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) country code for the chosen region (see [here](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) for a complete list). - `<country>` is the two-letter [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) country code for the chosen region (see [here](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) for a complete list).
The `<country>` code is optional and should only be added when it is needed. In other words, only when there is a valid reason to distinguish between a language (`ll`) and its regional dialects (`ll_CC1`, `ll_CC2`, etc.). As an example, both `fr_FR` and `fr_BE` should fall under the same `pages.fr` directory, since there virtually is no difference in writing between standard French and Belgian French. The `<country>` code is optional and should only be added when it is needed. In other words, only when there is a valid reason to distinguish between a language (`ll`) and its regional dialects (`ll_CC1`, `ll_CC2`, etc.). For example, both `fr_FR` and `fr_BE` should fall under the same `pages.fr` directory since there virtually is no difference in writing between standard French and Belgian French.
> [!IMPORTANT]
> When adding a new language to `tldr`, it is suggested to add it to the [translation templates](contributing-guides/translation-templates) along with any page additions.
To see the current progress of all translations, you can visit <https://lukwebsforge.github.io/tldri18n/>, which provides a dynamically updated table of all pages and their translations. To see the current progress of all translations, you can visit <https://lukwebsforge.github.io/tldri18n/>, which provides a dynamically updated table of all pages and their translations.
Some examples of valid locale tags: Some examples of valid locale tags:
- French: `fr`. - French: `fr`.
- Chinese: `zh`. - Chinese: `zh`.
- Chinese (Singapore): `zh_SG`. - Chinese (Singapore): `zh_SG`.
- Portuguese (Brazil): `pt_BR`. - Portuguese (Brazil): `pt_BR`.
A list of translated templates for alias pages can be found in [here](contributing-guides/translation-templates/alias-pages.md). A list of translated templates for alias pages can be found [here](contributing-guides/translation-templates/alias-pages.md).
Pull requests that introduce translations are the exception to the single file change per Pull Request rule. It is It is acceptable for several pages to get translated in one pull request.
acceptable for several pages to be translated in one pull request.
### Default language for newly added pages For more information about language specific rules, refer to the [style guide](contributing-guides/style-guide.md#language-specific-rules).
The default language used for pages is English (US). Pages written in English are stored in the default `pages` directory (notice the absence of a specific language tag). Although not strictly required, if you'd like to add a new page in a different language, please consider creating the English page too.
## Inclusive language ## Inclusive language
Where possible, use inclusive language in the content of pages. For example, prefer terms like "denylist"/"allowlist" instead of "blacklist"/"whitelist", "primary"/"secondary" instead of "master"/"slave", "they" instead of "him"/"her", etc. Where possible, use inclusive language in the content of pages. For example, prefer terms like "denylist"/"allowlist" instead of "blacklist"/"whitelist", "primary"/"secondary" instead of "master"/"slave", "they" instead of "him"/"her", etc.
Of course, this shouldn't sacrifice content clarity, such as when documenting tools where this terminology has specific technical meanings, and its usage is central to explaining the involved concepts. Of course, this shouldn't sacrifice content clarity, such as when documenting tools where this terminology has specific technical meanings and its usage is central to explaining the involved concepts.
## Submitting a pull request ## Submitting a pull request
The easiest way to submit a change is to just edit the page directly on the GitHub interface. ### Testing pages locally
Once you have written a `tldr` page, you can test its syntax locally using [`tldr-lint`](https://github.com/tldr-pages/tldr-lint).
The latest version of [NodeJS](https://nodejs.org) is required to install `tldr-lint` with the following command:
```sh
npm install --global tldr-lint
```
Once its installed, you can test your page by running the following command:
```sh
tldr-lint {{path/to/page.md}}
```
Now, you are ready to submit a pull request!
> [!TIP]
> Additionally, inside the `tldr` directory you can install the dependencies using `npm install` command and now when you commit your changes, the tests will run automatically via the pre-commit hook.
### Submitting changes
The easiest way to submit a change is to edit the page directly on the GitHub interface.
Check out the step-by-step instructions (with screenshots) on Check out the step-by-step instructions (with screenshots) on
[GitHub Help](https://help.github.com/articles/editing-files-in-another-user-s-repository/). [GitHub Help](https://help.github.com/articles/editing-files-in-another-user-s-repository/).
Alternatively, you can do most of the process Alternatively, you can do most of the process
[using Git on the command-line](contributing-guides/git-terminal.md). [using Git on the command-line](contributing-guides/git-terminal.md).
> [!TIP]
> After creating a pull request, it is suggested to enable the "Allow edits by maintainers" option (This only needs to be done once the first time you create a PR). It allows maintainers to make changes to your pull request and assist you in getting it merged.
### Accepting suggestions within a pull request ### Accepting suggestions within a pull request
The easiest way to apply suggested changes is to accept the suggestion made on your pull request. Refer to the [GitHub docs](https://docs.github.com/en/enterprise-server@3.2/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request) for more details. The easiest way to apply suggested changes is to accept the suggestion made on your pull request. Refer to the [GitHub docs](https://docs.github.com/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request) for more details.
To commit a suggestion to your pull request, simply click on `Commit suggestion`: To commit a suggestion to your pull request, click on `Commit suggestion`:
![Commit suggestion button in Github](./images/commit-suggestion-button.png) ![Commit suggestion button in Github](./images/commit-suggestion-button.png)
If you want to commit multiple suggestions, go to the "Files changed" tab and batch all suggestions. Now, click `Commit suggestions` button and enter a commit message to create a single commit.
### Commit message ### Commit message
For the commit message, use the following format: For the commit message of page changes, use the following format:
<command>: type of change `{{command}}: type of change`
Examples: Where `{{command}}` is the name of the command being modified, and `type of change` can be (but not limited to) one of the following examples:
- For a new page addition: `ls: add page`
- For a page edit: `cat: fix typo`, `git-push: add --force example` - For a new page addition: `ls: add page`, `docker-container-rm: add alias page`
- For a new translation of an existing page: `cp: add Tamil translation` - For a page edit: `cat: fix typo`, `git-push: add --force example`
- For related changes to several pages: `grep, find, locate: synchronize format of wildcards` - For a new translation of an existing page: `cp: add Tamil translation`
- For a modification to the translation of an existing page: `cp: fix typo in Tamil translation`
- For related changes to several pages: `grep, find, locate: synchronize format of wildcards`
- For multiple subcommand page additions: `git-{add, push, ...}: add page`
- For modifying multiple pages in a language: `pages.<locale>/*: update pages`
---
For other cases, its suggested to follow <https://www.conventionalcommits.org/> as much as possible.
## Licensing ## Licensing
This repository is licensed under the [Creative Commons Attribution 4.0 International License](LICENSE.md). This repository is licensed under the [Creative Commons Attribution 4.0 International License](LICENSE.md).
The contents of the `scripts/` directory are licensed under the [MIT license](LICENSE.md). The contents of the `scripts/` directory are licensed under the [MIT license](LICENSE.md).
Any contributions to this project are governed by the Any contributions to this project are governed by the

View File

@ -263,7 +263,7 @@ Keep the following guidelines in mind when choosing placeholders:
- If a command can take 0 or more arguments of the same kind, use an ellipsis: `{{placeholder1 placeholder2 ...}}`. - If a command can take 0 or more arguments of the same kind, use an ellipsis: `{{placeholder1 placeholder2 ...}}`.
For instance, if multiple paths are expected `{{path/to/directory1 path/to/directory2 ...}}` can be used. For instance, if multiple paths are expected `{{path/to/directory1 path/to/directory2 ...}}` can be used.
- If a command can take 0 or more arguments of different kinds, use an ellipsis: `{{placeholder1|placeholder2|...}}`. - If a command can take 0 or more arguments of different kinds, use an ellipsis: `{{placeholder1|placeholder2|...}}`.
If there are more than 5 possible values use `|...` after the last item. If there are more than 5 possible values, you can use `|...` after the last item.
- It's impossible to restrict the minimum or (and) maximum placeholder count via `ellipsis`. - It's impossible to restrict the minimum or (and) maximum placeholder count via `ellipsis`.
It's up to the program to decide how to handle duplicating values, provided syntax It's up to the program to decide how to handle duplicating values, provided syntax

View File

@ -1,4 +1,4 @@
# apt # apt-get
> أداة إدارة الحزم لديبيان وأوبونتو. > أداة إدارة الحزم لديبيان وأوبونتو.
> ابحث عن الحزم باستخدام `apt-cache`. > ابحث عن الحزم باستخدام `apt-cache`.

View File

@ -25,7 +25,7 @@
- একটি নির্দিষ্ট সংরক্ষণ প্রকার ব্যবহার করে সংরক্ষণ করুন: - একটি নির্দিষ্ট সংরক্ষণ প্রকার ব্যবহার করে সংরক্ষণ করুন:
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{সংরক্ষণ.7z/এর/পথ}} {{ফাইল_অথবা_ডিরেক্টরি/এর/পথ}}` `7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{সংরক্ষণ/এর/পথ}} {{ফাইল_অথবা_ডিরেক্টরি/এর/পথ}}`
- একটি সংরক্ষণের সামগ্রী তালিকা বদ্ধ করুন: - একটি সংরক্ষণের সামগ্রী তালিকা বদ্ধ করুন:

View File

@ -6,7 +6,7 @@
- পরীক্ষা করুন যদি দেওয়া ভেরিয়েবল নির্দিষ্ট স্ট্রিং এর সমান/সমান না হয়: - পরীক্ষা করুন যদি দেওয়া ভেরিয়েবল নির্দিষ্ট স্ট্রিং এর সমান/সমান না হয়:
`[ "${{ভেরিয়েবল}}" {{==|!=}} "{{স্ট্রিং}}" ]` `[ "${{ভেরিয়েবল}}" {{=|!=}} "{{স্ট্রিং}}" ]`
- পরীক্ষা করুন যদি দেওয়া ভেরিয়েবল [ই]কুয়াল/[ন]ট [ই]কুয়াল/[জি]টে [ল]েস [ট]হ্যান/[জি]টে [ই]কুয়াল/[ল]েস ট্রু থেকে/[ল]েস থেকে বা সমান নির্দিষ্ট সংখ্যায়: - পরীক্ষা করুন যদি দেওয়া ভেরিয়েবল [ই]কুয়াল/[ন]ট [ই]কুয়াল/[জি]টে [ল]েস [ট]হ্যান/[জি]টে [ই]কুয়াল/[ল]েস ট্রু থেকে/[ল]েস থেকে বা সমান নির্দিষ্ট সংখ্যায়:

View File

@ -25,7 +25,7 @@
- [a]rxiva un fitxer fent servir un tipus d'arxiu específic: - [a]rxiva un fitxer fent servir un tipus d'arxiu específic:
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{camí/al/fitxer.7z}} {{camí/al/fitxer_o_directori}}` `7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{camí/al/fitxer}} {{camí/al/fitxer_o_directori}}`
- [l]lista els continguts d'un fitxer: - [l]lista els continguts d'un fitxer:

View File

@ -17,7 +17,7 @@
- Deté la màquina inmediatament sense contactar l'administrador de sistemes: - Deté la màquina inmediatament sense contactar l'administrador de sistemes:
`halt --force --force` `halt --force`
- Escriu l'entrada de wtpm shutdown sense aturar el sistema: - Escriu l'entrada de wtpm shutdown sense aturar el sistema:

View File

@ -25,7 +25,7 @@
- [a]rchiviere mit einem bestimmten Archivtyp: - [a]rchiviere mit einem bestimmten Archivtyp:
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{pfad/zu/archiv.7z}} {{pfad/zu/datei_oder_verzeichnis}}` `7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{pfad/zu/archiv}} {{pfad/zu/datei_oder_verzeichnis}}`
- [l]iste den Inhalt einer Archivdatei auf: - [l]iste den Inhalt einer Archivdatei auf:

View File

@ -6,7 +6,7 @@
- Überprüfe, ob eine bestimmte Variable gleich oder ungleich einem bestimmen String ist: - Überprüfe, ob eine bestimmte Variable gleich oder ungleich einem bestimmen String ist:
`[ "${{variable}}" {{==|!=}} "{{string}}" ]` `[ "${{variable}}" {{=|!=}} "{{string}}" ]`
- Überprüfe, ob eine Variable gleich/ungleich/größer/kleiner/größer-gleich oder kleiner-gleich als eine bestimme Zahl ist: - Überprüfe, ob eine Variable gleich/ungleich/größer/kleiner/größer-gleich oder kleiner-gleich als eine bestimme Zahl ist:

View File

@ -13,20 +13,20 @@
- Zeige die IP Adresse eines Containers an: - Zeige die IP Adresse eines Containers an:
`docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' {{container}}` `docker inspect --format '\{\{range.NetworkSettings.Networks\}\}\{\{.IPAddress\}\}\{\{end\}\}' {{container}}`
- Zeige den Pfad zur Logdatei eines Containers: - Zeige den Pfad zur Logdatei eines Containers:
`docker inspect --format='{{.LogPath}}' {{container}}` `docker inspect --format='\{\{.LogPath\}\}' {{container}}`
- Zeige den Namen des Images eines Containers: - Zeige den Namen des Images eines Containers:
`docker inspect --format='{{.Config.Image}}' {{container}}` `docker inspect --format='\{\{.Config.Image\}\}' {{container}}`
- Zeige die Konfiguration als JSON an: - Zeige die Konfiguration als JSON an:
`docker inspect --format='{{json .Config}}' {{container}}` `docker inspect --format='\{\{json .Config\}\}' {{container}}`
- Zeige alle Port Bindings: - Zeige alle Port Bindings:
`docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> {{(index $conf 0).HostPort}} {{end}}' {{container}}` `docker inspect --format='\{\{range $p, $conf := .NetworkSettings.Ports\}\} \{\{$p\}\} -> \{\{(index $conf 0).HostPort\}\} \{\{end\}\}' {{container}}`

View File

@ -1,4 +1,4 @@
# gplusplus # g++
> Kompiliere C++ Quelldateien. > Kompiliere C++ Quelldateien.
> Teil der GCC (GNU Compiler Collection). > Teil der GCC (GNU Compiler Collection).

View File

@ -25,7 +25,7 @@
- Comprime usando un tipo de archivo comprimido específico: - Comprime usando un tipo de archivo comprimido específico:
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{archivo_comprimido.7z}} {{ruta/al/archivo_o_directorio_a_comprimir}}` `7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{archivo_comprimido}} {{ruta/al/archivo_o_directorio_a_comprimir}}`
- Lista el contenido de un archivo comprimido: - Lista el contenido de un archivo comprimido:

View File

@ -6,7 +6,7 @@
- Comprueba si una variable dada es igual/no es igual a la cadena especificada: - Comprueba si una variable dada es igual/no es igual a la cadena especificada:
`["${{variable}}" {{==|!=}} "{{cadena}}" ]` `["${{variable}}" {{=|!=}} "{{cadena}}" ]`
- Prueba si una variable dada es [eq]ual/[n]ot [e]qual/[g]reater [t]han/[l]ess [t]han/[g]reater que o [e]qual/[l]ess que o [e]qual al número especificado: - Prueba si una variable dada es [eq]ual/[n]ot [e]qual/[g]reater [t]han/[l]ess [t]han/[g]reater que o [e]qual/[l]ess que o [e]qual al número especificado:

View File

@ -0,0 +1,37 @@
# aws ec2
> Interfaz de línea de comandos (CLI) para AWS EC2.
> Provee capacidad de computacion segura y redimensionable en la nube de AWS, permitiendo mayor velociddad en el desarrollo e implementación de aplicaciones.
> Más información: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/index.html>.
- Muestra información acerca de una instancia específica:
`aws ec2 describe-instances --instance-ids {{id_instancia}}`
- Muestra información sobre todas las instancias:
`aws ec2 describe-instances`
- Muestra información sobre todos los volúmenes EC2:
`aws ec2 describe-volumes`
- Elimina un volumen EC2:
`aws ec2 delete-volume --volume-id {{id_volumen}}`
- Crea una instantánea a partir de un volumen EC2:
`aws ec2 create-snapshot --volume-id {{id_volumen}}`
- Lista las imágenes de máquina de Amazon disponibles (AMI):
`aws ec2 describe-images`
- Lista todos los comandos EC2 disponibles:
`aws ec2 help`
- Muestra la ayuda para un comando EC2 específico:
`aws ec2 {{subcomando}} help`

View File

@ -15,7 +15,7 @@
`helm install {{nombre_del_paquete}} {{https://example.com/charts/packagename-1.2.3.tgz}}` `helm install {{nombre_del_paquete}} {{https://example.com/charts/packagename-1.2.3.tgz}}`
- Instalar un chart de helm y genera un nombre: - Instala un chart de helm y genera un nombre:
`helm install {{nombre_del_repositorio}}/{{nombre_del_chart}} --generate-name` `helm install {{nombre_del_repositorio}}/{{nombre_del_chart}} --generate-name`

View File

@ -1,24 +1,24 @@
# krunvm # krunvm
> Utilidad basada en CLI para crear micro máquinas virtuales utilizando imagenes OCI. > Utilidad basada en CLI para crear micro máquinas virtuales utilizando imágenes OCI.
> Más información: <https://github.com/containers/krunvm>. > Más información: <https://github.com/containers/krunvm>.
- Crea una micro máquina virtual basada en Fedora: - Crea una micro máquina virtual basada en Fedora:
`krunvm create {{docker.io/fedora}} --cpus {{numero_de_vcpus}} --mem {{memoria_en_megabytes}} --name "{{nombre}}"` `krunvm create {{docker.io/fedora}} --cpus {{número_de_vcpus}} --mem {{memoria_en_megabytes}} --name "{{nombre}}"`
- Inicia una imagen especifica: - Inicia una imagen específica:
`krunvm start "{{nombre}}"` `krunvm start "{{nombre}}"`
- Lista las imagenes existentes: - Lista las imágenes existentes:
`krunvm list` `krunvm list`
- Cambia una imagen especifica: - Cambia una imagen específica:
`krunvm changevm --cpus {{numero_de_vcpus}} --mem {{memoria_en_megabytes}} --name "{{nuevo_nombre}}" "{{nombre}}"` `krunvm changevm --cpus {{número_de_vcpus}} --mem {{memoria_en_megabytes}} --name "{{nuevo_nombre}}" "{{nombre}}"`
- Borra una imagen especifica: - Borra una imagen específica:
`krunvm delete "{{nombre}}"` `krunvm delete "{{nombre}}"`

View File

@ -11,7 +11,7 @@
`nest new {{nombre_del_proyecto}}` `nest new {{nombre_del_proyecto}}`
- Construye un a proyecto NestJS específico: - Construye un proyecto NestJS específico:
`nest build {{nombre_del_proyecto}}` `nest build {{nombre_del_proyecto}}`

View File

@ -4,30 +4,30 @@
> A veces combinada con un método de compresión, como gzip o bzip2. > A veces combinada con un método de compresión, como gzip o bzip2.
> Más información: <https://www.gnu.org/software/tar>. > Más información: <https://www.gnu.org/software/tar>.
- Crea un archivo a partir de otros archivos: - Crear un archivo a partir de otros archivos:
`tar cf {{archivo_destino.tar}} {{archivo1}} {{archivo2}} {{archivo3}}` `tar cf {{archivo_destino.tar}} {{archivo1}} {{archivo2}} {{archivo3}}`
- Crea un archivo comprimido con gzip: - Crear un archivo comprimido con gzip:
`tar czf {{archivo_destino.tar.gz}} {{archivo1}} {{archivo2}} {{archivo3}}` `tar czf {{archivo_destino.tar.gz}} {{archivo1}} {{archivo2}} {{archivo3}}`
- Extrae un archivo (comprimido) en el directorio actual: - Extraer un archivo (comprimido) en el directorio actual:
`tar xf {{archivo.tar[.gz|.bz2|.xz]}}` `tar xf {{archivo.tar[.gz|.bz2|.xz]}}`
- Extrae un archivo en un directorio: - Extraer un archivo en un directorio:
`tar xf {{archivo.tar}} -C {{directorio}}` `tar xf {{archivo.tar}} -C {{directorio}}`
- Crea un archivo comprimido usando el sufijo para determinar el programa de compresión: - Crear un archivo comprimido usando el sufijo para determinar el programa de compresión:
`tar caf {{archivo_destino.tar.xz}} {{archivo1}} {{archivo2}} {{archivo3}}` `tar caf {{archivo_destino.tar.xz}} {{archivo1}} {{archivo2}} {{archivo3}}`
- Muestra el contenido de un archivo tar: - Mostrar el contenido de un archivo tar:
`tar tvf {{archivo.tar}}` `tar tvf {{archivo.tar}}`
- Extrae archivos que coinciden con un patrón: - Extraer archivos que coinciden con un patrón:
`tar xf {{archivo.tar}} --wildcards "{{*.html}}"` `tar xf {{archivo.tar}} --wildcards "{{*.html}}"`

View File

@ -3,7 +3,7 @@
> Muestra los contenidos del directorio actual en forma de árbol. > Muestra los contenidos del directorio actual en forma de árbol.
> Más información: <http://mama.indstate.edu/users/ice/tree/>. > Más información: <http://mama.indstate.edu/users/ice/tree/>.
- Imprime archivos y directories hasta `num` niveles de profundidad (donde 1 significa el directorio actual): - Imprime archivos y directorios hasta `num` niveles de profundidad (donde 1 significa el directorio actual):
`tree -L {{num}}` `tree -L {{num}}`

View File

@ -4,14 +4,14 @@
> Este comando es frecuentemente utilizado para aceptar todas las confirmaciones en comandos de instalación (como apt-get). > Este comando es frecuentemente utilizado para aceptar todas las confirmaciones en comandos de instalación (como apt-get).
> Más información: <https://www.gnu.org/software/coreutils/yes>. > Más información: <https://www.gnu.org/software/coreutils/yes>.
- Retornar repetidamente "mensaje": - Retorna repetidamente "mensaje":
`yes {{mensaje}}` `yes {{mensaje}}`
- Retornar repetidamente "y": - Retorna repetidamente "y":
`yes` `yes`
- Aceptar todas las confirmaciones que muestre el comando `apt-get`: - Acepta todas las confirmaciones que muestre el comando `apt-get`:
`yes | sudo apt-get install {{programa}}` `yes | sudo apt-get install {{programa}}`

View File

@ -15,6 +15,6 @@
`apt-add-repository --update {{repositorio}}` `apt-add-repository --update {{repositorio}}`
- Activar las fuentes de paquetes: - Activa las fuentes de paquetes:
`apt-add-repository --enable-source {{repositorio}}` `apt-add-repository --enable-source {{repositorio}}`

View File

@ -1,16 +1,16 @@
# grub-mkconfig # grub-mkconfig
> Generar un archivo de configuracion de GRUB. > Genera un archivo de configuracion de GRUB.
> Más información: <https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dmkconfig.html>. > Más información: <https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dmkconfig.html>.
- Ejecutar el comando solo e imprimir la salida a `stdout`: - Ejecuta el comando solo e imprime la salida a `stdout`:
`sudo grub-mkconfig` `sudo grub-mkconfig`
- Generar el archivo de configuracion: - Genera el archivo de configuración:
`sudo grub-mkconfig --output={{/boot/grub/grub.cfg}}` `sudo grub-mkconfig --output={{/boot/grub/grub.cfg}}`
- Imprimir la pagina de ayuda: - Imprime la página de ayuda:
`grub-mkconfig --help` `grub-mkconfig --help`

View File

@ -27,6 +27,6 @@
`man --locale={{locale}} {{comando}}` `man --locale={{locale}} {{comando}}`
- Busca las páginas del manual que contienen la string indicada: - Busca las páginas del manual que contienen la cadena indicada:
`man --apropos "{{cadena_a_buscar}}"` `man --apropos "{{cadena_a_buscar}}"`

View File

@ -1,6 +1,6 @@
# raspinfo # raspinfo
> Muestra informacion del sistema en una Raspberry Pi. > Muestra información del sistema en una Raspberry Pi.
> Más información: <https://github.com/raspberrypi/utils/tree/master/raspinfo>. > Más información: <https://github.com/raspberrypi/utils/tree/master/raspinfo>.
- Muestra información del sistema: - Muestra información del sistema:

View File

@ -1,8 +1,8 @@
# tcpkill # tcpkill
> Mata la conexiones TCP en curso especificadas. > Elimina las conexiones TCP en curso especificadas.
> Más información: <https://manned.org/tcpkill>. > Más información: <https://manned.org/tcpkill>.
- Mata las conexiones en curso de una interfaz, máquina y puerto indicados: - Elimina las conexiones en curso de una interfaz, máquina y puerto indicados:
`tcpkill -i {{eth1}} host {{192.95.4.27}} and port {{2266}}` `tcpkill -i {{eth1}} host {{192.95.4.27}} and port {{2266}}`

View File

@ -7,7 +7,7 @@
`thunar` `thunar`
- Abra la utilidad de cambio de nombre masivo: - Abre la utilidad de cambio de nombre masivo:
`thunar --bulk-rename` `thunar --bulk-rename`

View File

@ -13,7 +13,7 @@
- Abre una imagen en el visor de imágenes predeterminado: - Abre una imagen en el visor de imágenes predeterminado:
`xdg-open {{ruta/al/imagen}}` `xdg-open {{ruta/a_la/imagen}}`
- Abre un PDF en el visor de PDF predeterminado: - Abre un PDF en el visor de PDF predeterminado:

View File

@ -5,19 +5,19 @@
- Instala un nuevo paquete: - Instala un nuevo paquete:
`yum install {{package}}` `yum install {{paquete}}`
- Instala un nuevo paquete respondiendo sí a todas las preguntas (también trabaja con actualizaciones, útil para actualizaciones automáticas): - Instala un nuevo paquete respondiendo sí a todas las preguntas (también trabaja con actualizaciones, útil para actualizaciones automáticas):
`yum -y install {{package}}` `yum -y install {{paquete}}`
- Encuentra que paquete provee un archivo determinado: - Encuentra que paquete provee un archivo determinado:
`yum provides {{command}}` `yum provides {{comando}}`
- Elimina un paquete: - Elimina un paquete:
`yum remove {{package}}` `yum remove {{paquete}}`
- Muestra las actualizaciones disponibles para los paquetes instalados: - Muestra las actualizaciones disponibles para los paquetes instalados:

View File

@ -12,7 +12,7 @@
`as {{archivo.s}} -o {{salida.o}}` `as {{archivo.s}} -o {{salida.o}}`
- Genera resultados más rápido omitiendo los espacios en blanco y el preprocesamiento de comentarios. (Solo debe usarse para compiladores de confianza): - Genera resultados más rápidos omitiendo los espacios en blanco y el preprocesamiento de comentarios. (Solo debe usarse para compiladores de confianza):
`as -f {{archivo.s}}` `as -f {{archivo.s}}`

View File

@ -1,6 +1,6 @@
# base64 # base64
> Codifica y decodifica usando la repesentación Base64. > Codifica y decodifica usando la representación Base64.
> Más información: <https://www.unix.com/man-page/osx/1/base64/>. > Más información: <https://www.unix.com/man-page/osx/1/base64/>.
- Codifica un archivo: - Codifica un archivo:

View File

@ -3,7 +3,7 @@
> Gestionar la configuración de la Protección de Integridad del Sistema. > Gestionar la configuración de la Protección de Integridad del Sistema.
> Más información: <https://ss64.com/osx/csrutil.html>. > Más información: <https://ss64.com/osx/csrutil.html>.
- Mstra el estado de la Protección de Integridad del Sistema: - Muestra el estado de la Protección de Integridad del Sistema:
`csrutil status` `csrutil status`

View File

@ -1,4 +1,4 @@
# cortar # cut
> Cortar campos sean `stdin` o archivos. > Cortar campos sean `stdin` o archivos.
> Más información: <https://manned.org/man/freebsd-13.0/cut.1>. > Más información: <https://manned.org/man/freebsd-13.0/cut.1>.

View File

@ -1,4 +1,4 @@
# Compartir Internet # InternetSharing
> Configura Internet Sharing. > Configura Internet Sharing.
> No debe invocarse manualmente. > No debe invocarse manualmente.

View File

@ -25,7 +25,7 @@
- آرشیو کردن با یک فرمت خاص : - آرشیو کردن با یک فرمت خاص :
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{7z.مسیر فایل آرشیو}} {{مسیر فایل یا دایرکتوری}}` `7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{مسیر فایل آرشیو}} {{مسیر فایل یا دایرکتوری}}`
- نمایش محتویات یک فایل آرشیو : - نمایش محتویات یک فایل آرشیو :

View File

@ -6,7 +6,7 @@
- بررسی میکند که آیا یک متغییر با رشته معین برابر است یا نابرابر : - بررسی میکند که آیا یک متغییر با رشته معین برابر است یا نابرابر :
`[ "${{متغییر}}" {{==|!=}} "{{رشته}}" ]` `[ "${{متغییر}}" {{=|!=}} "{{رشته}}" ]`
- اینکه متغییری برابر/ نابرابر/ بزرگتر از/ کوچکتر از/ برابر یا بزرگتر/ کوچکتر یا برابر با عددی است را بررسی میکند : - اینکه متغییری برابر/ نابرابر/ بزرگتر از/ کوچکتر از/ برابر یا بزرگتر/ کوچکتر یا برابر با عددی است را بررسی میکند :

View File

@ -25,7 +25,7 @@
- Archiver en utilisant un algorithme de compression particulier : - Archiver en utilisant un algorithme de compression particulier :
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{archive.7z}} {{chemin/vers/fichier_ou_dossier}}` `7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{archive}} {{chemin/vers/fichier_ou_dossier}}`
- Lister le contenu d'une archive : - Lister le contenu d'une archive :

View File

@ -0,0 +1,12 @@
# docker diff
> Inspecte les changements apportés aux fichiers ou dossiers sur le système de fichiers d'un conteneur.
> Plus d'informations : <https://docs.docker.com/engine/reference/commandline/diff>.
- Inspecte les changements apportés à un conteneur depuis sa création :
`docker diff {{conteneur}}`
- Affiche l'aide :
`docker diff --help`

View File

@ -13,20 +13,20 @@
- Afficher l'adresse IP d'un conteneur : - Afficher l'adresse IP d'un conteneur :
`docker inspect --format='{{range .NetworkSettings.Networks}} {{.IPAddress}}{{end}}' {{conteneur}}` `docker inspect --format '\{\{range.NetworkSettings.Networks\}\}\{\{.IPAddress\}\}\{\{end\}\}' {{conteneur}}`
- Afficher le chemin du fichier journal d'un conteneur : - Afficher le chemin du fichier journal d'un conteneur :
`docker inspect --format='{{.LogPath}}' {{conteneur}}` `docker inspect --format='\{\{.LogPath\}\}' {{conteneur}}`
- Afficher le nom de l'image d'un conteneur : - Afficher le nom de l'image d'un conteneur :
`docker inspect --format='{{.Config.Image}}' {{conteneur}}` `docker inspect --format='\{\{.Config.Image\}\}' {{conteneur}}`
- Afficher les informations de configuration en JSON : - Afficher les informations de configuration en JSON :
`docker inspect --format='{{json .Config}}' {{conteneur}}` `docker inspect --format='\{\{json .Config\}\}' {{conteneur}}`
- Afficher toutes les liaisons de port : - Afficher toutes les liaisons de port :
`docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> {{(index $conf 0).HostPort}} {{end}}' {{conteneur}}` `docker inspect --format='\{\{range $p, $conf := .NetworkSettings.Ports\}\} \{\{$p\}\} -> \{\{(index $conf 0).HostPort\}\} \{\{end\}\}' {{conteneur}}`

View File

@ -0,0 +1,16 @@
# docker load
> Charge des images Docker depuis des fichiers ou `stdin`.
> Plus d'informations : <https://docs.docker.com/engine/reference/commandline/load/>.
- Charge une image Docker depuis `stdin` :
`docker load < {{chemin/vers/fichier_image.tar}}`
- Charge une image Docker depuis un fichier spécifique :
`docker load --input {{chemin/vers/fichier_image.tar}}`
- Charge une image Docker depuis un fichier spécifique en mode silencieux :
`docker load --quiet --input {{chemin/vers/fichier_image.tar}}`

View File

@ -25,7 +25,7 @@
- एक विशिष्ट संग्रह प्रकार का उपयोग करके संग्रह करें: - एक विशिष्ट संग्रह प्रकार का उपयोग करके संग्रह करें:
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{संग्रह.7z/का/पथ}} {{फ़ाइल_या_निर्देशिका/का/पथ}}` `7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{संग्रह/का/पथ}} {{फ़ाइल_या_निर्देशिका/का/पथ}}`
- किसी संग्रह की सामग्री को सूचीबद्ध करें: - किसी संग्रह की सामग्री को सूचीबद्ध करें:

24
pages.id/common/!.md Normal file
View File

@ -0,0 +1,24 @@
# Tanda seru
> Digunakan pada Bash sebagai pengganti perintah yang sebelumnya dieksekusikan.
> Informasi lebih lanjut: <https://www.gnu.org/software/bash/manual/bash.html#Event-Designators>.
- Jalankan perintah sebelumnya menggunakan `sudo`:
`sudo !!`
- Ambil perintah sebelumnya menurut nomor urutan yang terdapat dalam `history`:
`!{{nomor_urut}}`
- Ambil perintah sebelumnya yang kesekian:
`!-{{nomor_urut}}`
- Ambil perintah sebelumnya menurut awalan nama perintah:
`!{{awalan_perintah}}`
- Gunakan argumen/opsi perintah yang sama dengan perintah sebelumnya:
`{{perintah}} !*`

View File

@ -3,30 +3,34 @@
> Pengarsip file dengan rasio kompresi yang tinggi. > Pengarsip file dengan rasio kompresi yang tinggi.
> Informasi lebih lanjut: <https://manned.org/7z>. > Informasi lebih lanjut: <https://manned.org/7z>.
- Meng[a]rsipkan sebuah file atau direktori: - T[a]mbahkan sebuah file atau direktori ke dalam arsip baru atau saat ini:
`7z a {{jalan/menuju/arsip.7z}} {{jalan/menuju/file_atau_direktori}}` `7z a {{jalan/menuju/arsip.7z}} {{jalan/menuju/file_atau_direktori}}`
- Mengenkripsi sebuah file arsip (termasuk nama-nama file yang terkandung di dalamnya): - Enkripsi file arsip saat ini (termasuk nama-nama file yang terkandung di dalamnya):
`7z a {{jalan/menuju/arsip_terenkripsi.7z}} -p{{kata sandi}} -mhe=on {{jalan/menuju/arsip.7z}}` `7z a {{jalan/menuju/arsip_terenkripsi.7z}} -p{{kata sandi}} -mhe=on {{jalan/menuju/arsip.7z}}`
- Mengekstrak sebuah file arsip dengan mempertahankan struktur direktori asli: - E[x]trak file arsip dengan mempertahankan struktur direktori asli:
`7z x {{jalan/menuju/arsip.7z}}` `7z x {{jalan/menuju/arsip.7z}}`
- Mengekstrak sebuah file arsip ke dalam direktori yang ditentukan: - E[x]trak file arsip ke dalam direktori yang ditentukan:
`7z x {{jalan/menuju/arsip.7z}} -o{{jalan/menuju/direktori}}` `7z x {{jalan/menuju/arsip.7z}} -o{{jalan/menuju/direktori}}`
- Mengekstrak sebuah file arsip menuju `stdout`: - E[x]trak file arsip menuju `stdout`:
`7z x {{jalan/menuju/arsip.7z}} -so` `7z x {{jalan/menuju/arsip.7z}} -so`
- Meng[a]rsipkan file atau direktori menggunakan format file arsip tertentu: - [a]rsipkan file atau direktori menggunakan format file arsip tertentu:
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{jalan/menuju/arsip.7z}} {{jalan/menuju/file_atau_direktori}}` `7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{jalan/menuju/arsip}} {{jalan/menuju/file_atau_direktori}}`
- Me[l]ihat daftar isi dari sebuah file arsip: - [l]ihat daftar isi dari sebuah file arsip:
`7z l {{jalan/menuju/arsip.7z}}` `7z l {{jalan/menuju/arsip.7z}}`
- Atur tingkat kompresi pada file arsip (tingkat lebih tinggi memproduksi file arsip lebih kecil dengan proses kompresi yang lebih lama):
`7z a {{jalan/menuju/arsip.7z}} -mx={{0|1|3|5|7|9}} {{jalan/menuju/file_atau_direktori}}`

View File

@ -4,30 +4,34 @@
> Serupa dengan `7z` namun mendukung lebih sedikit format file arsip dan dapat digunakan lintas sistem operasi. > Serupa dengan `7z` namun mendukung lebih sedikit format file arsip dan dapat digunakan lintas sistem operasi.
> Informasi lebih lanjut: <https://manned.org/7za>. > Informasi lebih lanjut: <https://manned.org/7za>.
- Meng[a]rsipkan sebuah file atau direktori: - T[a]mbahkan sebuah file atau direktori ke dalam arsip baru atau saat ini:
`7za a {{jalan/menuju/arsip.7z}} {{jalan/menuju/file_atau_direktori}}` `7za a {{jalan/menuju/arsip.7z}} {{jalan/menuju/file_atau_direktori}}`
- Mengenkripsi sebuah file arsip (termasuk nama-nama file yang terkandung di dalamnya): - Enkripsi file arsip saat ini (termasuk nama-nama file yang terkandung di dalamnya):
`7za a {{jalan/menuju/arsip_terenkripsi.7z}} -p{{kata sandi}} -mhe=on {{jalan/menuju/arsip.7z}}` `7za a {{jalan/menuju/arsip_terenkripsi.7z}} -p{{kata sandi}} -mhe={{on}} {{jalan/menuju/arsip.7z}}`
- Mengekstrak sebuah file arsip dengan mempertahankan struktur direktori asli: - E[x]trak file arsip dengan mempertahankan struktur direktori asli:
`7za x {{jalan/menuju/arsip.7z}}` `7za x {{jalan/menuju/arsip.7z}}`
- Mengekstrak sebuah file arsip ke dalam direktori yang ditentukan: - E[x]trak file arsip ke dalam direktori yang ditentukan:
`7za x {{jalan/menuju/arsip.7z}} -o{{jalan/menuju/direktori}}` `7za x {{jalan/menuju/arsip.7z}} -o{{jalan/menuju/direktori}}`
- Mengekstrak sebuah file arsip menuju `stdout`: - E[x]trak file arsip menuju `stdout`:
`7za x {{jalan/menuju/arsip.7z}} -so` `7za x {{jalan/menuju/arsip.7z}} -so`
- Meng[a]rsipkan file atau direktori menggunakan format file arsip tertentu: - [a]rsipkan file atau direktori menggunakan format file arsip tertentu:
`7za a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{jalan/menuju/arsip.7z}} {{jalan/menuju/file_atau_direktori}}` `7za a -t{{7z|bzip2|gzip|lzip|tar|...}} {{jalan/menuju/arsip.7z}} {{jalan/menuju/file_atau_direktori}}`
- Me[l]ihat daftar isi dari sebuah file arsip: - [l]ihat daftar isi dari sebuah file arsip:
`7za l {{jalan/menuju/arsip.7z}}` `7za l {{jalan/menuju/arsip.7z}}`
- Atur tingkat kompresi pada file arsip (tingkat lebih tinggi memproduksi file arsip lebih kecil dengan proses kompresi yang lebih lama):
`7za a {{jalan/menuju/arsip.7z}} -mx={{0|1|3|5|7|9}} {{jalan/menuju/file_atau_direktori}}`

View File

@ -4,26 +4,30 @@
> Serupa dengan `7z` namun mendukung format file arsip `.7z` saja. > Serupa dengan `7z` namun mendukung format file arsip `.7z` saja.
> Informasi lebih lanjut: <https://manned.org/7zr>. > Informasi lebih lanjut: <https://manned.org/7zr>.
- Meng[a]rsipkan sebuah file atau direktori: - T[a]mbahkan sebuah file atau direktori ke dalam arsip baru atau saat ini:
`7zr a {{jalan/menuju/arsip.7z}} {{jalan/menuju/file_atau_direktori}}` `7zr a {{jalan/menuju/arsip.7z}} {{jalan/menuju/file_atau_direktori}}`
- Mengenkripsi sebuah file arsip (termasuk nama-nama file yang terkandung di dalamnya): - Enkripsi file arsip saat ini (termasuk nama-nama file yang terkandung di dalamnya):
`7zr a {{jalan/menuju/arsip_terenkripsi.7z}} -p{{kata sandi}} -mhe={{on}} {{jalan/menuju/arsip.7z}}` `7zr a {{jalan/menuju/arsip_terenkripsi.7z}} -p{{kata sandi}} -mhe={{on}} {{jalan/menuju/arsip.7z}}`
- Mengekstrak sebuah file arsip dengan mempertahankan struktur direktori asli: - E[x]trak file arsip dengan mempertahankan struktur direktori asli:
`7zr x {{jalan/menuju/arsip.7z}}` `7zr x {{jalan/menuju/arsip.7z}}`
- Mengekstrak sebuah file arsip ke dalam direktori yang ditentukan: - E[x]trak file arsip ke dalam direktori yang ditentukan:
`7zr x {{jalan/menuju/arsip.7z}} -o{{jalan/menuju/direktori}}` `7zr x {{jalan/menuju/arsip.7z}} -o{{jalan/menuju/direktori}}`
- Mengekstrak sebuah file arsip menuju `stdout`: - E[x]trak file arsip menuju `stdout`:
`7zr x {{jalan/menuju/arsip.7z}} -so` `7zr x {{jalan/menuju/arsip.7z}} -so`
- Me[l]ihat daftar isi dari sebuah file arsip: - [l]ihat daftar isi dari sebuah file arsip:
`7zr l {{jalan/menuju/arsip.7z}}` `7zr l {{jalan/menuju/arsip.7z}}`
- Atur tingkat kompresi pada file arsip (tingkat lebih tinggi memproduksi file arsip lebih kecil dengan proses kompresi yang lebih lama):
`7zr a {{jalan/menuju/arsip.7z}} -mx={{0|1|3|5|7|9}} {{jalan/menuju/file_atau_direktori}}`

View File

@ -6,7 +6,7 @@
- Ujikan apakah sebuah variabel memiliki nilai yang sama/tidak sama dengan sebuah string: - Ujikan apakah sebuah variabel memiliki nilai yang sama/tidak sama dengan sebuah string:
`[ "${{variabel}}" {{==|!=}} "{{string}}" ]` `[ "${{variabel}}" {{=|!=}} "{{string}}" ]`
- Ujikan apakah sebuah variabel memiliki nilai yang sama/tidak sama/lebih besar/lebih kecil/lebih besar atau sama dengan/lebih kecil atau sama dengan sebuah angka: - Ujikan apakah sebuah variabel memiliki nilai yang sama/tidak sama/lebih besar/lebih kecil/lebih besar atau sama dengan/lebih kecil atau sama dengan sebuah angka:

32
pages.id/common/a2ping.md Normal file
View File

@ -0,0 +1,32 @@
# a2ping
> Ubah file gambar menjadi EPS atau PDF.
> Informasi lebih lanjut: <https://manned.org/a2ping>.
- Ubah sebuah gambar menjadi PDF (Catatan: Nama file output bersifat opsional):
`a2ping {{jalan/menuju/gambar.ext}} {{jalan/menuju/output.pdf}}`
- Kompres dokumen EPS atau PDF menggunakan metode tertentu:
`a2ping --nocompress {{none|zip|best|flate}} {{jalan/menuju/file}}`
- Pindai HiResBoundingBox jika ditemukan (akan dipindai secara default):
`a2ping --nohires {{jalan/menuju/file}}`
- Izinkan konten halaman berada melewati batas bawah dan kiri (tidak diizinkan secara default):
`a2ping --below {{jalan/menuju/file}}`
- Berikan opsi/argumen tambahan untuk `gs`:
`a2ping --gsextra {{argumen_tambahan_gs}} {{jalan/menuju/file}}`
- Berikan opsi/argumen tambahan untuk program lainnya (seperti `pdftops`):
`a2ping --extra {{arguments}} {{jalan/menuju/file}}`
- Tampilkan informasi bantuan:
`a2ping -h`

24
pages.id/common/ab.md Normal file
View File

@ -0,0 +1,24 @@
# ab
> Alat penguji server HTTP Apache.
> Informasi lebih lanjut: <https://httpd.apache.org/docs/current/programs/ab.html>.
- Jalankan 100 permintaan HTTP GET menuju alamat URL yang ditentukan:
`ab -n {{100}} {{url}}`
- Jalankan 100 permintaan HTTP GET, dikelompokkan dalam masing-masing batch berisi 10, menuju alamat URL yang ditentukan:
`ab -n {{100}} -c {{10}} {{url}}`
- Jalankan 100 perintaan HTTP POST menuju alamat URL, menggunakan data JSON yang dimuat dari file yang ditentukan:
`ab -n {{100}} -T {{application/json}} -p {{jalan/menuju/file.json}} {{url}}`
- Gunakan opsi HTTP [k]eep-Alive, yakni jalankan permintaan majemuk dalam satu sesi HTTP yang sama:
`ab -k {{url}}`
- Alokasikan wak[t]u maksimum (dalam hitungan detik) untuk mengujinya:
`ab -t {{60}} {{url}}`

24
pages.id/common/abduco.md Normal file
View File

@ -0,0 +1,24 @@
# abduco
> Manajer sesi Terminal.
> Informasi lebih lanjut: <http://www.brain-dump.org/projects/abduco/>.
- Tampilkan sesi-sesi yang sedang aktif:
`abduco`
- Buk[A] sesi saat ini, atau buka baru jika tidak ditemukan, dengan nama yang ditentukan:
`abduco -A {{nama}} {{bash}}`
- Buk[A] sesi baru atau saat ini menggunakan `dvtm`:
`abduco -A {{nama}}`
- Keluar dari sesi:
`Ctrl + \`
- Buk[A] sesi saat ini dalam mode non-interaktif alias [r]ead-only:
`abduco -Ar {{name}}`

20
pages.id/common/ac.md Normal file
View File

@ -0,0 +1,20 @@
# ac
> Tampilkan statistik mengenai lama waktu pengguna sistem operasi yang terhubung.
> Informasi lebih lanjut: <https://man.openbsd.org/ac>.
- Tampilkan berapa lama pengguna saat ini telah terhubung dengan sistem operasi, dalam hitungan jam:
`ac`
- Tampilkan informasi yang sama untuk setiap pengguna:
`ac -p`
- Tampilkan informasi yang sama untuk pengguna yang ditentukan:
`ac -p {{nama_pengguna}}`
- Tampilkan informasi yang sama untuk pengguna yang ditentukan, dan dengan rincian per hari:
`ac -dp {{nama_pengguna}}`

View File

@ -0,0 +1,28 @@
# Accelerate
> Sebuah pustaka/library yang memungkinkan kode PyTorch yang sama dapat dijalankan secara menyebar.
> Informasi lebih lanjut: <https://huggingface.co/docs/accelerate/index>.
- Tampilkan informasi lingkungan proyek PyTorch saat ini:
`accelerate env`
- Buat file konfigurasi secara interaktif:
`accelerate config`
- Tampilkan prakiraan kapasitas memori GPU yang dibutuhkan untuk menjalankan model Hugging Face dengan tipe data yang berbeda:
`accelerate estimate-memory {{nama/model}}`
- Uji validitas sebuah file konfigurasi Accelerate:
`accelerate test --config_file {{jalan/menuju/config.yaml}}`
- Jalankan sebuah model PyTorch dengan Accelerate, menggunakan CPU saja:
`accelerate launch {{jalan/menuju/script.py}} {{--cpu}}`
- Jalankan model dengan Accelerate, menggunakan GPU dari 2 perangkat yang berbeda:
`accelerate launch {{jalan/menuju/script.py}} --multi_gpu --num_machines {{2}}`

37
pages.id/common/ack.md Normal file
View File

@ -0,0 +1,37 @@
# ack
> Sebuah alat pencari teks seperti `grep` yang dikhususkan bagi para pengembang perangkat lunak.
> Lihat juga: `rg`, yang dapat mencari dengan lebih cepat.
> Informasi lebih lanjut: <https://beyondgrep.com/documentation>.
- Cari file dalam direktori saat ini yang mengandung string atau kriteria dalam ekspresi reguler:
`ack "{{pola_pencarian}}"`
- Cari tanpa mementingkan perbedaan huruf besar-kecil dalam kriteria (case-insensitive):
`ack --ignore-case "{{pola_pencarian}}"`
- Cari untuk baris-baris dalam file yang memenuhi kriteria, namun hanya cetak teks yang memenuhinya saja (jangan cetak kata-kata lainnya meskipun dalam baris yang sama):
`ack -o "{{pola_pencarian}}"`
- Hanya cari file dengan tipe tertentu (seperti `ruby` untuk mencari file `.rb`,`.erb`, `.rake`, `Rakefile` dan sebagainya):
`ack --type={{ruby}} "{{pola_pencarian}}"`
- Jangan cari file dengan tipe tertentu:
`ack --type=no{{ruby}} "{{pola_pencarian}}"`
- Hitung total teks/string yang ditemukan:
`ack --count --no-filename "{{pola_pencarian}}"`
- Hanya cetak nama file dan total penemuan dalam file tersebut saja:
`ack --count --files-with-matches "{{pola_pencarian}}"`
- Tampilkan daftar kombinasi nilai yang dapat dipakai dalam atribut `--type`:
`ack --help-types`

View File

@ -0,0 +1,24 @@
# acme.sh --dns
> Gunakan verifikasi DNS-01 untuk menerbitkan sertifikat HTTPS.
> Informasi lebih lanjut: <https://github.com/acmesh-official/acme.sh/wiki>.
- Terbitkan sertifikat menggunakan metode verifikasi DNS via API (daftar jenis `api_dns` yang didukung tersedia dalam <https://github.com/acmesh-official/acme.sh/wiki/How-to-use-lexicon-DNS-API>):
`acme.sh --issue --dns {{api_dns}} --domain {{example.com}}`
- Terbitkan sertifikat wildcard (ditandai dengan tanda bintang) menggunakan verifikasi DNS via API:
`acme.sh --issue --dns {{api_dns}} --domain {{example.com}} --domain {{*.example.com}}`
- Terbitkan sertifikat menggunakan verifikasi DNS alias:
`acme.sh --issue --dns {{api_dns}} --domain {{example.com}} --challenge-alias {{alias-untuk-verifikasi-example.com}}`
- Terbitkan sertifikat dengan masa tunggu pemutakhiran DNS yang ditentukan (dalam detik), sehingga `acme.sh` tidak melakukan proses validasi DNS otomatis melalui server DNS Cloudflare/Google:
`acme.sh --issue --dns {{api_dns}} --domain {{example.com}} --dnssleep {{300}}`
- Terbitkan sertifikat menggunakan verifikasi DNS manual:
`acme.sh --issue --dns --domain {{example.com}} --yes-I-know-dns-manual-mode-enough-go-ahead-please`

View File

@ -0,0 +1,33 @@
# acme.sh
> Sebuah shell script yang mengimplementasikan ACME client protocol (pembuat sertifikat HTTPS), alternatif dari `certbot`.
> Lihat juga: `acme.sh dns`.
> Informasi lebih lanjut: <https://github.com/acmesh-official/acme.sh>.
- Terbitkan sertifikat baru dan pasang pada webroot secara langsung:
`acme.sh --issue --domain {{example.com}} --webroot {{/jalan/menuju/webroot}}`
- Terbitkan sertifikat untuk domain majemuk, menggunakan mode verifikasi mandiri (standalone) pada port 80:
`acme.sh --issue --standalone --domain {{example.com}} --domain {{www.example.com}}`
- Terbitkan sertifikat menggunakan mode verifikasi mandiri berbasis TLS pada port 443:
`acme.sh --issue --alpn --domain {{example.com}}`
- Terbitkan sertifikat dengan konfigurasi server Nginx untuk memasangnya:
`acme.sh --issue --nginx --domain {{example.com}}`
- Terbitkan sertifikat dengan konfigurasi server Apache untuk memasangnya:
`acme.sh --issue --apache --domain {{example.com}}`
- Terbitkan sertifikat wildcard (\*) menggunakan verifikasi DNS via API (daftar jenis `api_dns` yang didukung tersedia dalam <https://github.com/acmesh-official/acme.sh/wiki/How-to-use-lexicon-DNS-API>):
`acme.sh --issue --dns {{api_dns}} --domain {{*.example.com}}`
- Pasang sertifikat ke dalam direktori tertentu (dapat berguna untuk proses pemutakhiran otomatis):
`acme.sh --install-cert -d {{example.com}} --key-file {{/jalan/menuju/example.com.key}} --fullchain-file {{/jalan/menuju/example.com.cer}} --reloadcmd {{"systemctl force-reload nginx"}}`

32
pages.id/common/act.md Normal file
View File

@ -0,0 +1,32 @@
# act
> Jalankan GitHub Actions secara lokal melalui Docker.
> Informasi lebih lanjut: <https://github.com/nektos/act>.
- Tampilkan daftar actions (tugas dalam GitHub Actions) yang tersedia:
`act -l`
- Jalankan tugas dengan event default:
`act`
- Jalankan event pemicu tugas tertentu:
`act {{jenis_event}}`
- Jalankan tugas/[a]ction tertentu:
`act -a {{action_id}}`
- Tampilkan tugas-tugas yang akan dijalankan ta[n]pa mengeksekusikannya (dry-run):
`act -n`
- Tampilkan log tingkat [v]erbose:
`act -v`
- Jalankan [W]orkflow tertentu:
`act push -W {{jalam/menuju/workflow}}`

View File

@ -0,0 +1,17 @@
# acyclic
> Jadikan gambaran grafik berarah (dalam Graphviz) menjadi asiklik dengan memutarbalikkan beberapa garis tepi.
> Daftar filter Graphviz: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`.
> Informasi lebih lanjut: <https://graphviz.org/pdf/acyclic.1.pdf>.
- Ubah grafik berarah menjadi asiklik dengan membalikkan beberapa garis tepi:
`acyclic {{path/to/input.gv}} > {{path/to/output.gv}}`
- Cari tahu apakah grafik tersebut bersifat asiklik, memiliki siklus, atau tidak berarah, sehingga tidak menghasilkan output:
`acyclic -v -n {{path/to/input.gv}}`
- Tampilkan informasi bantuan untuk `acyclic`:
`acyclic -?`

View File

@ -0,0 +1,32 @@
# AdGuardHome
> Perangkat lunak untuk memblokir iklan dan upaya pelacakan dalam jaringan internet.
> Informasi lebih lanjut: <https://github.com/AdguardTeam/AdGuardHome>.
- Jalankan AdGuard Home:
`AdGuardHome`
- Jalankan AdGuard Home dengan konfigurasi tertentu:
`AdGuardHome --config {{jalan/menuju/AdGuardHome.yaml}}`
- Tentukan direktori penyimpanan data untuk AdGuard Home:
`AdGuardHome --work-dir {{jalan/menuju/direktori}}`
- Pasang atau bongkar AdGuard Home sebagai layanan/daemon sistem operasi:
`AdGuardHome --service {{install|uninstall}}`
- Jalankan AdGuard Home sebagai layanan/daemon:
`AdGuardHome --service start`
- Muat ulang konfigurasi layanan AdGuard Home:
`AdGuardHome --service reload`
- Matikan atau nyalakan ulang layanan AdGuard Home:
`AdGuardHome --service {{stop|restart}}`

View File

@ -0,0 +1,20 @@
# adscript
> Penyusun (compiler) untuk file Adscript.
> Informasi lebih lanjut: <https://github.com/Amplus2/Adscript>.
- Susun suatu file menjadi file objek:
`adscript --output {{jalan/menuju/file.o}} {{jalan/menuju/file_input.adscript}}`
- Susun dan gabungkan file menjadi sebuah file program mandiri:
`adscript --executable --output {{jalan/menuju/file}} {{jalan/menuju/file_input.adscript}}`
- Susun sebuah file menggunakan kode LLVM IR daripada kode mesin yang sesungguhnya:
`adscript --llvm-ir --output {{jalan/menuju/file.ll}} {{jalan/menuju/file_input.adscript}}`
- Susun menjadi file objek untuk arsitektur CPU atau sistem operasi yang berbeda dengan mesin saat ini (cross-compile):
`adscript --target-triple {{i386-linux-elf}} --output {{jalan/menuju/file.o}} {{jalan/menuju/file_input.adscript}}`

View File

@ -0,0 +1,12 @@
# afconvert
> Ubah format file antara AFF dan file baku/raw.
> Informasi lebih lanjut: <https://manned.org/afconvert.1>.
- Pakai nama ekstensi output (default: `aff`):
`afconvert -a {{ekstensi}} {{jalan/menuju/file_input}} {{jalan/menuju/file_output1 jalan/menuju/file_output2 ...}}`
- Gunakan tingkat kompresi file (default: `7`):
`afconvert -X{{0..7}} {{jalan/menuju/file_input}} {{jalan/menuju/file_output1 jalan/menuju/file_output2 ...}}`

32
pages.id/common/ag.md Normal file
View File

@ -0,0 +1,32 @@
# ag
> The Silver Searcher. Seperti `ack`, namun bertujuan untuk lebih cepat daripadanya.
> Informasi lebih lanjut: <https://github.com/ggreer/the_silver_searcher>.
- Cari file yang mengandung teks "foo", dan cetak baris teks yang cocok:
`ag {{foo}}`
- Cari file yang mengandung teks "foo" dalam direktori tertentu:
`ag {{foo}} {{jalan/menuju/direktori}}`
- Cari file yang mengandung teks "foo", namun hanya tampilkan daftar nama file saja:
`ag -l {{foo}}`
- Cari file yang mengandung teks "FOO" tanpa memerhatikan perbedaan huruf besar-kecil (case-[i]nsensitive), dan hanya cetak teks yang cocok (jangan cetak kata-kata lainnya meskipun dalam baris yang sama):
`ag -i -o {{FOO}}`
- Cari file yang memiliki nama "bar" dan mengandung teks "foo":
`ag {{foo}} -G {{bar}}`
- Cari file yang memiliki teks yang memenuhi kriteria ekspresi reguler:
`ag '{{^ba(r|z)$}}'`
- Cari file dengan nama yang memiliki teks "foo":
`ag -g {{foo}}`

16
pages.id/common/agate.md Normal file
View File

@ -0,0 +1,16 @@
# agate
> Sebuah server sederhana untuk protokol jaringan Gemini.
> Informasi lebih lanjut: <https://github.com/mbrubeck/agate>.
- Terbitkan kunci privat dan sertifikat TLS:
`agate --content {{jalan/menuju/direktori_konten}} --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}`
- Jalankan server Gemini:
`agate {{jalan/menuju/direktori_konten}}`
- Tampilkan informasi bantuan:
`agate -h`

View File

@ -0,0 +1,13 @@
# age-keygen
> Buat pasangan kunci untuk `age`.
> Lihat `age` untuk mengetahui cara membuat/membuka file terenkripsi.
> Informasi lebih lanjut: <https://manned.org/age-keygen>.
- Buat pasangan kunci, simpan ke dalam file tanpa enkripsi, dan cetak kunci publik menuju `stdout`:
`age-keygen --output {{jalan/menuju/file}}`
- Ubah sebuah kunci identitas menjadi penerima dan cetak kunci publik menuju `stdout`:
`age-keygen -y {{jalan/menuju/file}}`

25
pages.id/common/age.md Normal file
View File

@ -0,0 +1,25 @@
# age
> Alat pengenkripsi file yang sederhana, modern, dan aman.
> Lihat `age-keygen` untuk mengetahui cara membuat pasangan kunci.
> Informasi lebih lanjut: <https://github.com/FiloSottile/age>.
- Buat sebuah file terenkripsi yang hanya dapat didekripsi menggunakan kata sandi:
`age --passphrase --output {{jalan/menuju/file_terenkripsi}} {{jalan/menuju/file_tidak_terenkripsi}}`
- Buat file terenkripsi dengan kunci publik (public key) secara literal (ulangi argumen `--recipient` untuk memberikan kunci publik tambahan):
`age --recipient {{kunci_publik}} --output {{jalan/menuju/file_terenkripsi}} {{jalan/menuju/file_tidak_terenkripsi}}`
- Buat file terenkripsi bagi para penerima menurut kunci-kunci publik mereka yang disimpan di dalam suatu file (satu kunci per baris):
`age --recipients-file {{path/to/file_daftar_penerima}} --output {{jalan/menuju/file_terenkripsi}} {{jalan/menuju/file_tidak_terenkripsi}}`
- Buka file terenkripsi dengan kata sandi:
`age --decrypt --output {{path/to/file_bebas_enkripsi}} {{jalan/menuju/file_terenkripsi}}`
- Buka file terenkripsi dengan kunci privat:
`age --decrypt --identity {{path/to/file_kunci_privat}} --output {{path/to/file_bebas_enkripsi}} {{jalan/menuju/file_terenkripsi}}`

View File

@ -0,0 +1,17 @@
# aircrack-ng
> Retas dan dapatkan kunci WEP dan WPA/WPA2 dari proses handshake dalam paket jaringan yang ditangkap.
> Bagian dari paket perangkat lunak jaringan Aircrack-ng.
> Informasi lebih lanjut: <https://www.aircrack-ng.org/doku.php?id=aircrack-ng>.
- Retas dan dapatkan kunci dari file tangkapan jaringan dan file daftar kata sandi ([w]ordlist):
`aircrack-ng -w {{jalan/menuju/wordlist.txt}} {{jalan/menuju/tangkapan_jaringan.cap}}`
- Retas dan dapatkan kunci dari file tangkapan jaringan, [w]ordlist, dan [e]ssid milik perangkat titik akses Wi-Fi:
`aircrack-ng -w {{jalan/menuju/wordlist.txt}} -e {{essid}} {{jalan/menuju/tangkapan_jaringan.cap}}`
- Retas dan dapatkan kunci dari file tangkapan jaringan, [w]ordlist, dan alamat MAC milik perangkat titik akses Wi-Fi:
`aircrack-ng -w {{jalan/menuju/wordlist.txt}} --bssid {{mac}} {{jalan/menuju/tangkapan_jaringan.cap}}`

View File

@ -0,0 +1,25 @@
# airdecap-ng
> Dekripsi file tangkapan jaringan terenkripsi dengan kunci sandi WEP, WPA, atau WPA2.
> Bagian dari paket perangkat lunak jaringan Aircrack-ng.
> Informasi lebih lanjut: <https://www.aircrack-ng.org/doku.php?id=airdecap-ng>.
- Buang informasi header jaringan wireless/nirkabel dari file tangkapan jaringan (bebas enkripsi WEP/WPA/WPA2), dan gunakan alamat MAC titik akses Wi-Fi untuk menyaringnya:
`airdecap-ng -b {{alamat_mac}} {{jalan/menuju/tangkapan_jaringan.cap}}`
- Buka enkripsi WEP dari file tangkapan jaringan menggunakan kunci WEP dalam format heksadesimal:
`airdecap-ng -w {{kunci_heksadesimal}} {{jalan/menuju/tangkapan_jaringan.cap}}`
- Buka enkripsi WPA/WPA2 dari file tangkapan jaringan menggunakan [e]ssid titik akses Wi-Fi dan kata sandi ([p]assword):
`airdecap-ng -e {{essid}} -p {{kata_sandi}} {{jalan/menuju/tangkapan_jaringan.cap}}`
- Buka enkripsi WPA/WPA2 dari file tangkapan jaringan menggunakan [e]ssid dan kata sandi ([p]assword), tanpa menghilangkan informasi header jaringan:
`airdecap-ng -l -e {{essid}} -p {{kata_sandi}} {{jalan/menuju/tangkapan_jaringan.cap}}`
- Buka enkripsi WPA/WPA2 dari file tangkapan jaringan menggunakan [e]ssid dan kata sandi ([p]assword), dan saring menurut alamat MAC titik akses Wi-Fi:
`airdecap-ng -b {{alamat_mac}} -e {{essid}} -p {{kata_sandi}} {{jalan/menuju/tangkapan_jaringan.cap}}`

View File

@ -0,0 +1,9 @@
# aireplay-ng
> Masukkan paket jaringan kepada jaringan nirkabel/wireless.
> Bagian dari paket perangkat lunak jaringan Aircrack-ng.
> Informasi lebih lanjut: <https://www.aircrack-ng.org/doku.php?id=aireplay-ng>.
- Kirim sejumlah paket terpisah berdasarkan alamat MAC titik akses, alamat MAC klien, dan antarmuka jaringan (interface):
`sudo aireplay-ng --deauth {{jumlah_paket}} --bssid {{alamat_mac_titik_akses}} --dmac {{alamat_mac_klien}} {{interface}}`

View File

@ -0,0 +1,21 @@
# airmon-ng
> Nyalakan mode pengawasan pada perangkat jaringan nirkabel/wireless
> Bagian dari paket perangkat lunak jaringan Aircrack-ng.
> Informasi lebih lanjut: <https://www.aircrack-ng.org/doku.php?id=airmon-ng>.
- Tampilkan daftar perangkat nirkabel beserta statusnya:
`sudo airmon-ng`
- Mulai awasi jaringan untuk perangkat tertentu:
`sudo airmon-ng start {{wlan0}}`
- Hentikan proses-proses mengganggu yang memanfaatkan perangkat nirkabel:
`sudo airmon-ng check kill`
- Matikan mode pengawasan untuk interface jaringan tertentu:
`sudo airmon-ng stop {{wlan0mon}}`

View File

@ -0,0 +1,13 @@
# airodump-ng
> Tangkap para paket dan tampilkan informasi mengenai jaringan nirkabel/wireless.
> Bagian dari paket perangkat lunak jaringan Aircrack-ng.
> Informasi lebih lanjut: <https://www.aircrack-ng.org/doku.php?id=airodump-ng>.
- Tangkap para paket dan tampilkan informasi jaringan nirkabel tertentu:
`sudo airodump-ng {{interface}}`
- Tangkap para paket dan tampilkan informasi jaringan nirkabel berdasarkan alamat MAC dan kanal jaringan, kemudian simpan hasil ke dalam suatu file:
`sudo airodump-ng --channel {{channel}} --write {{jalan/menuju/file}} --bssid {{alamat_mac}} {{interface}}`

View File

@ -0,0 +1,24 @@
# airpaste
> Bagikan pesan dan file dalam jaringan yang sama menggunakan mDNS.
> Informasi lebih lanjut: <https://github.com/mafintosh/airpaste>.
- Tunggu untuk pesan baru dan tampilkan pesan jika diterimanya:
`airpaste`
- Kirim teks menuju jaringan:
`echo {{teks}} | airpaste`
- Kirim sebuah file:
`airpaste < {{jalan/menuju/file}}`
- Terima pesan dalam bentuk file:
`airpaste > {{jalan/menuju/file}}`
- Buat atau masuk kepada suatu kanal penerimaan pesan:
`airpaste {{nama_kanal}}`

View File

@ -0,0 +1,28 @@
# airshare
> Pindahkan data antara dua perangkat dalam jaringan lokal yang sama.
> Informasi lebih lanjut: <https://airshare.rtfd.io/en/latest/cli.html>.
- Kirim kumpulan file atau direktori:
`airshare {{kode_berbagi}} {{jalan/menuju/file_atau_direktori1 jalan/menuju/file_atau_direktori2 ...}}`
- Terima file:
`airshare {{kode_berbagi}}`
- Nyalakan `airshare` sebagai server penerima (sehingga memungkingkan Anda untuk mengunggah melalui situs web internal):
`airshare --upload {{kode_berbagi}}`
- Unggah kumpulan file atau direktori menuju server penerima:
`airshare --upload {{kode_berbagi}} {{jalan/menuju/file_atau_direktori1 jalan/menuju/file_atau_direktori2 ...}}`
- Kirim file dengan alamat-alamat yang disalin pada papan klip (clipboard):
`airshare --file-path {{kode_berbagi}}`
- Terima dan salin file menuju papan klip:
`airshare --clip-receive {{kode_berbagi}}`

20
pages.id/common/ajson.md Normal file
View File

@ -0,0 +1,20 @@
# ajson
> Jalankan ekspresi pencarian JSONPath terhadap objek-objek JSON.
> Informasi lebih lanjut: <https://github.com/spyzhov/ajson>.
- Baca file JSON dan jalankan ekpresi JSONPath untuk mencari data di dalamnya:
`ajson '{{$..json[?(@.path)]}}' {{jalan/menuju/file.json}}`
- Baca JSON dari `stdin` dan jalankan ekpresi JSONPath untuk mencari data di dalamnya:
`cat {{jalan/menuju/file.json}} | ajson '{{$..json[?(@.path)]}}'`
- Baca JSON dari sebuah URL dan jalankan ekpresi JSONPath untuk mencari data di dalamnya:
`ajson '{{avg($..price)}}' '{{https://example.com/api/}}'`
- Baca file JSON sederhana dan hitung nilai dari ekspresi JSONPath:
`echo '{{3}}' | ajson '{{2 * pi * $}}'`

21
pages.id/common/alex.md Normal file
View File

@ -0,0 +1,21 @@
# alex
> Alat untuk menangkal karya tulis bahasa Inggris yang ditulis secara tidak sensitif dan berpengertian.
> Alat ini dapat menemukan kata dan frasa bahasa Inggris yang berkaitan kuat dengan gender, polarisasi, ras, agama, dan frasa-frasa sensitif lainnya.
> Informasi lebih lanjut: <https://github.com/get-alex/alex>.
- Analisa teks dari `stdin`:
`echo {{His network looks good}} | alex --stdin`
- Analisa teks dari seluruh file dalam direktori saat ini:
`alex`
- Analisa teks dari suatu file:
`alex {{jalan/menuju/file.md}}`
- Analisa seluruh file Markdown (`.md`) kecuali `contoh.md`:
`alex *.md !{{contoh.md}}`

View File

@ -1,24 +1,28 @@
# gcc # gcc
> Praproses dan kompilasi kode sumber C dan C++, lalu rakit dan gabungkan bersama-sama. > Praproses dan susun kode sumber C dan C++, lalu rakit dan gabungkan bersama-sama.
> Informasi lebih lanjut: <https://gcc.gnu.org>. > Informasi lebih lanjut: <https://gcc.gnu.org>.
- Mengubah beberapa sumber kode menjadi program: - Ubah beberapa sumber kode menjadi program:
`gcc {{sumber1.c}} {{sumber2.c}} --output {{program}}` `gcc {{jalan/menuju/sumber1.c jalan/menuju/sumber2.c ...}} -o {{jalan/menuju/program}}`
- Mengizinkan peringatan dan simbol debug di output: - Izinkan peringatan dan simbol debug dalam [o]utput:
`gcc {{sumber.c}} -Wall -Og --output {{program}}` `gcc {{jalan/menuju/sumber.c}} -Wall -g -Og -o {{jalan/menuju/program}}`
- Menyertakan pustaka dari direktori yang berbeda: - Sertakan pustaka (library) dari direktori yang berbeda:
`gcc {{sumber.c}} --output {{program}} -I{{jalur_header}} -L{{jalur_pustaka}} -l{{nama_pustaka}}` `gcc {{sumber.c}} -o {{jalan/menuju/program}} -I{{jalan/menuju/header}} -L{{jalan/menuju/pustaka}} -l{{nama_pustaka}}`
- Mengkompilasi kode sumber ke dalam bahasa tingkat rendah (assembly): - Susun kode sumber ke dalam bahasa tingkat rendah (assembly):
`gcc -S {{sumber.c}}` `gcc -S {{jalan/menuju/sumber.c}}`
- Mengkompilasi kode sumber tanpa digabungkan: - Susun kode sumber tanpa digabungkan:
`gcc -c {{sumber.c}}` `gcc -c {{jalan/menuju/sumber.c}}`
- [O]ptimalkan progam yang disusun agar dapat dijalankan lebih cepat:
`gcc {{path/to/source.c}} -O{{1|2|3|fast}} -o {{path/to/output_executable}}`

View File

@ -5,11 +5,19 @@
- Komit file bertahap ke repositori dengan sebuah pesan: - Komit file bertahap ke repositori dengan sebuah pesan:
`git commit -m "{{pesan}}"` `git commit --message "{{pesan}}"`
- Otomatis merubah semua file yang dimodifikasi menjadi ke status stage dan menambahkan sebuah pesan: - Komit file bertahap dengan pesan yang disimpan dalam suatu file:
`git commit -a -m "{{pesan}}"` `git commit --file {{jalan/menuju/file_pesan_komit}}`
- Ubah secara otomatis semua file yang dimodifikasi menjadi ke status stage dan menambahkan sebuah pesan:
`git commit --all --message "{{pesan}}"`
- Komit file bertahap kemudian tandatangani komit tersebut menggunakan kunci GPG (atau kunci yang didefinisikan dalam file konfigurasi jika tidak didefinisikan):
`git commit --gpg-sign {{id_kunci_gpg}} --message "{{pesan}}"`
- Ganti komit terakhir dengan perubahan yang ada di status stage saat ini: - Ganti komit terakhir dengan perubahan yang ada di status stage saat ini:
@ -17,4 +25,8 @@
- Komit file tertentu (yang sudah di status stage): - Komit file tertentu (yang sudah di status stage):
`git commit {{alamat/ke/file/saya1}} {{alamat/ke/file/saya2}}` `git commit {{alamat/ke/file1}} {{alamat/ke/file2}}`
- Buat komit kosong, tanpa file bertahap:
`git commit --message "{{pesan}}" --allow-empty`

View File

@ -3,22 +3,22 @@
> Sejarah command-line. > Sejarah command-line.
> Informasi lebih lanjut: <https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html>. > Informasi lebih lanjut: <https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html>.
- Menampilkan sejarah perintah-perintah dengan angka baris: - Tampilkan sejarah perintah-perintah dengan angka baris:
`history` `history`
- Menampilkan 20 perintah-perintah terakhir (di `zsh` perintah ini menampilkan semua perintah-perintah sejak dari baris ke-20): - Tampilkan 20 perintah-perintah terakhir (di `zsh` perintah ini menampilkan semua perintah-perintah sejak dari baris ke-20):
`history {{20}}` `history {{20}}`
- Menghapus sejarah perintah-perintah (hanya untuk sesi shell `bash` saat ini): - Hapus sejarah perintah-perintah (hanya untuk sesi shell `bash` saat ini):
`history -c` `history -c`
- Menulis ulang file sejarah dengan sejarah sesi shell `bash` saat ini (seringkali dikombinasikan dengan `history -c` untuk menghapus sejarah): - Tulis ulang file sejarah dengan sejarah sesi shell `bash` saat ini (seringkali dikombinasikan dengan `history -c` untuk menghapus sejarah):
`history -w` `history -w`
- Menghapus entri sejarah pada offset tertentu: - Hapus entri sejarah pada offset tertentu:
`history -d {{offset}}` `history -d {{offset}}`

View File

@ -1,6 +1,6 @@
# laravel-zero # laravel-zero
> Pemasang Laravel Zero framework berbasis command-line. > Pasang framework Laravel Zero dari command-line.
> Informasi lebih lanjut: <https://laravel-zero.com>. > Informasi lebih lanjut: <https://laravel-zero.com>.
- Buat aplikasi Laravel Zero baru: - Buat aplikasi Laravel Zero baru:
@ -11,6 +11,6 @@
`laravel-zero self-update` `laravel-zero self-update`
- Lis perintah yang tersedia: - Lihat daftar perintah yang tersedia:
`laravel-zero list` `laravel-zero list`

View File

@ -1,6 +1,6 @@
# laravel # laravel
> Pemasang Laravel framework berbasis command-line. > Pasang framework Laravel framework dari command-line.
> Informasi lebih lanjut: <https://laravel.com>. > Informasi lebih lanjut: <https://laravel.com>.
- Buat aplikasi Laravel baru: - Buat aplikasi Laravel baru:
@ -27,6 +27,6 @@
`laravel new {{nama}} --jet --teams` `laravel new {{nama}} --jet --teams`
- Lis perintah yang tersedia: - Tampilkan daftar perintah yang tersedia:
`laravel list` `laravel list`

View File

@ -0,0 +1,13 @@
# powershell
> Perintah ini dapat disalahartikan mengarah kepada versi PowerShell yang dapat dijalankan lintas sistem operasi (sebelumnya PowerShell Core), yang menggunakan perintah `pwsh` daripada `powershell`.
> Perintah `powershell` yang sesungguhnya masih tersedia untuk memakai PowerShell versi 5.1 dan sebelumnya (dikenal sebagai "Windows PowerShell").
> Informasi lebih lanjut: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_pwsh>.
- Lihat dokumentasi untuk perintah yang menyalakan PowerShell versi lintas sistem operasi (versi 6 ke atas):
`tldr pwsh`
- Lihat dokumentasi untuk perintah yang menyalakan PowerShell versi bawaan Windows (versi 5.1 ke bawah):
`tldr powershell -p windows`

37
pages.id/common/pwsh.md Normal file
View File

@ -0,0 +1,37 @@
# pwsh
> Sebuah syel/shell dan bahasa pemrograman berbasis naskah/script yang dirancang untuk administrasi sistem komputer.
> Perintah ini merujuk kepada PowerShell versi 6 ke atas (juga dikenal sebagai PowerShell Core dan PowerShell lintas sistem operasi). Gunakan perintah `powershell` daripada `pwsh` untuk menggunakan PowerShell versi bawaan Windows (5.1 ke bawah).
> Informasi lebih lanjut: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_pwsh>.
- Jalankan sesi PowerShell interaktif baru:
`pwsh`
- Jalankan sesi interaktif tanpa memuat profil konfigurasi startup:
`pwsh -NoProfile`
- Jalankan perintah secara spesifik:
`pwsh -Command "{{echo 'powershell telah dieksekusi'}}"`
- Jalankan suatu naskah perintah/script PowerShell:
`pwsh -File {{jalan/menuju/naskah.ps1}}`
- Jalankan suatu sesi dengan versi PowerShell tertentu:
`pwsh -Version {{versi}}`
- Cegah sesi PowerShell dari keluar secara otomatis setelah menjalankan perintah startup:
`pwsh -NoExit`
- Tentukan format data yang akan dimasukkan ke dalam PowerShell:
`pwsh -InputFormat {{Text|XML}}`
- Tentukan format data yang ingin dikeluarkan dari perintah-perintah PowerShell:
`pwsh -OutputFormat {{Text|XML}}`

View File

@ -3,27 +3,27 @@
> Beragam subperintah yang berkaitan dengan database untuk Rauby on Rails. > Beragam subperintah yang berkaitan dengan database untuk Rauby on Rails.
> Informasi lebih lanjut: <https://guides.rubyonrails.org/command_line.html>. > Informasi lebih lanjut: <https://guides.rubyonrails.org/command_line.html>.
- Membuat database, memuat skema dan menginisiasinya dengan data awal: - Buat pangkalan data (database) baru, memuat skema dan menginisiasinya dengan data awal:
`rails db:setup` `rails db:setup`
- Mengakses konsol database: - Akses konsol database:
`rails db` `rails db`
- Membuat database yang didefinisikan di environment saat ini: - Buat database yang didefinisikan di environment saat ini:
`rails db:create` `rails db:create`
- Menghapus database yang didefinisikan di environment saat ini: - Hapus database yang didefinisikan di environment saat ini:
`rails db:drop` `rails db:drop`
- Menjalankan migrasi yang belum: - Jalankan migrasi yang belum:
`rails db:migrate` `rails db:migrate`
- Menampilkan status dari masing-masing file migrasi: - Tampilkan status dari masing-masing file migrasi:
`rails db:migrate:status` `rails db:migrate:status`
@ -31,6 +31,6 @@
`rails db:rollback` `rails db:rollback`
- Mengisi database dengan data yang didefinisikan di `db/seeds.rb`: - Isi database dengan data yang didefinisikan di `db/seeds.rb`:
`rails db:seed` `rails db:seed`

View File

@ -1,17 +1,17 @@
# rubocop # rubocop
> Menganalisa file Ruby. > Analisa file Ruby.
> Informasi lebih lanjut: <https://docs.rubocop.org/rubocop/usage/basic_usage.html>. > Informasi lebih lanjut: <https://docs.rubocop.org/rubocop/usage/basic_usage.html>.
- Memeriksa semua file dalam direktori saat ini (termasuk direktori-direktori di dalamnya): - Periksa semua file dalam direktori saat ini (termasuk direktori-direktori di dalamnya):
`rubocop` `rubocop`
- Memeriksa satu atau lebih file atau direktori secara khusus: - Periksa satu atau lebih file atau direktori secara khusus:
`rubocop {{jalan/menuju/file}} {{jalan/menuju/direktori}}` `rubocop {{jalan/menuju/file}} {{jalan/menuju/direktori}}`
- Menulis output ke file: - Tulis output ke file:
`rubocop --out {{jalan/menuju/file}}` `rubocop --out {{jalan/menuju/file}}`

View File

@ -1,9 +1,9 @@
# halt # halt
> Hentikan sistem. > Hentikan seluruh proses dan jalannya CPU dalam sistem komputer.
> Informasi lebih lanjut: <https://manned.org/halt.8>. > Informasi lebih lanjut: <https://manned.org/halt.8>.
- Hentikan sistem: - Hentikan sistem komputer:
`halt` `halt`
@ -11,13 +11,13 @@
`halt --poweroff` `halt --poweroff`
- Reboot sistem (sama seperti `reboot`): - Nyalakan ulang sistem (sama seperti `reboot`):
`halt --reboot` `halt --reboot`
- Berhenti segera tanpa menghubungi manajer sistem: - Hentikan sistem secara segera tanpa menghubungi manajer sistem:
`halt --force --force` `halt --force`
- Tulis entri wtmp shutdown tanpa menghentikan sistem: - Tulis entri wtmp shutdown tanpa menghentikan sistem:

View File

@ -1,9 +1,9 @@
# reboot # reboot
> Reboot sistem. > Nyalakan ulang sistem komputer.
> Informasi lebih lanjut: <https://manned.org/reboot.8>. > Informasi lebih lanjut: <https://manned.org/reboot.8>.
- Reboot sistem: - Nyalakan ulang sistem komputer:
`reboot` `reboot`
@ -15,10 +15,10 @@
`reboot --halt` `reboot --halt`
- Reboot segera tanpa menghubungi manajer sistem: - Nyalakan ulang segera tanpa menghubungi manajer sistem:
`reboot --force --force` `reboot --force`
- Tulis entri wtmp shutdown tanpa me-reboot sistem: - Tulis entri wtmp shutdown tanpa menyalakan ulang sistem:
`reboot --wtmp-only` `reboot --wtmp-only`

View File

@ -0,0 +1,24 @@
# shutdown
> Matikan dan nyalakan ulang sistem komputer.
> Informasi lebih lanjut: <https://manned.org/shutdown.8>.
- Matikan ([h]alt) sistem secara segera:
`shutdown -h now`
- Nyalakan ulang ([r]eboot) segera:
`shutdown -r now`
- Nyalakan ulang dalam 5 menit:
`shutdown -r +{{5}} &`
- Matikan sistem pada pukul 1 siang (menggunakan format 24 jam):
`shutdown -h 13:00`
- Batalkan proses mati atau penyalaan ulang yang telah dijadwalkan:
`shutdown -c`

View File

@ -1,12 +1,12 @@
# pbpaste # pbpaste
> Mengirim isi papan klip (clipboard) ke output standar. > Kirim isi papan klip (clipboard) ke output standar.
> Informasi lebih lanjut: <https://ss64.com/osx/pbpaste.html>. > Informasi lebih lanjut: <https://ss64.com/osx/pbpaste.html>.
- Menulis konten papan klip ke dalam sebuah file: - Tulis konten papan klip ke dalam sebuah file:
`pbpaste > {{file}}` `pbpaste > {{file}}`
- Menggunakan konten papan klip sebagai input bagi sebuah perintah: - Gunakan konten papan klip sebagai input bagi sebuah perintah:
`pbpaste | grep foo` `pbpaste | grep foo`

View File

@ -1,20 +1,20 @@
# chkdsk # chkdsk
> Memeriksa dan mencari kesalahan dalam sebuah sistem file dan metadata volume penyimpanan. > Periksa kesalahan dalam sistem file dan metadata volume penyimpanan.
> Informasi lebih lanjut: <https://learn.microsoft.com/windows-server/administration/windows-commands/chkdsk>. > Informasi lebih lanjut: <https://learn.microsoft.com/windows-server/administration/windows-commands/chkdsk>.
- Memeriksa sebuah ruang penyimpanan berdasarkan huruf drive (diakhiri dengan titik dua), lokasi pemasangan, atau nama ruang: - Periksa sebuah ruang penyimpanan berdasarkan huruf drive (diakhiri dengan titik dua), lokasi pemasangan, atau nama ruang:
`chkdsk {{ruang_penyimpanan}}` `chkdsk {{ruang_penyimpanan}}`
- Memperbaiki kesalahan pada ruang penyimpanan yang ditentukan: - Perbaiki kesalahan pada ruang penyimpanan yang ditentukan:
`chkdsk {{ruang_penyimpanan}} /f` `chkdsk {{ruang_penyimpanan}} /f`
- Melepas ruang penyimpanan tertentu untuk pemeriksaan: - Lepaskan ruang penyimpanan tertentu untuk pemeriksaan:
`chkdsk {{ruang_penyimpanan}} /x` `chkdsk {{ruang_penyimpanan}} /x`
- Mengubah ukuran file log dalam sebuah ruang penyimpanan dengan sistem file NTFS: - Ubah ukuran file log dalam sebuah ruang penyimpanan dengan sistem file NTFS:
`chkdsk /l{{ukuran}}` `chkdsk /l{{ukuran}}`

View File

@ -0,0 +1,37 @@
# powershell
> Sebuah syel/shell dan bahasa pemrograman berbasis naskah/script yang dirancang untuk administrasi sistem komputer.
> Perintah ini merujuk kepada PowerShell versi 5.1 ke bawah (juga dikenal sebagai PowerShell bawaan Windows). Gunakan perintah `pwsh` daripada `powershell` untuk menggunakan PowerShell versi terkini (6.0 ke atas) yang tersedia lintas sistem operasi.
> Informasi lebih lanjut: <https://learn.microsoft.com/windows-server/administration/windows-commands/powershell>.
- Jalankan sesi PowerShell interaktif baru:
`powershell`
- Jalankan sesi interaktif tanpa memuat profil konfigurasi startup:
`powershell -NoProfile`
- Jalankan perintah secara spesifik:
`powershell -Command "{{echo 'powershell telah dieksekusi'}}"`
- Jalankan suatu naskah perintah/script PowerShell:
`powershell -File {{jalan/menuju/naskah.ps1}}`
- Jalankan suatu sesi dengan versi PowerShell tertentu:
`powershell -Version {{versi}}`
- Cegah sesi PowerShell dari keluar secara otomatis setelah menjalankan perintah startup:
`powershell -NoExit`
- Tentukan format data yang akan dimasukkan ke dalam PowerShell:
`powershell -InputFormat {{Text|XML}}`
- Tentukan format data yang ingin dikeluarkan dari perintah-perintah PowerShell:
`powershell -OutputFormat {{Text|XML}}`

View File

@ -1,4 +1,4 @@
# iwr # sl
> Perintah ini merupakan alias dari `Set-Location` di PowerShell. > Perintah ini merupakan alias dari `Set-Location` di PowerShell.
> Informasi lebih lanjut: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-location>. > Informasi lebih lanjut: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-location>.

View File

@ -25,7 +25,7 @@
- Archivia utilizzando uno specifico tipo di archivio: - Archivia utilizzando uno specifico tipo di archivio:
`7z a -t {{7z|bzip2|gzip|lzip|tar|zip}} {{archivio.7z}} {{percorso/del/file_o_directory}}` `7z a -t {{7z|bzip2|gzip|lzip|tar|zip}} {{archivio}} {{percorso/del/file_o_directory}}`
- Elenca i contenuti in un archivio: - Elenca i contenuti in un archivio:

View File

@ -6,7 +6,7 @@
- Verifica se una determinata variabile è uguale/diversa dalla stringa specificata: - Verifica se una determinata variabile è uguale/diversa dalla stringa specificata:
`[ "${{variabile}}" {{==|!=}} "{{stringa}}" ]` `[ "${{variabile}}" {{=|!=}} "{{stringa}}" ]`
- Verifica se una variabile data è [eq]uguale/[n]on [e]uguale/[g]maggiore [t]di/[l]minore [t]di/[g]maggiore di o [e]uguale/[l]minore di o [e]uguale al numero specificato: - Verifica se una variabile data è [eq]uguale/[n]on [e]uguale/[g]maggiore [t]di/[l]minore [t]di/[g]maggiore di o [e]uguale/[l]minore di o [e]uguale al numero specificato:

View File

@ -13,20 +13,20 @@
- Mostra l'indirizzo IP di un container: - Mostra l'indirizzo IP di un container:
`docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' {{nome_container}}` `docker inspect --format '\{\{range.NetworkSettings.Networks\}\}\{\{.IPAddress\}\}\{\{end\}\}' {{nome_container}}`
- Mostra il percorso dei file di log di un container: - Mostra il percorso dei file di log di un container:
`docker inspect --format='{{.LogPath}}' {{nome_container}}` `docker inspect --format='\{\{.LogPath\}\}' {{nome_container}}`
- Mostra il nome dell'immagine di un container: - Mostra il nome dell'immagine di un container:
`docker inspect --format='{{.Config.Image}}' {{nome_container}}` `docker inspect --format='\{\{.Config.Image\}\}' {{nome_container}}`
- Mostra le informazioni di configurazione in formato JSON: - Mostra le informazioni di configurazione in formato JSON:
`docker inspect --format='{{json .Config}}' {{nome_container}}` `docker inspect --format='\{\{json .Config\}\}' {{nome_container}}`
- Mostra il binding di tutte le porte: - Mostra il binding di tutte le porte:
`docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> {{(index $conf 0).HostPort}} {{end}}' {{nome_container}}` `docker inspect --format='\{\{range $p, $conf := .NetworkSettings.Ports\}\} \{\{$p\}\} -> \{\{(index $conf 0).HostPort\}\} \{\{end\}\}' {{nome_container}}`

View File

@ -25,7 +25,7 @@
- 特定のアーカイブ形式を使用した圧縮を行う: - 特定のアーカイブ形式を使用した圧縮を行う:
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{アーカイブ.7z}} {{ファイルまたはディレクトリへのパス}}` `7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{アーカイブ}} {{ファイルまたはディレクトリへのパス}}`
- アーカイブの内容を表示する: - アーカイブの内容を表示する:

View File

@ -6,7 +6,7 @@
- 与えられた変数が与えられた文字列と等しいかどうかをテスト: - 与えられた変数が与えられた文字列と等しいかどうかをテスト:
`[ "{{$変数名}}" == "{{/bin/zsh}}" ]` `[ "{{$変数名}}" = "{{/bin/zsh}}" ]`
- 与えられた変数が空であるかどうかをテスト: - 与えられた変数が空であるかどうかをテスト:

View File

@ -6,7 +6,7 @@
- 与えられた変数が与えられた文字列と等しいかどうかをテスト: - 与えられた変数が与えられた文字列と等しいかどうかをテスト:
`test "{{$変数名}}" == "{{/bin/zsh}}"` `test "{{$変数名}}" = "{{/bin/zsh}}"`
- 与えられた変数が空であるかどうかをテスト: - 与えられた変数が空であるかどうかをテスト:

View File

@ -25,7 +25,7 @@
- 특정 압축 타입으로 추출: - 특정 압축 타입으로 추출:
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{archived.7z}} {{경로/파일명_또는_디렉토리명}}` `7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{archived}} {{경로/파일명_또는_디렉토리명}}`
- 압축 파일의 내용 리스트: - 압축 파일의 내용 리스트:

View File

@ -6,7 +6,7 @@
- 주어진 변수가 문자열과 같은지/다른지 비교: - 주어진 변수가 문자열과 같은지/다른지 비교:
`[ "${{변수}}" {{==|!=}} "{{문자열}}" ]` `[ "${{변수}}" {{=|!=}} "{{문자열}}" ]`
- 주어진 변수가 주어진 숫자와 같은지[eq]/다른지[ne]/보다 큰지[gt]/보다 작은지[lt]/크거나 같은지[ge]/작거나 같은지[le] 비교: - 주어진 변수가 주어진 숫자와 같은지[eq]/다른지[ne]/보다 큰지[gt]/보다 작은지[lt]/크거나 같은지[ge]/작거나 같은지[le] 비교:

View File

@ -0,0 +1,20 @@
# adscript
> Adscript 파일용 컴파일러.
> 더 많은 정보: <https://github.com/Amplus2/Adscript>.
- 파일을 객체 파일로 컴파일:
`adscript --output {{경로/대상/파일.o}} {{경로/대상/입력_파일.adscript}}`
- 파일을 컴파일하고 독립 실행형 실행 파일에 연결:
`adscript --executable --output {{경로/대상/파일}} {{경로/대상/입력_파일.adscript}}`
- 기본 기계어 코드 대신 LLVM IR로 파일 컴파일:
`adscript --llvm-ir --output {{경로/대상/파일.ll}} {{경로/대상/입력_파일.adscript}}`
- 파일을 외부 CPU 아키텍처 또는 운영 체제용 객체 파일로 크로스 컴파일:
`adscript --target-triple {{i386-linux-elf}} --output {{경로/대상/파일.o}} {{경로/대상/입력_파일.adscript}}`

20
pages.ko/common/ajson.md Normal file
View File

@ -0,0 +1,20 @@
# ajson
> JSON 객체에서 JSONPath를 실행합니다.
> 더 많은 정보: <https://github.com/spyzhov/ajson>.
- 파일에서 JSON을 읽고 지정된 JSONPath 표현식을 실행:
`ajson '{{$..json[?(@.path)]}}' {{경로/대상/파일.json}}`
- `stdin`에서 JSON을 읽고 지정된 JSONPath 표현식을 실행:
`cat {{경로/대상/파일.json}} | ajson '{{$..json[?(@.path)]}}'`
- URL에서 JSON을 읽고 지정된 JSONPath 표현식을 평가:
`ajson '{{avg($..price)}}' '{{https://example.com/api/}}'`
- 간단한 JSON을 읽고 값을 계산:
`echo '{{3}}' | ajson '{{2 * pi * $}}'`

Some files were not shown because too many files have changed in this diff Show More