Skip to content

This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!


Bash is a command line shell/programming language (written by Brian Fox for the GNU Project). Its name alludes to its predecessor, the long deprecated Bourne shell. Bash can be run on most Unix like operating systems, including GNU/Linux. Bash is the default command line shell on most GNU/Linux distributions.


Table of contents

Bash tips

  • Ctrl-R: reverse search
  • Ctrl-S: forward search
  • Ctrl-U: clean line (also work when entering passwords)
  • Ctrl-L: clean terminal
  • Ctrl-A: move cursor at the beginning of the line
  • Ctrl-C: cancel current line

Bash scripts references

If this cheat sheet has been useful to you, then please consider leaving a star here.