- a command line interface (CLI)
- a textual user interace (TUI), as opposed to a graphical user interface (GUI)
- a window onto the shell
- middleman between user and kernel
- a command line interpreter that operates in a read-eval-print-loop; REPL
- basic form of a shell command $ commandname [-options] [arguments]
- example ls (list)
- aborting a shell command CTRL-C
- the bash (Bourne again) shell
- there are many kinds of shells; to find out which one you are using, type echo $SHELL
- every item in the UNIX (Linux) file system is either a directory (folder) or a file. Directories can contain files and other directories, files cannot.
- an inverted tree with the root (/) at the top
- start at / (notice the ambiguity of “/”)
- start in current working directory
- represented by a single dot (.)
- represented by two dots (..)
pwd
cd /
cd -
cd ~ (tilde)
cd <target directory>
ls
list the contents of the current working directory including the hidden files and directories
ls -a
ls -l
- cat <filename>
- less <filename>
- head <filename>
- tail <filename>
help pwd
man pwd