Update cheatsheets

This commit is contained in:
ivuorinen
2025-02-09 00:18:54 +00:00
parent e8c2c9b263
commit 23dbe1558c
4 changed files with 36 additions and 2 deletions

View File

@@ -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:

View File

@@ -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
View 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
View 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}}`