Command Line Interface Flashcards
prompt
Prompt when logged in as root
$ prompt
Prompt when logged in as a regular user
exit
Logs the user off
clear
Clears the screen
pwd
Print working directory. Shows the current path.
/
Root location on the drive
/home
Where user home accounts live.
ls
Lists contents of current folder. Doesn’t show hidden files or attributes without flags.
ls -a
Lists all files, including hidden (‘all’) files.
Flag -a shows hidden files
ls –help
Shows possible flags/modifiers for the ls command
ls -l
Lists files in long format.
-l flag shows more information about each file, including permissions, file size, modified date.
ls -la
Lists all files, including hidden files, with detailed information
bash
Bourne again shell. The default shell.
sh
Bourne shell. Earlier version of bash.
ksh
Korn shell. Developed by David Korn. Has scripting features that are not found in bash
csh
C shell. Uses a syntax that is similar to the syntax used in the C programming language
tsch
An improved version of csh. It offers commandline editing and completion features not available with csh.
Where is the list of available shells stored?
/etc/shells
bash
The Bourne again shell. The standard shell on most Linux computers.
ash
The Bourne shell. Earlier version of bash.
ksh
Korn shell, developed by David Korn. Has scripting features not present in bash.
csh
C shell. Syntax similar to the c programming language.
tsch
Improved version of csh. Offers command line editing and completion features not available in csh.
Where can you find a list of shells?
/etc/shells
What is the command path?
The set of directories in which Linux searches to find executable files
Does the command path include the present working directory?
No
How can you see the command path?
echo $PATH