Bash / Terminal
(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: *nix (linux/unix)
note Fred: all the linux's magic is in bash!
Doc
Bash Keyboard Shortcuts
Moving the cursor:
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
Books
- Shell Scripting: Expert Recipes for Linux, Bash, and More, Parker & Steve
- Soulard, Hervé: Le shell bash
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
force a bash script on a localhost to remain open
bash_loop Script to automatically backup files using simple FTP
image_delete.shremove image from download, tmp and desktop directories with a bash loop / array
bash: convertir une chaîne de caratères en minuscules (lowercase)
bash: convertir une chaîne de caratères en majuscules (uppercase)
Softs
https://doc.ubuntu-fr.org/terminal
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
- inconsolata