Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- BASH
- icio|]] * [[linux:bash:update-alternatives]] <callout type="info" title="Bash scripting cheatsheet" icon="true">https://devhints.io/bash</callout> <callout type="info" title="The Bash Hackers Wiki" icon="true">https://wiki.bash-hackers.org/start</callout> <callout type="warning" icon="true" title="Ba
- brace expansion
- = brace expansion <callout type="info" icon="true" title="Brace expansion">[[http://wiki.bash-hackers.org/syntax/expansion/brace]]</callout> <code> {string1,string2,...,stringN} {<START>... ngs. The specified strings are used to generate **all possible combinations** with the optional surrounding preambles and postscripts. Usually it's used to generate mass-arguments for a comma
- Los ficheros de inicio de Bash
- bash># Inicio de /etc/profile # Escrito para Más Allá de Linux From Scratch # por James Robertson <jam... profile</code> === /etc/profile.d <code bash>install --directory --mode=0755 --owner=root --group=root... code><code bash># Set up i18n variables export LC_ALL=[ll]_[CC] export LANG=[ll]_[CC] export G_FILENAME_ENCODING=@locale</code> * La variable LC_ALL establce el mísmo valor para todas las categorías
- arrays bash
- hegeekstuff.com/2010/06/bash-array-tutorial/]] <callout type="info" title="más información de interés ... .bash- hackers.org/syntax/arrays?rev=1534920675</callout> <callout type="info" title="más información de interés (arrays asociativos)" icon="true">https://w... log/2012/10/17/bash-associative-array-examples/</callout> == declaración e inicialización <code bash;
- comandos bash
- omandos bash {{tag>linux bash}} == comandos al detalle * uptime * tail [-n <nn>] * head [-n <nn>]... nux.die.net/man/1/syndaemon]] * ''apt-get install xserver-xorg-input-synaptics'' * [[linux:bash:... $ export GLOBIGNORE='unlisted*' $ ls * </code> <callout type="info" title="Glob" icon="true">https://en.m.wikipedia.org/wiki/Glob_(programming)</callout> == filesystem * ''mkdir -p /jail/{dev,bin,s
- Locales
- lenguaje (y de LC_*) usado en el sistema * ''LC_ALL'' : establece el valor de todas las categorias y ... <code bash> $ export LANG=en_US.utf8 $ export LC_ALL=en_US.utf8 $ sudo dpkg-reconfigure locales </code... US:en" SYSFONT="latarcyrheb-sun16" </code> == detalles <code bash> $ locale LANG=en_US.utf8 LANGUAGE=... NT="en_US.utf8" LC_IDENTIFICATION="en_US.utf8" LC_ALL=en_US.utf8 </code> mostrar detalle de las categor
- alias
- = alias {{tag> linux bash}} <callout type="warning" title="quedan ejemplos por mirar en la página que ... /tips/bash-aliases-mac-centos-linux-unix.html]]</callout> == creación <code bash> alias name=value alia... bash> ## path/to/full/command /usr/bin/clear ## call alias with a backslash ## \c ## use /bin/ls comma... vilegiado <code bash> # if user is not root, pass all commands via sudo # if [ $UID -ne 0 ]; then alias
- dd
- lugar del archivo completo == ejemplos === MBR <callout type="info" icon="true" title="Advertencia">Re... s sean ilegibles y casi imposible de recuperar.</callout> * ''dd if=/dev/sda of=/boot/mbr-backup bs=5... /dev/sda bs=512 count=1'': restauración del MBR <callout type="info" icon="true" title="Advertencia">Es... modo rescue y reinstalar el GRUB (si lo tienes)</callout> * ''dd if=/dev/zero of=/dev/sda bs=446 coun
- instalaciones desatendidas
- pting * mysql (ubuntu xenial) - [[https://coderwall.com/p/axokwa/mysql-5-7-silent-install-on-ubuntu-16]]:<code bash> MYSQL_ROOT_PASSWORD="toor" sudo apt-... password $MYSQL_ROOT_PASSWORD" | debconf-set-selections sudo apt-get -y install mysql-server-5.7</code>
- grub
- tros OS <code bash> sudo os-prober # sudo apt install os-prober sudo update-grub </code> == solución d... /boot-repair sudo apt-get update sudo apt-get install boot-repair </code> Desde tu mismo Linux:<code ba
- locate & updatedb
- a nivel de configuración * más rápido == install & setup * instalación:<code bash>sudo apt install mlocate</code> * excluir directorios:<code bash>
- Special Shell Variables & Parameter Substitution and Expansion
- a "$b" = "bar" ] && echo "todo OK" || echo "algo falla"'' <- -a equivale AND * ''$ a=foo; b=bar; [ "$... num_param> * permite acceder a parámetros más allá del 10 * ''${@:7:2}'' -> devuelve $7 y $8
- update-alternatives
- lternativas <code bash> update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2 </cod
- grep
- </code><code bash>grep -vxFf ItemsListtoAvoid.txt AllItemsList.txt > ItemsDifference.txt</code> * fil
- less
- '' : no rompe las líneas al llegar a final de pantalla == enlaces * [[https://en.wikipedia.org/wiki/