mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-03 21:43:35 +00:00
Update cheatsheets
This commit is contained in:
@@ -33,9 +33,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`docker exec -it {{container_name}} {{sh}}`
|
||||
|
||||
- Remove a stopped container:
|
||||
- Remove stopped containers:
|
||||
|
||||
`docker rm {{container_name}}`
|
||||
`docker rm {{container1 container2 ...}}`
|
||||
|
||||
- Fetch and follow the logs of a container:
|
||||
|
||||
|
||||
@@ -24,3 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Show the history of a local Docker image:
|
||||
|
||||
`docker image history {{image}}`
|
||||
|
||||
- View documentation for `docker image rm`:
|
||||
|
||||
`tldr docker rmi`
|
||||
|
||||
17
tldr/linux/growpart
Normal file
17
tldr/linux/growpart
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# growpart
|
||||
|
||||
> Extend a partition in a disk or disk image to fill available space.
|
||||
> More information: <https://github.com/canonical/cloud-utils>.
|
||||
|
||||
- Extend partition `n` from `sdX` to fill empty space until end of disk or beginning of next partition:
|
||||
|
||||
`growpart {{/dev/sdX}} {{n}}`
|
||||
|
||||
- Show what modifications would be made when growing partition `n` in a disk image:
|
||||
|
||||
`growpart --dry-run {{/path/to/disk.img}} {{n}}`
|
||||
13
tldr/mariadb-install-db
Normal file
13
tldr/mariadb-install-db
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mariadb-install-db
|
||||
|
||||
> Initialize a MariaDB database.
|
||||
> More information: <https://manned.org/mariadb-install-db>.
|
||||
|
||||
- Initialize a database:
|
||||
|
||||
`mariadb-install-db --user={{user}}} --basedir={{/usr}} --datadir={{/var/lib/mysql}}`
|
||||
Reference in New Issue
Block a user