Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- brace expansion
- expansion is used to generate arbitrary strings. The specified strings are used to generate **all possible combinations** with the optional surrounding preambles and postscripts. ... that follow a specific naming-scheme. :!: It is the very first step in expansion-handling, it's impor... that. When you use <code> echo {a,b}$PATH </code> then the brace expansion **does not expand the variab
- Los ficheros de inicio de Bash
- BLE} ; do if [ "$DIR" != "$1" ] ; then NEWPATH=${NEWPATH:+$NEWPATH:}$... LE:+${!PATHVARIABLE}:}$1" } if [ $EUID -eq 0 ] ; then unset HISTFILE fi # Define algunas vari... c/profile.d/*.sh ; do if [ -r $script ] ; then . $script fi done # Aho... <code bash># Setup for /bin/ls to support color, the alias is in /etc/bashrc. if [ -f "/etc/dircolors"
- arrays bash
- ag>linux bash pendiente wiki}} /via: [[http://www.thegeekstuff.com/2010/06/bash-array-tutorial/]] <cal... tax ^Description ^ | **${ARRAY[N]}** | Expands to the value of the index ''N'' in the **indexed** array ''ARRAY''. If ''N'' is a negative number, it's treated as the off
- PS1
- e_git_branch { if we_are_in_git_work_tree then local BR=$(git rev-parse --symbolic-full-nam... f HEAD 2> /dev/null) if [ "$BR" == HEAD ] then local NM=$(git name-rev --name-only HEAD... v/null) if [ "$NM" != undefined ] then echo -n "@$NM" else git rev-parse --shor... e_git_status { if we_are_in_git_work_tree then local ST=$(git status --short 2> /dev/null)
- awk
- ia: [[https://www.howtogeek.com/562941/how-to-use-the-awk-command-on-linux/]] * rule = pattern + acti... awk; omit.awk>#!/usr/bin/awk -f BEGIN { # set the input and output field separators FS=":" OFS=":" # zero the accounts counter accounts=0 } { # set field 2 to nothing $2="" # print the entire line print $0 # count another account
- heredoc (docs emblebed)
- ormed on word. # If any part of word is quoted, the delimiter is the result of quote removal on word, and the lines in the here-document # are not expanded. So EOF is quoted as follows cat <<'EOF' >$OUT Status
- BASH
- nts.io/bash</callout> <callout type="info" title="The Bash Hackers Wiki" icon="true">https://wiki.bash-... ttps://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html]]</callout> == scripting <callo... sk1 "?copiar (n surt): "; if [[ $REPLY != "n" ]]; then scp temperatures.py vmware-sentinel:~/temperatur
- comandos bash
- ns/19604384/unixtwo-directories-with-same-name-on-the-same-path]] === exclusión excluir ficheros del l... askubuntu.com/questions/215505/how-do-you-monitor-the-progress-of-dd]] * ''cpio'' : como ''dd'' pero
- Estructuras de control y bucles
- d:20230531-022532.png}} <code bash> if condicion then comandos elif condicion comandos else coma... st" COMANDO="/bin/mkdir $DIRECTORIO" if $COMANDO then echo "OK" else echo "KO" fi </code> === if
- grub
- Desde otro Linux:<code bash> sudo fdisk -l # find the EFI partition sudo mount /dev/<partition_name> /m... mgr -v sudo efibootmgr -b XXXX -B # where XXXX is the entry you want to remove (números) </code> /via:
- Zona Horaria
- a: [[https://linuxacademy.com/blog/linux/changing-the-time-zone-in-linux-command-line/]] == time syncr... ault.com/questions/303517/how-time-is-affected-by-the-ntpd-and-etc-localtime]] * [[https://coreos.com
- alias
- , pass all commands via sudo # if [ $UID -ne 0 ]; then alias reboot='sudo reboot' alias update='sudo ap
- dd
- do dd of=...</code> * [[http://askubuntu.com/questions/215505/how-do-you-monitor-the-progress-of-dd]]
- debug en bash
- dos * ''set (+/-)v'' : "shell inputs lines as they are read" ? == código podemos usar una función
- environment
- if [[ -z "$REMOTEHOST" && -z "$SSH_CLIENT" ]]; then echo "Cliente conectado en local"; else echo