2. UNIXUNIX
an OS built at AT&T's Bell Labs
OS = Shell + Kernel
linux is a unix clone -
Shell = user@devbox:~$
POSIX
3. SHELLSSHELLS
- the most common
+ - the one we all love
- sane defaults
...
this talk is on /bin/bash
bash
zsh oh my zsh
fish
4. $HISTORY$HISTORY && <Tab><Tab>
COMPLETIONCOMPLETION
▲ - very familiar.
^r - search history *as many times needed
!! - last command in history
!20 & !-2 - exec 20th & 2nd last command in
history
vi !$ (or) <Esc> . - fill the last arg of prev comm
<Tab> and <Tab><Tab>
5. $FILE$FILE OPSOPS
find /folder/path -type f -print - find
by file type
find /folder/path -name *.js -print -
find by file type
find /folder/path -size +50M -print -
find by file type
head & tail
cat
touch