Skip to content

Commit

Permalink
Data update 2023-09-18 06-13-53
Browse files Browse the repository at this point in the history
  • Loading branch information
1010bots committed Sep 18, 2023
1 parent d419d58 commit 7fc10aa
Show file tree
Hide file tree
Showing 32 changed files with 980 additions and 15 deletions.
17 changes: 17 additions & 0 deletions docs/en/linux/ip6tables-restore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
layout: page
title: linux/ip6tables-restore (English)
description: "This command is an alias of `iptables-restore` for the IPv6 firewall."
content_hash: 1248ca8918550e33af482cb6d98cc403f63739cb
last_modified_at: 2023-09-18
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># ip6tables-restore

This command is an alias of `iptables-restore` for the IPv6 firewall.

- View documentation for the original command:

`tldr iptables-restore`
17 changes: 17 additions & 0 deletions docs/en/linux/ip6tables-save.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
layout: page
title: linux/ip6tables-save (English)
description: "This command is an alias of `iptables-save` for the IPv6 firewall."
content_hash: f8072d257fc698a4e0218d1d8693a3e688e3360f
last_modified_at: 2023-09-18
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># ip6tables-save

This command is an alias of `iptables-save` for the IPv6 firewall.

- View documentation for the original command:

`tldr iptables-save`
17 changes: 17 additions & 0 deletions docs/en/linux/ip6tables.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
layout: page
title: linux/ip6tables (English)
description: "This command is an alias of `iptables` for the IPv6 firewall."
content_hash: 19aa0a29dc5713429c82a2967d17d38f56112c09
last_modified_at: 2023-09-18
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># ip6tables

This command is an alias of `iptables` for the IPv6 firewall.

- View documentation for the original command:

`tldr iptables`
19 changes: 19 additions & 0 deletions docs/en/linux/iptables-restore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: page
title: linux/iptables-restore (English)
description: "Restore the `iptables` IPv4 configuration."
content_hash: 1907e409314e01ff35bb1f58c0bedd34ab3c6b15
last_modified_at: 2023-09-18
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># iptables-restore

Restore the `iptables` IPv4 configuration.
Use `ip6tables-restore` to do the same for IPv6.
More information: <https://manned.org/iptables-restore>.

- Restore the `iptables` configuration from a file:

`sudo iptables-restore `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/file</span>
27 changes: 27 additions & 0 deletions docs/en/linux/iptables-save.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: page
title: linux/iptables-save (English)
description: "Save the `iptables` IPv4 configuration."
content_hash: 1d8e24437410e5427585238ac9454a33f4b73cf4
last_modified_at: 2023-09-18
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># iptables-save

Save the `iptables` IPv4 configuration.
Use `ip6tables-save` to to the same for IPv6.
More information: <https://manned.org/iptables-save>.

- Print the `iptables` configuration:

`sudo iptables-save`

- Print the `iptables` configuration of a specific [t]able:

`sudo iptables-save --table `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">table</span>

- Save the `iptables` configuration to a [f]ile:

`sudo iptables-save --file `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/file</span>
21 changes: 7 additions & 14 deletions docs/en/linux/iptables.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
layout: page
title: linux/iptables (English)
description: "Program that allows configuration of tables, chains and rules provided by the Linux kernel firewall."
content_hash: a01188b55ee839046d3c5241732e2508d38dde33
last_modified_at: 2023-09-12
description: "Configure tables, chains and rules of the Linux kernel IPv4 firewall."
content_hash: de59b0f7b953f2a1ddf1310ab61a13e7ebb123c1
last_modified_at: 2023-09-18
related_topics:
- title: italiano version
url: /it/linux/iptables.html
Expand All @@ -14,8 +14,9 @@ related_topics:
---
# iptables

Program that allows configuration of tables, chains and rules provided by the Linux kernel firewall.
More information: <https://www.netfilter.org/projects/iptables/>.
Configure tables, chains and rules of the Linux kernel IPv4 firewall.
Use `ip6tables` to set rules for IPv6 traffic. See also: `iptables-save`, `iptables-restore`.
More information: <https://manned.org/iptables>.

