mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
histexpand, history: add Spanish translation (#5825)
This commit is contained in:
parent
6a037d6fdb
commit
d8a8f653ec
3 changed files with 61 additions and 0 deletions
36
pages.es/common/histexpand.md
Normal file
36
pages.es/common/histexpand.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# history expansion
|
||||
|
||||
> Reutiliza y expande el historial de la shell en `sh`, `bash`, `zsh`, `rbash` y `ksh`.
|
||||
> Más información: <https://www.gnu.org/software/bash/manual/html_node/History-Interaction>.
|
||||
|
||||
- Ejecuta el último comando:
|
||||
|
||||
`!!`
|
||||
|
||||
- Ejecuta el último comando como administrador:
|
||||
|
||||
`sudo !!`
|
||||
|
||||
- Ejecuta un comando con el último argumento del último comando:
|
||||
|
||||
`{{comando}} !$`
|
||||
|
||||
- Ejecuta un comando con el primer argumento del comando anterior:
|
||||
|
||||
`{{comando}} !^`
|
||||
|
||||
- Ejecuta el comando `n` líneas atrás en el historial:
|
||||
|
||||
`!-{{n}}`
|
||||
|
||||
- Ejecuta el último comando con el prefijo `cadena`:
|
||||
|
||||
`!{{cadena}}`
|
||||
|
||||
- Ejecuta el último comando, reemplazando `cadena1` por `cadena2`:
|
||||
|
||||
`^{{cadena1}}^{{cadena2}}^`
|
||||
|
||||
- Realiza una expansión del historial, pero muestra el comando que se ejecutaría en lugar de ejecutarlo realmente:
|
||||
|
||||
`{{!-n}}:p`
|
24
pages.es/common/history.md
Normal file
24
pages.es/common/history.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# history
|
||||
|
||||
> Historial de la línea de comandos.
|
||||
> Más información: <https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html>.
|
||||
|
||||
- Muestra el historial de comandos junto a su número de línea:
|
||||
|
||||
`history`
|
||||
|
||||
- Muestra los últimos 20 comandos:
|
||||
|
||||
`history {{20}}`
|
||||
|
||||
- Limpia el historial de comandos (solo para la shell actual):
|
||||
|
||||
`history -c`
|
||||
|
||||
- Sobrescribe el archivo histórico con el historial de la shell actual (comúnmente se combina con `history -c` para limpiar el historial):
|
||||
|
||||
`history -w`
|
||||
|
||||
- Borra la entrada del historial en el índice especificado:
|
||||
|
||||
`history -d {{indice}}`
|
|
@ -1,6 +1,7 @@
|
|||
# history
|
||||
|
||||
> Command Line history.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html>.
|
||||
|
||||
- Display the commands history list with line numbers:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue