mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-01 04:54:15 +00:00
Update cheatsheets
This commit is contained in:
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
> Execute commands at a later time when the system load levels permit.
|
> Execute commands at a later time when the system load levels permit.
|
||||||
> Results will be sent to the user's mail.
|
> Results will be sent to the user's mail.
|
||||||
> See also: `at`, `atq`, `atrm` `mail`.
|
> See also: `at`, `atq`, `atrm`, `mail`.
|
||||||
> More information: <https://manned.org/batch>.
|
> More information: <https://manned.org/batch>.
|
||||||
|
|
||||||
- Execute commands from `stdin` (press `<Ctrl d>` when done):
|
- Execute commands from `stdin` (press `<Ctrl d>` when done):
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# crane index
|
# crane index
|
||||||
|
|
||||||
> Modify an image index.
|
> Modify an image index.
|
||||||
> The subcommands `append` and `filter` have their own usage documentation.
|
> Some subcommands such as `append` and `filter` have their own usage documentation.
|
||||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_index.md>.
|
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_index.md>.
|
||||||
|
|
||||||
- Modify an image index:
|
- Modify an image index:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# gcloud
|
# gcloud
|
||||||
|
|
||||||
> The official CLI tool for Google Cloud Platform.
|
> The official CLI tool for Google Cloud Platform.
|
||||||
> Note: `gcloud` subcommands have their own usage documentation.
|
> Some subcommands such as `app` and `init` have their own usage documentation.
|
||||||
> More information: <https://docs.cloud.google.com/sdk/gcloud>.
|
> More information: <https://docs.cloud.google.com/sdk/gcloud>.
|
||||||
|
|
||||||
- List all properties in one's active configuration:
|
- List all properties in one's active configuration:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# git format-patch
|
# git format-patch
|
||||||
|
|
||||||
> Prepare `.patch` files. Useful when emailing commits elsewhere.
|
> Prepare `.patch` files. Useful when emailing commits elsewhere.
|
||||||
> See also: `git am` which can apply generated `.patch` files.
|
> See also: `git am`.
|
||||||
> More information: <https://git-scm.com/docs/git-format-patch>.
|
> More information: <https://git-scm.com/docs/git-format-patch>.
|
||||||
|
|
||||||
- Create an auto-named `.patch` file for all the unpushed commits:
|
- Create an auto-named `.patch` file for all the unpushed commits:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# alien
|
# alien
|
||||||
|
|
||||||
> Convert different installation packages to other formats.
|
> Convert different installation packages to other formats.
|
||||||
> See also: `debtap` for `.deb` conversion on Arch Linux.
|
> See also: `debtap`.
|
||||||
> More information: <https://manned.org/alien>.
|
> More information: <https://manned.org/alien>.
|
||||||
|
|
||||||
- Convert a specific installation file to Debian format (`.deb` extension):
|
- Convert a specific installation file to Debian format (`.deb` extension):
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
> Execute commands at a later time when the system load levels permit.
|
> Execute commands at a later time when the system load levels permit.
|
||||||
> Results will be sent to the user's mail.
|
> Results will be sent to the user's mail.
|
||||||
> See also: `at`, `atq`, `atrm` `mail`.
|
> See also: `at`, `atq`, `atrm`, `mail`.
|
||||||
> More information: <https://manned.org/batch>.
|
> More information: <https://manned.org/batch>.
|
||||||
|
|
||||||
- Start the `atd` daemon:
|
- Start the `atd` daemon:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# pkgfile
|
# pkgfile
|
||||||
|
|
||||||
> Search files from packages in the official repositories on Arch-based systems.
|
> Search files from packages in the official repositories on Arch-based systems.
|
||||||
> See also: `pacman files` describing the usage of `pacman --files`.
|
> See also: `pacman files`.
|
||||||
> More information: <https://manned.org/pkgfile>.
|
> More information: <https://manned.org/pkgfile>.
|
||||||
|
|
||||||
- Synchronize the pkgfile database:
|
- Synchronize the pkgfile database:
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- View documentation for the original command:
|
- View documentation for the original command:
|
||||||
|
|
||||||
`tldr qm guest cmd`
|
`tldr qm guest`
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- View documentation for the original command:
|
- View documentation for the original command:
|
||||||
|
|
||||||
`tldr qm disk import`
|
`tldr qm disk`
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- View documentation for the original command:
|
- View documentation for the original command:
|
||||||
|
|
||||||
`tldr qm disk move`
|
`tldr qm disk`
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- View documentation for the original command:
|
- View documentation for the original command:
|
||||||
|
|
||||||
`tldr qm disk move`
|
`tldr qm disk`
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- View documentation for the original command:
|
- View documentation for the original command:
|
||||||
|
|
||||||
`tldr qm disk rescan`
|
`tldr qm disk`
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- View documentation for the original command:
|
- View documentation for the original command:
|
||||||
|
|
||||||
`tldr qm disk resize`
|
`tldr qm disk`
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- View documentation for the original command:
|
- View documentation for the original command:
|
||||||
|
|
||||||
`tldr qm disk unlink`
|
`tldr qm disk`
|
||||||
|
|||||||
@@ -26,18 +26,18 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`quickemu --sound-card {{intel-hda|ac97|es1370|sb16|none}} --shortcut --vm {{path/to/file.conf}}`
|
`quickemu --sound-card {{intel-hda|ac97|es1370|sb16|none}} --shortcut --vm {{path/to/file.conf}}`
|
||||||
|
|
||||||
- Create a snapshot:
|
- Create/restore/delete a snapshot:
|
||||||
|
|
||||||
`quickemu --snapshot create {{tag}} --vm {{path/to/file.conf}}`
|
`quickemu --snapshot {{create|apply|delete}} {{tag}} --vm {{path/to/file.conf}}`
|
||||||
|
|
||||||
- Restore a snapshot:
|
|
||||||
|
|
||||||
`quickemu --snapshot apply {{tag}} --vm {{path/to/file.conf}}`
|
|
||||||
|
|
||||||
- List available snapshots:
|
- List available snapshots:
|
||||||
|
|
||||||
`quickemu --snapshot info --vm {{path/to/file.conf}}`
|
`quickemu --snapshot info --vm {{path/to/file.conf}}`
|
||||||
|
|
||||||
- Delete a snapshot:
|
- Delete the entire virtual machine and its configuration:
|
||||||
|
|
||||||
`quickemu --snapshot delete {{tag}} --vm {{path/to/file.conf}}`
|
`quickemu --delete-vm --vm {{path/to/file.conf}}`
|
||||||
|
|
||||||
|
- Delete the virtual machine's disk image and EFI variables:
|
||||||
|
|
||||||
|
`quickemu --delete-disk --vm {{path/to/file.conf}}`
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# quickget
|
# quickget
|
||||||
|
|
||||||
> Download and prepare materials for building a Quickemu virtual machine.
|
> Download and prepare materials for building a Quickemu virtual machine.
|
||||||
> Note: The parameter "edition" is always optional.
|
> Note: The parameter "edition" is sometimes optional.
|
||||||
> See also: `quickemu`.
|
> See also: `quickemu`.
|
||||||
> More information: <https://github.com/quickemu-project/quickemu>.
|
> More information: <https://github.com/quickemu-project/quickemu>.
|
||||||
|
|
||||||
- Display the list of all supported guest operating systems, versions, and variants:
|
- Display the list of all supported guest operating systems, versions, and variants in various formats:
|
||||||
|
|
||||||
`quickget list`
|
`quickget {{--list|--list-csv|--list-json}}`
|
||||||
|
|
||||||
- Download and create the virtual machine configuration for building a Quickemu virtual machine for an OS:
|
- Download and create the virtual machine configuration for building a Quickemu virtual machine for an OS:
|
||||||
|
|
||||||
@@ -28,16 +28,16 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Show an ISO URL for an operating system:
|
- Show an ISO URL for an operating system:
|
||||||
|
|
||||||
`quickget --url fedora {{release}} {{edition}}`
|
`quickget --url {{os}} {{release}} {{edition}}`
|
||||||
|
|
||||||
- Test if an ISO file is available for an operating system:
|
- Test if an ISO file is available for an operating system:
|
||||||
|
|
||||||
`quickget --check nixos {{release}} {{edition}}`
|
`quickget --check {{os}} {{release}} {{edition}}`
|
||||||
|
|
||||||
- Download an image without building any VM configuration:
|
- Download an image without building any VM configuration:
|
||||||
|
|
||||||
`quickget --download {{os}} {{release}} {{edition}}`
|
`quickget --download {{os}} {{release}} {{edition}}`
|
||||||
|
|
||||||
- Create a VM configuration for an OS image:
|
- Create a VM configuration for an OS image (this will move the ISO from the source directory):
|
||||||
|
|
||||||
`quickget --create-config {{os}} {{path/to/iso}}`
|
`quickget --create-config {{os}} {{path/to/iso}}`
|
||||||
|
|||||||
25
tldr/osx/trash
Normal file
25
tldr/osx/trash
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, osx]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# trash
|
||||||
|
|
||||||
|
> Move files and directories to the user trash folder.
|
||||||
|
> More information: <https://keith.github.io/xcode-man-pages/trash.8.html>.
|
||||||
|
|
||||||
|
- Move a file to the trash:
|
||||||
|
|
||||||
|
`trash {{path/to/file}}`
|
||||||
|
|
||||||
|
- Move multiple items or directories to the trash:
|
||||||
|
|
||||||
|
`trash {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
||||||
|
|
||||||
|
- Move files to the trash with verbose output:
|
||||||
|
|
||||||
|
`trash {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}`
|
||||||
|
|
||||||
|
- Display help:
|
||||||
|
|
||||||
|
`trash {{[-h|--help]}}`
|
||||||
@@ -20,7 +20,11 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`pkgz search {{package_name}}`
|
`pkgz search {{package_name}}`
|
||||||
|
|
||||||
- Show enabled sources with the package available and/or installed:
|
- Show how many packages are installed per source:
|
||||||
|
|
||||||
|
`pkgz info`
|
||||||
|
|
||||||
|
- Show where a package is installed or available:
|
||||||
|
|
||||||
`pkgz info {{package_name}}`
|
`pkgz info {{package_name}}`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user