- View chains, rules, packet/byte counters and line numbers for the filter table:

Expand All @@ -31,7 +32,7 @@ More information: <https://www.netfilter.org/projects/iptables/>.

- [A]ppend rule to chain policy for IP considering [p]rotocol and port:

`sudo iptables --append `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">chain</span>` --source `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">ip</span>` --protocol `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">protocol</span>` --dport `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">port</span>` --jump `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">rule</span>
`sudo iptables --append `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">chain</span>` --source `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">ip</span>` --protocol `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">tcp|udp|icmp|...</span>` --dport `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">port</span>` --jump `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">rule</span>

- Add a NAT rule to translate all traffic from the `192.168.0.0/24` subnet to the host's public IP:

Expand All @@ -40,11 +41,3 @@ More information: <https://www.netfilter.org/projects/iptables/>.
- [D]elete chain rule:

`sudo iptables --delete `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">chain</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">rule_line_number</span>

- Save `iptables` configuration of a given [t]able to a file:

`sudo iptables-save --table `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">tablename</span>` > `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/iptables_file</span>

- Restore `iptables` configuration from a file:

`sudo iptables-restore < `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/iptables_file</span>
34 changes: 34 additions & 0 deletions docs/en/linux/systemd-detect-virt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: page
title: linux/systemd-detect-virt (English)
description: "Detect execution in a virtualized environment."
content_hash: e585ff3c1fe99f79ac66bd9166be06542e4decb6
last_modified_at: 2023-09-18
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># systemd-detect-virt

Detect execution in a virtualized environment.
More information: <https://www.freedesktop.org/software/systemd/man/systemd-detect-virt.html>.

- List detectable virtualization technologies:

`systemd-detect-virt --list`

- Detect virtualization, print the result and return a zero status code when running in a VM or a container, and a non-zero code otherwise:

`systemd-detect-virt`

- Silently check without printing anything:

`systemd-detect-virt --quiet`

- Only detect container virtualization:

`systemd-detect-virt --container`

- Only detect hardware virtualization:

`systemd-detect-virt --vm`
39 changes: 39 additions & 0 deletions docs/pt_BR/common/podman-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
layout: page
title: common/podman-build (português (Brasil))
description: "Ferramenta sem daemon para criar imagens de contêiner."
content_hash: e6096082b7289dc67d99e57f422fdd8692e8e9e4
last_modified_at: 2023-09-18
related_topics:
- title: English version
url: /en/common/podman-build.html
icon: bi bi-globe
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># podman build

Ferramenta sem daemon para criar imagens de contêiner.
O Podman fornece uma linha de comando comparável ao Docker-CLI. Simplificando: `alias docker=podman`.
Mais informações: <https://docs.podman.io/en/latest/markdown/podman-build.1.html>.

- Criar uma imagem usando um `Dockerfile` ou `Containerfile` no diretório especificado:

`podman build `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">caminho/para/diretório</span>

- Criar uma imagem com uma tag especificada:

`podman build --tag `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome_da_imagem:versão</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">caminho/para/diretório</span>

- Criar uma imagem a partir de um arquivo não padrão:

`podman build --file `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">Containerfile.diferente</span>` .`

- Criar uma imagem sem usar nenhuma imagem em cache previamente:

`podman build --no-cache `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">caminho/para/diretório</span>

- Criar uma imagem suprimindo todas as saídas:

`podman build --quiet `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">caminho/para/diretório</span>
50 changes: 50 additions & 0 deletions docs/pt_BR/common/podman-compose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
layout: page
title: common/podman-compose (português (Brasil))
description: "Executar e gerenciar definição de contêineres Compose Specification."
content_hash: 387e2054760d423cf389efe0299ef85099eef93d
last_modified_at: 2023-09-18
related_topics:
- title: English version
url: /en/common/podman-compose.html
icon: bi bi-globe
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># podman-compose

Executar e gerenciar definição de contêineres Compose Specification.
Mais informações: <https://github.com/containers/podman-compose>.

- Listar todos os contêineres em execução:

`podman-compose ps`

