mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-28 13:19:46 +01:00
Compare commits
7 commits
41ed851de4
...
2f8314adb7
Author | SHA1 | Date | |
---|---|---|---|
|
2f8314adb7 | ||
|
69de6120dd | ||
|
9574cfde6a | ||
|
b0d1fca234 | ||
|
cb9f8492b6 | ||
|
42aecfb454 | ||
|
cb15d1e09c |
6 changed files with 107 additions and 11 deletions
|
@ -4,26 +4,34 @@
|
|||
> Um clone do `cat` com realce de sintaxe e integração com Git.
|
||||
> Mais informações: <https://github.com/sharkdp/bat>.
|
||||
|
||||
- Imprime o conteúdo de um arquivo para a saída padrão:
|
||||
- Imprime o conteúdo formatado de um arquivo para a saída padrão (stdout):
|
||||
|
||||
`bat {{arquivo}}`
|
||||
`bat {{/caminho/para/arquivo}}`
|
||||
|
||||
- Concatena o conteúdo de vários arquivos em um arquivo destino:
|
||||
|
||||
`bat {{arquivo1}} {{arquivo2}} > {{arquivo_destino}}`
|
||||
`bat {{/caminho/para/arquivo1 /caminho/para/arquivo2 ...}} > {{/caminho/para/arquivo_destino}}`
|
||||
|
||||
- Acrescenta o conteúdo de vários arquivos ao final de um arquivo destino:
|
||||
- Remove estilizacão e desabilita páginação (`--style plain` pode ser substituído por `-p`, ou ambas as opções com `-pp`):
|
||||
|
||||
`bat {{arquivo1}} {{arquivo2}} >> {{arquivo_destino}}`
|
||||
`bat --style plain --pager never {{/caminho/para/arquivo}}`
|
||||
|
||||
- Numera todas as linhas de saída:
|
||||
- Destaca uma linha específica ou um intervalo de linhas com uma cor de fundo diferente:
|
||||
|
||||
`bat --number {{arquivo}}`
|
||||
`bat {{-H|--highlight-line}} {{10|5:10|:10|10:|10:+5}} {{/caminho/para/arquivo}}`
|
||||
|
||||
- Realça a sintaxe de um arquivo JSON:
|
||||
- Mostra caracteres não imprimíveis como espaço, tab ou nova linha:
|
||||
|
||||
`bat --language json {{arquivo.json}}`
|
||||
`bat {{-A|--show-all}} {{/caminho/para/arquivo}}`
|
||||
|
||||
- Remove toda estilizacão exceto os números das linhas no arquivo de saída:
|
||||
|
||||
`bat {{-n|--number}} {{/caminho/para/arquivo}}`
|
||||
|
||||
- Realça a sintaxe de um arquivo ao definir explicitamente a linguagem (e.g. JSON):
|
||||
|
||||
`bat {{-l|--language}} json {{/caminho/para/arquivo.json}}`
|
||||
|
||||
- Mostra todas as linguagens suportadas:
|
||||
|
||||
`bat --list-languages`
|
||||
`bat {{-L|--list-languages}}`
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# brave
|
||||
|
||||
> Este comando é um alias(apelido) de `chromium`.
|
||||
> Mais informações : <https://support.brave.com/hc/en-us/articles/360044860011-How-Do-I-Use-Command-Line-Flags-in-Brave>.
|
||||
> Mais informações: <https://support.brave.com/hc/en-us/articles/360044860011-How-Do-I-Use-Command-Line-Flags-in-Brave>.
|
||||
|
||||
- Veja a documentação para o comando original:
|
||||
|
||||
|
|
20
pages/common/ntpctl.md
Normal file
20
pages/common/ntpctl.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# ntpctl
|
||||
|
||||
> Display information about the running instance of OpenNTPD.
|
||||
> More information: <https://man.openbsd.org/ntpctl>.
|
||||
|
||||
- Show all data:
|
||||
|
||||
`ntpctl -s {{a|all}}`
|
||||
|
||||
- Show information about each peer:
|
||||
|
||||
`ntpctl -s {{p|peers}}`
|
||||
|
||||
- Show the status of peers and sensors, and whether the system clock is synced:
|
||||
|
||||
`ntpctl -s {{s|status}}`
|
||||
|
||||
- Show information about each sensor:
|
||||
|
||||
`ntpctl -s {{S|Sensors}}`
|
20
pages/common/nxcdb.md
Normal file
20
pages/common/nxcdb.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# nxcdb
|
||||
|
||||
> Interact with the NetExec database.
|
||||
> More information: <https://www.netexec.wiki/getting-started/database-general-usage>.
|
||||
|
||||
- Enter an interactive database session:
|
||||
|
||||
`nxcdb`
|
||||
|
||||
- Display the currently active workspace:
|
||||
|
||||
`nxcdb --get-workspace`
|
||||
|
||||
- Create a new workspace:
|
||||
|
||||
`nxcdb --create-workspace {{workspace_name}}`
|
||||
|
||||
- Activate the specified workspace:
|
||||
|
||||
`nxcdb --set-workspace {{workspace_name}}`
|
24
pages/linux/dpigs.md
Normal file
24
pages/linux/dpigs.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# dpigs
|
||||
|
||||
> Show which installed packages occupy the most space on `apt` based systems.
|
||||
> More information: <https://manned.org/dpigs>.
|
||||
|
||||
- Display the N largest packages on the system:
|
||||
|
||||
`dpigs --lines={{N}}`
|
||||
|
||||
- Use the specified file instead of the default dpkg [s]tatus file:
|
||||
|
||||
`dpigs --status={{path/to/file}}`
|
||||
|
||||
- Display the largest [S]ource packages of binary packages installed on the system:
|
||||
|
||||
`dpigs --source`
|
||||
|
||||
- Display package sizes in [H]uman-readable format:
|
||||
|
||||
`dpigs --human-readable`
|
||||
|
||||
- Display help:
|
||||
|
||||
`dpigs --help`
|
24
pages/linux/pvremove.md
Normal file
24
pages/linux/pvremove.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# pvremove
|
||||
|
||||
> Remove LVM labels from physical volume(s).
|
||||
> More information: <https://manned.org/pvremove>.
|
||||
|
||||
- Remove a LVM label from a physical volume:
|
||||
|
||||
`sudo pvremove {{/dev/sdXY}}`
|
||||
|
||||
- Display detailed output during the operation:
|
||||
|
||||
`sudo pvremove --verbose {{/dev/sdXY}}`
|
||||
|
||||
- Remove a LVM label without asking for confirmation:
|
||||
|
||||
`sudo pvremove --yes {{/dev/sdXY}}`
|
||||
|
||||
- Forcefully remove a LVM label:
|
||||
|
||||
`sudo pvremove --force {{/dev/sdXY}}`
|
||||
|
||||
- Display output in JSON format:
|
||||
|
||||
`sudo pvremove --reportformat json {{/dev/sdXY}}`
|
Loading…
Reference in a new issue