Cerca
Heus ací els resultats de la cerca.
Noms de pàgina coincidents:
- alias
- arrays bash
- instalaciones desatendidas
- awk
- linux comandos dispositivos de bloque
- brace expansion
- comandos bash
- dd
- debug en bash
- environment
- Estructuras de control y bucles
- Los ficheros de inicio de Bash
- find
- free
- Funciones
- grep
- grub
- heredoc (docs emblebed)
- history expansion
- linux ifs
- Referencias indirectas
- less
- Linux: librerías dinámicas
- locale
- Locales
- lsof
- locate & updatedb
- control de procesos
- PS1
- sed
- Special Shell Variables & Parameter Substitution and Expansion
- BASH
- tar
- trap
- update-alternatives
- xargs
- xev
- Zona Horaria
Resultats de text complet:
- Los ficheros de inicio de Bash
- den: - **~/.bash_profile** - **~/.bash_login** - **~/.profile** - **~/.bashrc**: llamado... de ejecución al iniciar sesión === proceso de login ^ # ^ Login Shell ^ Interactive Shell ^ Comentari ^ | 1 | /etc/profile ... lo uno de estos, en este orden | | | ~/.bash_login | |
- brace expansion
- fic naming-scheme. :!: It is the very first step in expansion-handling, it's important to understand ... n **does not expand the variable** - this is done in a **later step**. Brace expansion just makes it b... not possible**, because it's the very first step in doing expansions. A possible way to achieve this, if you really can't handle this in another way, is using the ''eval'' command, which
- arrays bash
- Y[N]}** | Expands to the value of the index ''N'' in the **indexed** array ''ARRAY''. If ''N'' is a ne... Y[S]}** | Expands to the value of the index ''S'' in the **associative** array ''ARRAY''. | | **"${ARR... ARRAY[*]}**|Expands to the **number of elements** in **ARRAY** | |**${!ARRAY[@]}**\\ **${!ARRAY[*]}**|Expands to the **indexes** in **ARRAY** since BASH 3.0| </collapse> == destru
- comandos bash
- u.com/questions/333640/cp-command-to-exclude-certain-files-from-being-copied ]] <code bash> $ ls !(un... callout> == filesystem * ''mkdir -p /jail/{dev,bin,sbin,etc,usr,lib,lib64}'': crea estructura directorios en **jail** * ''echo /usr/dir1 /var/dir2 /na... atos * ''sudo dd if=/dev/disk2s1 of=/Users/admin/imagen.iso'' -> graba disco a imagen ISO * ''
- Estructuras de control y bucles
- flow.com/questions/2348379/use-regular-expression-in-if-condition-in-bash]] * [[http://wiki.bash-hackers.org/syntax/ccmd/conditional_expression]] == ... e bash; example>DIRECTORIO="/tmp/test" COMANDO="/bin/mkdir $DIRECTORIO" if $COMANDO then echo "OK"... o VALUE_B`</code> === for <code bash> for nombre [in lista] do comandos done </code> <code bash; ex
- find
- or nombre * -iname : busca ficheros por nombre sin tener en cuenta mayúsculas o minúsculas * -path... los que el fichero ha sufrido algún cambio * -mmin -<minutos> : número de minutos en los que el fich... rás en los que el fichero ha sido accedido * -amin -<minutos> : número de minutos en los que el fich... del fichero/directorio ha sido modificado * -cmin -<minutos> : número de minutos en los que el inod
- heredoc (docs emblebed)
- usar MITEXTO, la cuestión es definir principio y fin con la misma etiqueta ===sintaxis básica no se permite indentación? <code bash> #!/bin/bash OUT=/tmp/output.txt cat <<EOF Status of ba... ermite indentación del documento! <code bash> #!/bin/bash OUT=/tmp/output.txt cat <<-EOF Status of... </code> === + no bash expansion <code bash> #!/bin/bash OUT=/tmp/output.txt # No parameter and vari
- awk
- iar carácter separador: **OFS="<char>"** * ''BEGIN'' y ''END'' se ejecutan antes y después de proces... .gnu.org/software/gawk/manual/gawk.html#Built_002din|funciones internas]] * si el comando es demasia... ueda usar como script:<code awk; omit.awk>#!/usr/bin/awk -f BEGIN { # set the input and output field separators FS=":" OFS=":" # zero the account
- BASH
- <callout type="info" icon="true" title="SET build-in">[[https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html]]</callout> == scripting <callout type="inf... .com/linux/bash-single-vs-double-brackets#:~:text=In%20this%20article%2C%20we%20discussed,we%20should%... .com/linux/bash-single-vs-double-brackets#:~:text=In%20this%20article%2C%20we%20discussed,we%20should%
- alias
- mporal) <code bash> ## path/to/full/command /usr/bin/clear ## call alias with a backslash ## \c ## use /bin/ls command and avoid ls alias ## command ls </cod... add alias as per os using $_myos ### case $_myos in Linux) alias foo='/path/to/linux/bin/foo';; FreeBSD|OpenBSD) alias foo='/path/to/bsd/bin/foo' ;; SunO
- Locales
- SUPPORTED</code> <code bash> sudo locale-gen en_IN sudo locale-gen en_IN.UTF-8 sudo update-locale </code> <code bash> $ export LANG=en_US.utf8 $ export... n usuario: <code bash "~/.bash_profile"> LANG="en_IN.utf8" export LANG </code> <code bash "~/.i18n"> LANG="en_US.UTF-8" SUPPORTED="en_IN.utf8:en_IN:en_US.UTF-8:en_US:en" SYSFONT="latarcy
- Special Shell Variables & Parameter Substitution and Expansion
- h>cadena="Esto es una cadena" arr=($cadena) for i in ${arr[@]}; do echo $i; done </code> *<code bash> cadena="Esto es una cadena" for i in ${cadena[@]}; do echo $i; done </code> * subcad... ckoverflow.com/questions/428109/extract-substring-in-bash]] * [[http://rm-rf.es/unix-uso-del-comando... ]}''| Array keys expansion | | ''${var[@]}'' | Plain array expansion | <code bash; title=indirection>
- sed
- ssh/sshd_config \ -e 's/#PermitRootLogin.*/PermitRootLogin no/' \ -e 's/#RSAAuthentication.*/RSAAuthentication yes/' \ ... d -i.bak '/<\/tomcat-users>/ i\<user username="admin" password="password" roles="admin,manager-gui,admin-gui"/>' /opt/tomcat/conf/tomcat-users.xml </code>
- debug en bash
- * en el script, modificando el SheBang:<code>#!/bin/bash -x</code> * desde linea de comando: ''$ ba... ontrolado todo desde una variable <code bash> #!/bin/bash _DEBUG="on" function DEBUG() { [ "$_DEBUG" ... on" ] && $@ } DEBUG echo 'Reading files' for i in * do grep 'something' $i > /dev/null [ $? -eq 0 ] && echo "Found in $i file" done DEBUG set -x a=2 b=3 c=$(( $a + $b
- PS1
- t-branch-and-colors]] <code bash> function we_are_in_git_work_tree { git rev-parse --is-inside-wor... null } function parse_git_branch { if we_are_in_git_work_tree then local BR=$(git rev-par... fi } function parse_git_status { if we_are_in_git_work_tree then local ST=$(git status... xport -f parse_git_branch parse_git_status we_are_in_git_work_tree pwd_depth_limit_2 export PS1="$COLR