- Criar e iniciar todos os contêineres em segundo plano usando um arquivo `docker-compose.yml` local:

`podman-compose up -d`

- Iniciar todos os contêineres, fazendo o build se necessário:

`podman-compose up --build`

- Iniciar todos os contêineres usando um arquivo de composição alternativo:

`podman-compose `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">caminho/para/arquivo</span>` up`

- Parar todos os contêineres em execução:

`podman-compose stop`

- Remover todos os contêineres, redes e volumes:

`podman-compose down --volumes`

- Acompanhar logs de um contêiner (omitir todos os nomes de contêineres):

`podman-compose logs --follow `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome_do_contêiner</span>

- Executar um comando único em um serviço sem mapear portas:

`podman-compose run `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome_do_serviço</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">comando</span>
35 changes: 35 additions & 0 deletions docs/pt_BR/common/podman-image.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
layout: page
title: common/podman-image (português (Brasil))
description: "Gerenciar imagens Docker."
content_hash: 30a79b11f7eb87e8c2c1c29170307a107a64e8b6
last_modified_at: 2023-09-18
related_topics:
- title: English version
url: /en/common/podman-image.html
icon: bi bi-globe
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># podman image

Gerenciar imagens Docker.
Veja também `podman build`, `podman import` e `podman pull`.
Mais informações: <https://docs.podman.io/en/latest/markdown/podman-image.1.html>.

- Listar imagens Docker locais:

`podman image ls`

- Excluir imagens Docker locais não utilizadas:

`podman image prune`

- Excluir todas as imagens não utilizadas (não apenas aquelas sem uma tag):

`podman image prune --all`

- Mostrar o histórico de uma imagem Docker local:

`podman image history `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">imagem</span>
38 changes: 38 additions & 0 deletions docs/pt_BR/common/podman-images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
layout: page
title: common/podman-images (português (Brasil))
description: "Gerenciar imagens do Podman."
content_hash: 3c1ed2fc664f5b87c1dd4e148b11f0baddf93fa7
last_modified_at: 2023-09-18
related_topics:
- title: English version
url: /en/common/podman-images.html
icon: bi bi-globe
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># podman images

Gerenciar imagens do Podman.
Mais informações: <https://docs.podman.io/en/latest/markdown/podman-images.1.html>.

- Listar todas as imagens do Podman:

`podman images`

- Listar todas as imagens do Podman, incluindo intermediárias:

`podman images --all`

- Listar a saída no modo silencioso (apenas IDs numéricos):

`podman images --quiet`

- Listar todas as imagens do Podman que não são utilizadas por nenhum contêiner:

`podman images --filter dangling=true`

- Listar imagens que contenham uma substring em seus nomes:

`podman images "`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">*imagem|imagem*</span>`"`
47 changes: 47 additions & 0 deletions docs/pt_BR/common/podman-machine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
layout: page
title: common/podman-machine (português (Brasil))
description: "Criar e gerenciar máquinas virtuais executando o Podman."
content_hash: fa9cd6e7c188f0d40f588f65b6d5ed896e898931
last_modified_at: 2023-09-18
related_topics:
- title: English version
url: /en/common/podman-machine.html
icon: bi bi-globe
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># podman machine

Criar e gerenciar máquinas virtuais executando o Podman.
Incluído com a versão 4 ou superior do Podman.
Mais informações: <https://docs.podman.io/en/latest/markdown/podman-machine.1.html>.

- Listar as máquinas existentes:

`podman machine ls`

- Criar uma nova máquina padrão:

`podman machine init`

- Criar uma nova máquina com um nome específico:

`podman machine init `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome</span>

- Criar uma nova máquina com recursos diferentes:

`podman machine init --cpus=`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">4</span>` --memory=`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">4096</span>` --disk-size=`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">50</span>

- Iniciar ou parar uma máquina:

`podman machine `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">start|stop</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome</span>

- Conectar-se a uma máquina em execução via SSH:

`podman machine ssh `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome</span>

- Inspecionar informações sobre uma máquina:

`podman machine inspect `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome</span>
Loading

0 comments on commit 7fc10aa

Please sign in to comment.