What is a shell?
The Command Line Interface (CLI) or Text User Interface (TUI) that administrators use to control a Linux operating system. Users and programs use the shell to send commands to the system. A shell might be opened inside a Graphical User Interface (GUI), or might be the sole method used to run the computer.
What are the common shells?
Features of bash
Features of sh
sh - The Bourne shell - An earlier version of the Bash shell, and is similar in many ways. Sh is the original shell created by Steve Bourne.
Features of ksh
ksh - The Korn shell - Developed by David Korn. Ksh has scripting features not found in bash.
Features of csh
csh The C-shell - Uses syntax similar to syntax used in the C programming language.
Features of tcsh
tcsh - The TC shell - An improved version of csh. It offers command line editing and completion features not available with csh.
Common characteristics of all shells
How do you get into the shell?
What is the difference between how a Linux shell recognizes the path to executable programs compared to how a DOS environment recognizes the path?
How can you execute commands that are not in the PATH environment variable?
How can you execute commands in the current working directory?
Prefix the command with a “dot-slash” (./)
What types of items can Tab complete be used to complete once you start typing the entities’ name?
Files and directories.
What is tab-completion?
A shell feature that gives you the ability to type part of a filename and then have the shell complete the filename (or provide a list of matching suggestions) by hitting the tab key.
How does command history work?
Every time you enter a command, that command is written to a hidden file in your home directory. You can access previous commands with the up- and down-arrow keys.
What common commands are used to navigate through shells?
Which file contains the history of shell commands?
~/.bash_history
What does the tilde symbol (~) in the command prompt represent?
The tilde symbol (~) in the prompt indicates the present working directory is the home directory of the current user.
What is the command path?
The set of directories in which Linux searches to find executable files for the commands typed into the shell prompt:
How do you execute programs in the shell?
Are filenames and paths case-sensitive?
Yes
How does tab-completion work?
Type the beginning of the name, then press Tab to complete a file, command, or directory name. (Press Tab twice if there is more than one possible file, command, or directory name.)
How do you recall the previous command and scroll through all previous commands?
Press the up arrow at the command prompt to print the last command. Press it again to scroll through all previous commands.
What does the pwd command do?
Shows the present working directory.