nations** with the optional surrounding preambles and postscripts.
Usually it's used to generate mass-arguments for a command, that follow a specific naming-scheme.
:!: It is the very first step in expansion-handling, it's important to understand that. When you use
<code>
echo {a,b}$PATH
</code>
then the brace exp
= comandos bash
{{tag>linux bash}}
== comandos al detalle
* uptime
* tail [-n <nn>]
* head [-n <nn>]
* ... aracters (sustitución cadenas sobre la entrada estandard. Uso com filtro en scripts)
* :lower
*... la IP
* nohup : Mantiene la ejecución de un comando pese a salir de la terminal
* [[https://rm-r
shell
* Interactivo: permite interactuar, ejecutando comandos introducidos desde el teclado.
* No Interactivo: ejecuta los comandos desde un script
* De Inicio: los shells que s... a para el grupo para los usuarios del sistema y cuando el nombre del usuario y el nombre del grupo no s
ID
<code>
1. You can use ps to list all processes and see if you see something related, for example wit... es [in brackets].
A better way is to use the command to list open files: lsof.
2. Find the name (first column) and Process ID (PID, second column) of the process related to /var/log/bad.log by running lsof and filtering the rows to the one(s) containing bad.l
">
^Syntax ^Description ^
| **${ARRAY[N]}** | Expands to the value of the index ''N'' in the **indexed... sed for assignment) - 1 |
| **${ARRAY[S]}** | Expands to the value of the index ''S'' in the **associa... ilar to [[scripting:posparams#mass_usage| mass-expanding positional parameters]], this expands to all elements. If unquoted, both subscripts ''*'' and ''@''
la sustitución |
| !! | Último comando -> ''!-1''|
| !n | enésimo comando |
| !-n | último comando menos n |
| !string | el comando más reciente que empiece por string |
| !?string?
== "" ] && l=16
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs
}
# Envia mails para re... ype l -ls | sed "/proc/d" | sed "/dev/d";
}
# comandos favoritos
favorites() { history | awk '{print $... 9-2008
# Free Software Foundation, Inc.
# Copying and distribution of this file, with or without modifi... on,
# are permitted provided the copyright notice and this notice are preserved.
# The keywords COLOR,
permite lanzar nuevas instancias de S.O. aprovechando los recursos (hard) de la máquina Y el kernel de... presente en el kernel desde la versión 3.8
* Grandes beneficios:
* portabilidad de aplicaciones
... gitalocean.com/community/tutorials/how-to-install-and-use-docker-getting-started]]
* [[https://www.... gitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04]]
* más enlaces (m
ps://www.howtoforge.com/tutorial/how-to-setup-zsh-and-oh-my-zsh-on-linux/]]
* ''chsh -s $(which zsh)'... utostash VAR=VALOR'' -> setea nuevo valor, conservando el anterior y lo recupera al salir del directori... r a la sección **plugins** de **~/.zshrc**: **command-time**
* **zsh-command-time**
* <code bash>git clone https://github.com/popstas/zsh-command-time
Special Shell Variables & Parameter Substitution and Expansion
{{tag>linux}}{{tag>bash}}
**$** es util... para expansión de parámetros y sustitución de comandos
== File descriptors
== Special Shell Variabl...
| $0 | Nombre del script que se está ejecutando |
| $1 | Parámetro 1 |
| $2 - $9 | Paráme... al script |
| $_ | Último argumento del comando anterior |
| $! | PID del último trabajo e
te lleva dentro
* **zsh_stats** : función de comandos más usados
* **kill <caracteres><TAB>** : mue... res> para seleccionar el proceso a matar
* **expandir ayudas** : puedes ver todas las opciones de un comando tecleando el comando y el parámetro, por ejemplo: ''ls -B<TAB>''
* **dirs [-v]**: muestra últimos d
ource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
... tory for rtorrent to use. Place a file
# in here, and rtorrent loads it #automatically. (see "schedule ... toring rtorrent session information
#
# Maximum and minimum number of peers to connect to per torrent... s per torrent.
max_uploads = 50
# Global upload and download rate in KiB. "0" for unlimited.
download
-linux-guide/]]
* [[https://itsfoss.com/apt-command-guide/]]
== sources.list
* copia: **/usr/share... sitory multiverse</code>
== ignore certificate
Cuando estamos en una versión vieja de algún linux (deb... ertificados o simplemente ignorarlo)
Estamos hablando de ignorar que que no se puede verificar la vali... esinstala (como la satisfacción de dependencias cuando instalas un paquete)
* **hold**: paquete ret
= comandos "background"
{{ :linux:background:img_20200118_121201_01.jpg?nolink&400 |}}
== Trabajos en segundo plano
* ''<comando><param> &''
* ''<comando><param>'' y a posterior, ''^Z'' y entonces ''$ bg''
* ''bg''
* ''jobs'... o plano
[[http://www.cyberciti.biz/faq/linux-command-line-run-in-background/]]
== como lanzar aplicaci