bash

Recherche

Voici les résultats de votre recherche.

behaviours @terminal
53 Occurrences trouvées, Dernière modification :
====== Bash's behaviour ====== {{keywords>bash shell scripting startup files dotfiles modes POSIX}} FIXME incomplete ===== Bash startup modes ===== ==== Login shell ==== As a "login shell", Bash reads and sets (executes) the user's profile from
basics @terminal
47 Occurrences trouvées, Dernière modification :
The basics of shell scripting ====== {{keywords>bash shell scripting basics learning tutorial}} =====... e. The file can be executable, but you can call a Bash script with that filename as a parameter: <code> bash ./myfile </code> There is **no need to add a boring filename extension** like ''.bash'' or ''.sh''. That is a holdover from UNIX(r), wh
obselete @terminal
33 Occurrences trouvées, Dernière modification :
Obsolete and deprecated syntax ====== {{keywords>bash shell scripting obsolete deprecated outdated}} T... his first table lists syntax that is tolerated by Bash but has few if any legitimate uses. These feature... kward compatibility with obsolete shells, or were Bash-specific features considered failed experiments a... n. See: [[syntax:redirection | redirection]]<code bash> $ { bash; dash </dev/fd/0; } <<<'echo foo>/dev/n
obsolete @scripts
32 Occurrences trouvées, Dernière modification :
solete and deprecated syntax ====== https://wiki.bash-hackers.org/scripting/obsolete This (incomple... his first table lists syntax that is tolerated by Bash but has few if any legitimate uses. These feature... kward compatibility with obsolete shells, or were Bash-specific features considered failed experiments a... n. See: [[syntax:redirection | redirection]]<code bash> $ { bash; dash </dev/fd/0; } <<<'echo foo>/dev/n
quoting @scripts
13 Occurrences trouvées, Dernière modification :
====== Quotes and escaping ====== https://wiki.bash-hackers.org/syntax/quoting {{keywords>bash shell scripting quoting quotes escape backslash marks singl... escaping are important, as they influence the way Bash acts upon your input. There are three recognized ... eneral, a character that has a special meaning to Bash, like the dollar-sign (''$'') can be masked to no
terminal
9 Occurrences trouvées, Dernière modification :
es (ANSI/VT100) introduction ====== https://wiki.bash-hackers.org/scripting/terminalcodes? Terminal ... ommand. __**Note:**__ I see codes referenced as "Bash colors" sometimes (several "Bash tutorials" etc...): That's a completely incorrect definition. ===== T... can switch to, to get the other 8 colors. ===== Bash examples ===== ==== Hardcoded colors ==== <code
positional-parameters @scripts
8 Occurrences trouvées, Dernière modification :
estscript__ - it just echos ''$0'': <code> #!/bin/bash echo "$0" </code> You see, ''$0'' is always set t... isn't true for login shells: <code> > echo "$0" -bash </code> In other terms, ''$0'' is not a position... y is to access specific parameters: <code> #!/bin/bash echo "Total number of arguments: $#" echo "Argume... echo "${@: -1}" </code> __**Attention**__: As of Bash 4, a ''START'' of ''0'' includes the special para
scripting @terminal
7 Occurrences trouvées, Dernière modification :
fix (''MY_'' in the example below) <code> #!/bin/bash # the prefix 'MY_' MY_LOG_DIRECTORY=/var/adm/ f... on names. ''/bin/ls'' is a valid function name in Bash, but is not a good idea. ==== Command substitut... /sh'': The argument that "on Linux ''/bin/sh'' is Bash" **is a lie** (and technically irrelevant) The s... e script file is called directly: If you code for Bash, specify ''bash''! * it documents the desired i
netdata
6 Occurrences trouvées, Dernière modification :
and keep it up to date automatically) bash <(curl -Ss https://my-netdata.io/kickstart.sh) ... l version - for Intel/AMD 64bit hosts. bash <(curl -Ss https://my-netdata.io/kickstart-static... itself as needed; the target system does not need bash installed, check below for instructions to run it without bash) Linux, install from source, by hand semi-automa
truecolor @terminal
6 Occurrences trouvées, Dernière modification :
t true color: "888" colors (aka 16 milion) <code bash> printf "\x1b[${bg};2;${red};${green};${blue}m\n"... olor itself. This is a good test case: <code bash> printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n" ... then it indicates truecolor is supported. <code bash> $ (echo -e '\e[48:2:1:2:3m\eP$qm\e\\' ; xxd) ^[... rt truecolor we might see a response like <code bash> ^[P1$r40m^[\ 00000000: 1b50 3124 7234 306d 1b5c
ffmpeg
5 Occurrences trouvées, Dernière modification :
toexit </code> ------- # Common switches ```bash -codecs # list codecs -c:v ... # limit file size (bytes) ``` # Bitrate ```bash -b:v 1M # video bitrate (1M = 1Mbit/s) -b:a 1M # audio bitrate ``` # Video ```bash -aspect RATIO # aspect ratio (4:3, 16:9, or 1.... size -vn # no video ``` # Audio ```bash -aq QUALITY # audio quality (codec-specific)
bash @debian
4 Occurrences trouvées, Dernière modification :
====== Bash Variables in shell ====== <code sh> $BASH_VERSION -> La version de Bash installée sur le système $DIRSTACK -> La valeur du dessus de la pile de r... script lui-même $$ -> Identifiant du processus du script lui-même </code> {{tag>bash variable shell}}
redirection @scripts
4 Occurrences trouvées, Dernière modification :
ve 9, since you may collide with file descriptors Bash uses internally. ===== Redirecting output ===... uivalent** to <code> > TARGET 2>&1 </code> Since Bash4, there's ''&<nowiki>>>TARGET</nowiki>'', which i... n is unknown, but it seems to be done on purpose. Bash 4 introduced a warning message when end-of-file i... '', to hide it), this is **the wrong way**: <code bash> # { echo OUTPUT; echo ERRORS >&2; } is to simula
color @terminal
4 Occurrences trouvées, Dernière modification :
true color: "888" colors (aka 16 milion)\\ <code bash> printf "\x1b[${bg};2;${red};${green};${blue}m\n"... e color itself. This is a good test case: <code bash> printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n" ... then it indicates truecolor is supported. <code bash> $ (echo -e '\e[48:2:1:2:3m\eP$qm\e\\' ; xxd) ^[... nal emulator for the 21st century.\\ - Windows 10 bash console, since [Windows Insiders build 14931](h
backup @debian
3 Occurrences trouvées, Dernière modification :
script.sql ==== SHOW DATABASES; Puis le script bash que vous donnerez à manger à un cron. #!/bin/bash # ## on se place dans le repertoire ou ... presses ===== $ rm ${i}_`date +%D | sed 's;/;-;g'`.sql done {{tag>bash backup }}
iptables @debian
3 Occurrences trouvées, Dernière modification :
check-script @scripts
3 Occurrences trouvées, Dernière modification :
screen @debian
2 Occurrences trouvées, Dernière modification :
astuces @debian
1 Occurrences trouvées, Dernière modification :
bashrc @debian
1 Occurrences trouvées, Dernière modification :
commandes @debian
1 Occurrences trouvées, Dernière modification :
cron @debian
1 Occurrences trouvées, Dernière modification :
interfaces @debian
1 Occurrences trouvées, Dernière modification :
sec @debian
1 Occurrences trouvées, Dernière modification :
tips @debian
1 Occurrences trouvées, Dernière modification :
utiles @debian
1 Occurrences trouvées, Dernière modification :
dnssec @network
1 Occurrences trouvées, Dernière modification :
flac2mp3 @scripts
1 Occurrences trouvées, Dernière modification :