linux shell notes

Linux

Basic Control Shortcut Keys


  • CTRL-A : move cursor to beginning of line

  • CTRL-E : move cursor to end of line

  • CTRL-F : move cursor forward one character

  • CTRL-B : move cursor backward one character

  • CTRL-L : clear the screen

  • CTRL-D : delete character

  • CTRL-T : exchange character with previous one

  • CTRL-K : cut characters from cursor to end of line

  • CTRL-U : cut characters from beginning of line to cursor

  • CTRL-Y : paste characters

Basic Bash Syntax


Variables, Numbers, Strings & Arrays

  • Create variables:
1
2
3
$ var_a="hello, world"
$ echo $var_a
hello, world

Braches

Loops

Functions

IO & Pipelines

Positional parameters

Wildcards, Expansion & Quoting

Frequently Used Commands


Others


Reference