info:bash

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
info:bash [2018/06/26 15:39] – [espace blanc dans le bash?] radeffinfo:bash [2026/01/16 07:52] (Version actuelle) – [Doc] radeff
Ligne 1: Ligne 1:
-====== Bash ======+====== Bash / Terminal / Console / Konsole ======
 (acronyme de Bourne-Again shell) est un interpréteur en ligne de commande de type script. C'est le shell Unix du projet GNU (acronyme de Bourne-Again shell) est un interpréteur en ligne de commande de type script. C'est le shell Unix du projet GNU
  
-voir aussi: [[info:unix|*nix (linux/unix)]] +voir aussi: [[info:linux|*nix (linux/unix)]]
-====== Doc ====== +
-===== Bash Keyboard Shortcuts =====+
  
-Moving the cursor:+//note Fred: all the linux's magic is in bash!// 
 +===== maitriser-conditions-bash ===== 
 +    * http://buzut.developpez.com/tutoriels/maitriser-conditions-bash/ 
 +    * https://radeff.red/dokuwiki/doku.php/info:bash
  
-  Ctrl + a   Go to the beginning of the line (Home) +===== Doc =====
-  Ctrl + e   Go to the End of the line (End) +
-  Ctrl + p   Previous command (Up arrow) +
-  Ctrl + n   Next command (Down arrow) +
-   Alt + b   Back (left) one word +
-   Alt + f   Forward (right) one word +
-  Ctrl + f   Forward one character +
-  Ctrl + b   Backward one character +
-  Ctrl + xx  Toggle between the start of line and current cursor position +
- +
-Editing: +
- +
- Ctrl + L   Clear the Screen, similar to the clear command +
- +
-  Alt + Del Delete the Word before the cursor. +
-  Alt + d   Delete the Word after the cursor. +
- Ctrl + d   Delete character under the cursor +
- Ctrl + h   Delete character before the cursor (Backspace) +
- +
- Ctrl + w   Cut the Word before the cursor to the clipboard. +
- Ctrl + k   Cut the Line after the cursor to the clipboard. +
- Ctrl + u   Cut/delete the Line before the cursor to the clipboard. +
- +
-  Alt + t   Swap current word with previous +
- Ctrl + t   Swap the last two characters before the cursor (typo). +
- Esc  + t   Swap the last two words before the cursor. +
- +
- ctrl + y   Paste the last thing to be cut (yank) +
-  Alt + u   UPPER capitalize every character from the cursor to the end of the current word. +
-  Alt + l   Lower the case of every character from the cursor to the end of the current word. +
-  Alt + c   Capitalize the character under the cursor and move to the end of the word. +
-  Alt + r   Cancel +
-===== Web =====+
   * [[http://blog.wescale.fr/2016/04/07/bash-pro-tips/| Bash : Pro tips]]   * [[http://blog.wescale.fr/2016/04/07/bash-pro-tips/| Bash : Pro tips]]
-  * [[http://buzut.developpez.com/tutoriels/maitriser-conditions-bash/|Maîtriser les conditions en bash]] ({{ :info:maitriser-condition-bash.epub |epub}}) +  * [[http://buzut.developpez.com/tutoriels/maitriser-conditions-bash/|Maîtriser les conditions en bash]] ({{ info:maitriser-condition-bash.epub |epub}}) 
-  * [[http://redsymbol.net/articles/unofficial-bash-strict-mode/|Use the Unofficial Bash Strict Mode (Unless You Looove Debugging)]] +  * [[http://redsymbol.net/articles/unofficial-bash-strict-mode/|Use the Unofficial Bash Strict Mode (Unless You Looove Debugging)]]  
-===== Books ===== +  * [[bash_gnome-terminal|force a bash script on a localhost to remain open]] 
-  * [[http://tldp.org/LDP/abs/html/|Advanced Bash-Scripting Guide]] +  * [[bash_loop]] Script to automatically backup files using simple FTP 
-  * [[http://tldp.org/LDP/Bash-Beginners-Guide/html/|Bash Guide for Beginners]] +  * [[image_delete.sh]]remove image from download, tmp and desktop directories with a bash loop array 
-  * Shell Scripting: Expert Recipes for Linux, Bash, and More, Parker & Steve +  * [[info:lowercase|bash: convertir une chaîne de caratères en minuscules (lowercase)]] 
-  * SoulardHervé: Le shell bash+  * [[info:uppercase|bash: convertir une chaîne de caratères en majuscules (uppercase)]] 
 +  * [[bash loop]] 
 +  * [[shai|shaiintelligence artificielle dans bash]]
  
-{{:info:518mjjrqqtl._sx346_bo1_204_203_200_.jpg?direct|}} 
  
-====== Tips ====== +====== Softs ====== 
-   +https://doc.ubuntu-fr.org/terminal 
-===== espace blanc dans le bash? ===== +===== shellcheck ===== 
-si vous avez un espace blanc après l'autocompletionc'est sans doute lié à *"/(&"/)(=?@# acrobat... +shellcheck : Vérifier ses scripts shell (suggestions d'améliorationscorrections sécurité etc)
  
-//terminal autocompletion adds space after "cp" target folder using Tab//+    apt install shellcheck
  
-solution:+https://www.linuxtricks.fr/wiki/shellcheck-verifier-ses-scripts-shell    
  
-sudo rm /etc/bash_completion.d/acroread.sh +===== Voir aussi ===== 
- +  [[info:lsdirnocolors|désactiver la couleur de background avec la commande "ls"]]
-voir +
- +
-https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/768876   +
- +
- +
-[[bash_gnome-terminal|force a bash script on a localhost to remain open]] +
- +
-[[bash_loop]] Script to automatically backup files using simple FTP +
- +
-[[image_delete.sh]]remove image from download, tmp and desktop directories with a bash loop / array +
- +
-[[info:lowercase|bash: convertir une chaîne de caratères en minuscules (lowercase)]] +
- +
-[[info:uppercase|bash: convertir une chaîne de caratères en majuscules (uppercase)]] +
- +
-[[bash loop]] +
- +
-====== Softs ======+
  
  • info/bash.1530020381.txt.gz
  • Dernière modification : 2018/06/26 15:39
  • de radeff