Shell Workshop Flashcards
Shell
Simply the outermost layer of an operating system. Designed to provide a way for you to interact with the tools and services that your operating system provides
Terminal
Program we use to interact with the shell
GUI
Graphical User Interaface
Graphical Shells (GUI)
Interact with the OS with things like windows and buttons
Text Shell
Uses text commands to interact with the OS, called a command line interface (CLI)
BASH
One of the most widely used shells
ls
List contents of the current directory
cd
Change directory
cd ..
Go up one directory (to the parent)
ls ..
List the contents of the parent directory
pwd
Print working directory (whatever directory the shell is currently looking at)
ls .
Lists the working directory (current directory)
ls ~
Lists the home directory
Relative Path
The path relative to the directory you are currently on
Absolute Path
The path relative to the home directory (full path)
ls -l
Detailed list (long format)
ls *(path)
Lists all files whose name match some pattern end
ls (name)*
Lists all files whose names start with some term
ls (name)
Lists all files whose name contains some term (middle)
mkdir
Make a directory. Ex mkdir Documents/Books
mv
Move from and to Ex. mv Documents/*.txt Documents/Books
curl ‘URL’
See URL
curl -L ‘URL’
See source code for webpage. Following redirects
curl -L -o some_file.html ‘URL’
Redirect and output to file (-o) to some_file.html at ‘URL’