Linux Command Line Flashcards
“Up arrow” or “down arrow”
Scrolls through previous commands
[username@machinename ]$
Shell prompt
Terminal emulator
Program that interacts with the shell
Shell
Passes keyboard commands to the OS
Terminal emulator
A program used to interact with the shell in a GUI environment
Graphical user interface (GUI)
Image driven Windows-like interface
“Bash”
The shell for most Linux distributions (“Born-again shell)
Shell prompt
What appears in the terminal when a prompt is ready to be entered
”#” vs. “$”
”#” is super user and “$” is root user
date
Command that shows date and time
cal
Command that shows the calendar of the current month
df
Command that shows the amount of free space on the drives [“Drivespace Free”]
free
Command that shows the amount of free memory
exit
Command that ends the terminal session by closing the terminal window
Hierarchical directory structure
The tree-like ordering of directories (files)
Root directory
The first directory in the file system
Mounted
Attached storage devices
System administrator
Person responsible for maintaining the system
ls
Command that lists the contents of a directory
cd
Command used to change directory (such as cd /user/bin)
Absolute pathname
Gives the full path to a given directory
Relative pathname
Path that starts with the working directory
Current working directory
The directory in which currently located
Parent directory
The directory above the current working directory
Home directory
The directory arrived at when logging in
pwd
Command that shows the current working directory (“print working directory”)
cd ..
Changes directory to the parent directory
cd .
Changes directory to whatever in the working directory
What are filenames that begin with a period?
Hidden
Are Linux commands case sensitive?
Yes
What should NOT be used in file names?
Spaces
What does the “cd” command by itself do?
Changes from working directory to home directory
cd -
Changes to previous working directory
cd~ user_name
Changes to the home directory of the user
~
User’s home directory
Can multiple directories be shown with the “ls” command?
Yes. Example:
ls ~ /usr
What “ls” command options list all files, even hidden files?
-a
–all
What “ls” command options list all files except . and .. ?
-A
–almost-all
What “ls” command option gives the long format?
-l