mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 10:49:07 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,9 +6,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# apk
|
||||
|
||||
> Alpine Linux package management tool.
|
||||
> More information: <https://manned.org/apk>.
|
||||
> More information: <https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper>.
|
||||
|
||||
- Update repository indexes from all remote repositories:
|
||||
- Update repository indexes and upgrade all packages:
|
||||
|
||||
`apk upgrade {{[-U|--update-cache]}}`
|
||||
|
||||
- Only update repository indexes:
|
||||
|
||||
`apk update`
|
||||
|
||||
@@ -20,13 +24,17 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`apk del {{package}}`
|
||||
|
||||
- Repair a package or upgrade it without modifying main dependencies:
|
||||
- Repair/Reinstall a package without modifying main dependencies:
|
||||
|
||||
`apk fix {{package}}`
|
||||
|
||||
- Search for a package via keywords:
|
||||
- Search for packages with a keyword in their name and list results with descriptions:
|
||||
|
||||
`apk search {{keywords}}`
|
||||
`apk search {{[-v|--verbose]}} {{keyword}}`
|
||||
|
||||
- Search for packages with a keyword in their description:
|
||||
|
||||
`apk search {{[-d|--description]}} {{keyword}}`
|
||||
|
||||
- Display information about a specific package:
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List available shells:
|
||||
|
||||
`chsl {{[-l|--list-shells]}}`
|
||||
`chsh {{[-l|--list-shells]}}`
|
||||
|
||||
- Set a specific login shell for the current user:
|
||||
|
||||
|
||||
@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Change to a specific runlevel, but don't stop any existing services:
|
||||
|
||||
`sudo openrc --no-stop {{runlevel_name}}`
|
||||
`sudo openrc {{[-n|--no-stop]}} {{runlevel_name}}`
|
||||
|
||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Simulate running a service's custom command:
|
||||
|
||||
`sudo rc-service --dry-run {{service_name}} {{command_name}}`
|
||||
`sudo rc-service {{[-Z|--dry-run]}} {{service_name}} {{command_name}}`
|
||||
|
||||
- Actually run a service's custom command:
|
||||
|
||||
@@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Resolve the location of a service definition on disk:
|
||||
|
||||
`sudo rc-service --resolve {{service_name}}`
|
||||
`sudo rc-service {{[-r|--resolve]}} {{service_name}}`
|
||||
|
||||
@@ -15,24 +15,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Include services in all runlevels in the summary:
|
||||
|
||||
`rc-status --all`
|
||||
`rc-status {{[-a|--all]}}`
|
||||
|
||||
- List services that have crashed:
|
||||
|
||||
`rc-status --crashed`
|
||||
`rc-status {{[-c|--crashed]}}`
|
||||
|
||||
- List manually started services:
|
||||
|
||||
`rc-status --manual`
|
||||
`rc-status {{[-m|--manual]}}`
|
||||
|
||||
- List supervised services:
|
||||
|
||||
`rc-status --supervised`
|
||||
`rc-status {{[-S|--supervised]}}`
|
||||
|
||||
- Get the current runlevel:
|
||||
- Display the current runlevel:
|
||||
|
||||
`rc-status --runlevel`
|
||||
`rc-status {{[-r|--runlevel]}}`
|
||||
|
||||
- List all runlevels:
|
||||
|
||||
`rc-status --list`
|
||||
`rc-status {{[-l|--list]}}`
|
||||
|
||||
@@ -9,9 +9,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> See also `openrc`.
|
||||
> More information: <https://manned.org/rc-update>.
|
||||
|
||||
- List all services and the runlevels they are added to:
|
||||
- List enabled services and the runlevels they are added to:
|
||||
|
||||
`rc-update show`
|
||||
`rc-update`
|
||||
|
||||
- List all services:
|
||||
|
||||
`rc-update {{[-v|--verbose]}}`
|
||||
|
||||
- Add a service to a runlevel:
|
||||
|
||||
@@ -19,8 +23,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Delete a service from a runlevel:
|
||||
|
||||
`sudo rc-update delete {{service_name}} {{runlevel}}`
|
||||
`sudo rc-update {{[del|delete]}} {{service_name}} {{runlevel}}`
|
||||
|
||||
- Delete a service from all runlevels:
|
||||
|
||||
`sudo rc-update --all delete {{service_name}}`
|
||||
`sudo rc-update {{[-a|--all]}} {{[del|delete]}} {{service_name}}`
|
||||
|
||||
Reference in New Issue
Block a user