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 [2022/08/07 08:14] radeffinfo:bash [2026/01/16 07:52] (Version actuelle) – [Doc] radeff
Ligne 1: Ligne 1:
-====== Bash / Terminal ======+====== 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)]]
  
 //note Fred: all the linux's magic is in bash!// //note Fred: all the linux's magic is in bash!//
-====== Doc ====== +===== maitriser-conditions-bash ===== 
-===== Bash Keyboard Shortcuts =====+    * http://buzut.developpez.com/tutoriels/maitriser-conditions-bash/ 
 +    * https://radeff.red/dokuwiki/doku.php/info:bash
  
-Moving the cursor: +===== Doc =====
- +
-  Ctrl + a   Go to the beginning of the line (Home) +
-  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 ====== 
-   
-===== espace blanc dans le bash? ===== 
-si vous avez un espace blanc après l'autocompletion, c'est sans doute lié à *"/(&"/)(=?@# acrobat...  
- 
-//terminal autocompletion adds space after "cp" target folder using Tab// 
- 
-solution: 
- 
-sudo rm /etc/bash_completion.d/acroread.sh 
- 
-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 ====== ====== Softs ======
Ligne 90: Ligne 30:
  
 https://www.linuxtricks.fr/wiki/shellcheck-verifier-ses-scripts-shell     https://www.linuxtricks.fr/wiki/shellcheck-verifier-ses-scripts-shell    
-===== xfce4-terminal ===== 
- 
- 
-https://docs.xfce.org/apps/terminal/start 
-===== terminator ===== 
-Terminator est un terminal virtuel qui a la particularité de permettre de partager la fenêtre selon vos envies et ainsi organiser plus simplement vos différentes fenêtres.  
- 
-https://doc.ubuntu-fr.org/terminator 
- 
-===== konsole ===== 
-le terminal de KDE 
- 
-  *     signets + dossiers avec onglets 
-  *     https://userbase.kde.org/Konsole 
-  *     https://www.wisdomjobs.com/e-university/shell-scripting-tutorial-174/the-konsole-terminal-2938.html 
-  *     https://userbase.kde.org/Tutorials/Open_a_console/fr 
-  *     https://userbase.kde.org/Konsole/fr 
-  *     https://docs.kde.org/stable5/en/applications/konsole/index.html 
-  *     inconsolata 
  
 +===== Voir aussi =====
 +  * [[info:lsdirnocolors|désactiver la couleur de background avec la commande "ls"]]
  
  • info/bash.1659852899.txt.gz
  • Dernière modification : 2022/08/07 08:14
  • de radeff