mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 16:56:57 +00:00
Update cheatsheets
This commit is contained in:
17
tldr/linux/apt-install
Normal file
17
tldr/linux/apt-install
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apt install
|
||||
|
||||
> Install packages for Debian-based distributions.
|
||||
> More information: <https://manned.org/apt.8>.
|
||||
|
||||
- Install a package, or update it to the latest version:
|
||||
|
||||
`sudo apt install {{package}}`
|
||||
|
||||
- Display verbose package version information during installation or update:
|
||||
|
||||
`sudo apt install {{[-V|--verbose-versions]}} {{package}}`
|
||||
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add the Extra Packages for Enterprise Linux (EPEL) repositories:
|
||||
|
||||
`sudo dnf {{[in|install]}} https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm`
|
||||
`sudo dnf {{[in|install]}} https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{10}}.noarch.rpm`
|
||||
|
||||
- Add Remi's RPM repository:
|
||||
|
||||
`sudo dnf {{[in|install]}} https://rpms.remirepo.net/enterprise/remi-release-8.rpm`
|
||||
`sudo dnf {{[in|install]}} https://rpms.remirepo.net/enterprise/remi-release-{{8}}.rpm`
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Refresh the output every 2 seconds:
|
||||
|
||||
`free {{[-s|--seconds]}} {{2}}`
|
||||
`free {{[-s|--seconds]}} 2`
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`qm {{[clou|cloudinit]}} {{vm_id}} -ipconfig {{ipconfig}}`
|
||||
|
||||
- Configure a shell script to execute before `cloud-ini` is run on a virtual machine:
|
||||
- Configure a shell script to execute before `cloudinit` is run on a virtual machine:
|
||||
|
||||
`qm {{[clou|cloudinit]}} {{vm_id}} -pre {{script}}`
|
||||
|
||||
@@ -5,32 +5,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rename
|
||||
|
||||
> Rename multiple files.
|
||||
> Note: This page refers to the command from the `util-linux` package.
|
||||
> For the Perl version, see `file-rename` or `perl-rename`.
|
||||
> Warning: This command has no safeguards and will overwrite files without prompting.
|
||||
> More information: <https://manned.org/rename>.
|
||||
> `rename` can refer to multiple commands with the same name.
|
||||
|
||||
- Rename files using simple substitutions (substitute 'foo' with 'bar' wherever found):
|
||||
- View documentation for the Perl version:
|
||||
|
||||
`rename {{foo}} {{bar}} {{*}}`
|
||||
`tldr -p common rename`
|
||||
|
||||
- Dry-run - display which renames would occur without performing them:
|
||||
- View documentation for the `util-linux` version:
|
||||
|
||||
`rename {{[-vn|--verbose --no-act]}} {{foo}} {{bar}} {{*}}`
|
||||
|
||||
- Do not overwrite existing files:
|
||||
|
||||
`rename {{[-o|--no-overwrite]}} {{foo}} {{bar}} {{*}}`
|
||||
|
||||
- Change file extensions:
|
||||
|
||||
`rename {{.ext}} {{.bak}} {{*.ext}}`
|
||||
|
||||
- Prepend "foo" to all filenames in the current directory:
|
||||
|
||||
`rename {{''}} {{'foo'}} {{*}}`
|
||||
|
||||
- Rename a group of increasingly numbered files zero-padding the numbers up to 3 digits:
|
||||
|
||||
`rename {{foo}} {{foo00}} {{foo?}} && rename {{foo}} {{foo0}} {{foo??}}`
|
||||
`tldr rename.util`
|
||||
|
||||
35
tldr/linux/rename.util
Normal file
35
tldr/linux/rename.util
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rename
|
||||
|
||||
> Rename multiple files.
|
||||
> WARNING: This command will overwrite files without prompting unless the dry-run option is used.
|
||||
> Note: This page refers to the command from the `util-linux` package.
|
||||
> More information: <https://manned.org/rename>.
|
||||
|
||||
- Rename files using simple substitutions (substitute 'foo' with 'bar' wherever found):
|
||||
|
||||
`rename {{foo}} {{bar}} {{*}}`
|
||||
|
||||
- Dry-run - display which renames would occur without performing them:
|
||||
|
||||
`rename {{[-vn|--verbose --no-act]}} {{foo}} {{bar}} {{*}}`
|
||||
|
||||
- Do not overwrite existing files:
|
||||
|
||||
`rename {{[-o|--no-overwrite]}} {{foo}} {{bar}} {{*}}`
|
||||
|
||||
- Change file extensions:
|
||||
|
||||
`rename {{.ext}} {{.bak}} {{*.ext}}`
|
||||
|
||||
- Prepend "foo" to all filenames in the current directory:
|
||||
|
||||
`rename {{''}} {{'foo'}} {{*}}`
|
||||
|
||||
- Rename a group of increasingly numbered files zero-padding the numbers up to 3 digits:
|
||||
|
||||
`rename {{foo}} {{foo00}} {{foo?}} && rename {{foo}} {{foo0}} {{foo??}}`
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Enroll the custom secure boot keys and Microsoft's UEFI vendor certificates:
|
||||
|
||||
`sbctl enroll-keys --microsoft`
|
||||
`sbctl enroll-keys {{[-m|--microsoft]}}`
|
||||
|
||||
- Automatically run `create-keys` and `enroll-keys` based on the settings in `/etc/sbctl/sbctl.conf`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user