Lesson 2: The Shell and Simple Commands
Objectives
- Define and describe what a command is
- Describe the general command syntax including options and arguments
- Outline the services of the command-line shell (bash)
- Identify specific characters that have special meaning to the shell
and define their meaning
- Use the man pages to look up the usage of various UNIX/Linux commands
- What is Software?
- Programs
- Instructions
- Data
- Data files
- Text (ASCII)
- Binary (data)
- Input
- Keyboard
- Command Line
- Files on disk
- The kernel
- Output
- Terminal screen
- Files on disk
- Another program
- Command Syntax
Command [-options...]... [arguments...]
- Command
- Options
- Arguments
- The Shell
- Environment Variables
- PATH
- TERM
- PS1
- HOME
- Life of the Shell
- Prompt the user for a command: $
- Read the keyboard for the command line typed by the user.
- Parse the command into tokens.
- Search for the command.
- Execute the command passing along any options and arguments.
- Take a nap, until the command is done executing.
- Repeat
- Special Metacharacters
- <cr>
- $
- double quote (") or single quote (')
- ;
- \
- The man Command
- Description
- Syntax
- Options
- Environment
- Author
- Bug Reports
- See Also