Cerca

Heus ací els resultats de la cerca.

brace expansion
30 Resultats, Darrera modificació:
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... p in expansion-handling, it's important to understand that. When you use <code> echo {a,b}$PATH </code> then the brace expansion **does not expand the variable** - this is done in a **later step**
Los ficheros de inicio de Bash
10 Resultats, Darrera modificació:
ariable normal, PS1, se suplementa con PROMPT_COMMAND. Si está establecido, el valor de PROMPT_COMMAND se ejecuta como comando antes de mostrar cada símbolo... he substring match ensures this works for "xterm" and "xterm-xfree86". if [ "${TERM:0:5}" = "xterm" ]; then PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME} : ${PWD}\00
heredoc (docs emblebed)
9 Resultats, Darrera modificació:
us of backup as on $(date) Backing up files $HOME and /etc/ EOF echo "Starting backup using rsync..."... of backup as on $(date) Backing up files $HOME and /etc/ EOF echo "Starting backup using rsync..."... > #!/bin/bash OUT=/tmp/output.txt # No parameter and variable expansion, command substitution, arithmetic expansion, or pathname expansion is performed on
alias
6 Resultats, Darrera modificació:
ción <code bash> alias name=value alias name='command' alias name='command arg1 arg2' alias name='/path/to/script' alias name='/path/to/script.pl arg1' </co... vación (temporal) <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 </code> == elim
arrays bash
6 Resultats, Darrera modificació:
all elements. If unquoted, both subscripts ''*'' and ''@'' expand to the same result, if quoted, ''@'' expands to all elements individually quoted, ''*'' e... ting with element ''N''. This way you can mass-expand individual indexes. The rules for quoting and the subscripts ''*'' and ''@'' are the same as above for
Special Shell Variables & Parameter Substitution and Expansion
6 Resultats, Darrera modificació:
Special Shell Variables & Parameter Substitution and Expansion {{tag>linux}}{{tag>bash}} **$** es util... cripting/posparams]] == Parameter substitution and Expansion ^ expresión ^ Sign... ki>${PARAMETER%%PATTERN}</nowiki>'' * [[#search_and_replace | Search and replace]] * ''${PARAMETER/PATTERN/STRING}'' * ''<nowiki>${PARAMETER//PATT
find
4 Resultats, Darrera modificació:
bloque de 512 bytes * ''$ find . -size 100c -and -size 200c # busca ficheros entre 100 y 200 bytes... : ! en formato abreviado, escapado en bash * -and : -a en formato abreviado * -or : -o en forma... tps://newbedev.com/how-to-use-regex-with-find-command]] * [[https://unix.stackexchange.com/question... /questions/6844785/how-to-use-regex-with-find-command]] * [[https://regex101.com/]] * [[https:/
Zona Horaria
4 Resultats, Darrera modificació:
om/blog/linux/changing-the-time-zone-in-linux-command-line/]] == time syncronization * [[https://fee... cloud.geek.nz/posts/time-synchronization-with-ntp-and-systemd/]] * [[https://echaleunvistazo.wordpres... questions/303517/how-time-is-affected-by-the-ntpd-and-etc-localtime]] * [[https://coreos.com/os/docs/latest/configuring-date-and-timezone.html]]
comandos bash
3 Resultats, Darrera modificació:
): [[http://askubuntu.com/questions/333640/cp-command-to-exclude-certain-files-from-being-copied ]] <c... cyberciti.biz/faq/linux-unix-appleosx-bsd-cat-command-examples/]] * ''uptime'' : tiempo que lleva la ... basicallytech.com/blog/index.php?/archives/23-command-line-calculations-using-bc.html]] * ''nl'' -> n
PS1
3 Resultats, Darrera modificació:
uestions/4133904/ps1-line-with-git-current-branch-and-colors]] <code bash> function we_are_in_git_work_... ite\]@\h\n" # Line 4: a red "✗" or a green "✓" and the error number if [[ $last_cmd == 0 ]]; then... # Line 4: good old prompt, $ for user, # for root PS1+=" \\$ " } PROMPT_COMMAND='set_prompt' </code>
BASH
3 Resultats, Darrera modificació:
type="warning" icon="true" title="Bash variables and command substitution">[[http://www.compciv.org/topics/bash/variables-and-substitution/]]</callout> <callout type="warning"
awk
2 Resultats, Darrera modificació:
//www.howtogeek.com/562941/how-to-use-the-awk-command-on-linux/]] * rule = pattern + action * todo ... .awk>#!/usr/bin/awk -f BEGIN { # set the input and output field separators FS=":" OFS=":" # ze
Estructuras de control y bucles
1 Resultats, Darrera modificació:
ación de comparaciones / comprobaciones * && -> and * || -> OR * ! -> NOT /vía: [[http://www.lin
free
1 Resultats, Darrera modificació:
= free * [[https://www.howtoforge.com/linux-free-command/]]
locate & updatedb
1 Resultats, Darrera modificació:
ia: [[https://www.lifewire.com/updatedb-linux-command-4095883]] == locate * todo: <code bash>locate
tar
1 Resultats, Darrera modificació: