Chapter 2 - Access the Command Line Flashcards
Shell
The interpreter that executes commands that are typed as string
Prompt
The visual cue that indicates that an interactive shell is waiting for the user to type a command
Command
The name of a program to run
Option
The part of the command line that adjusts the behavior of a command
Argument
The part of the command line that specifies the target that the command should operate on
Physical Console
The hardware display & keyboard to interact w/ a system
Virtual Console
One of multiple logical consoles that can each support an independent login session
Terminal
An interface that provides a display for output & a keyboard for input to a shell session
“tail -n 5 /var/log/messages”
Displays the last five lines of the /var/log/messages file
Semicolon ;
Separates commands on the same line
“passwd”
Used to change a user’s password
“file”
Displays the file type
Pressing Tab
Completes commands, file names, & options
“!number”
Re-executes a specific command in the history list
Ctrl+A
Jumps to the beginning of the command line
“history”
Displays the list of previously executed commands
Esc+
Copies the last argument or previous commands
Contains persistent, system-specific configuration data
/etc
is the top of the system’s file-system hierarchy
/
contains user home directories
/home
contains files to boot the system
/boot
contains system files to access hardware
/dev
is the administrative superuser’s home directory
/root
contains regular commands & utilities
/usr/bin
contains non-persistent process runtime data
/run
contains installed software programs & libraries
/usr
a world-writable space for temporary files
/tmp
system-specific variable data should persist b/t boots
/var
displays the full path name of the current working directory for that shell
“pwd”
lists directory contents for the specified directory, or, if no directory is given, for the current working directory
“ls”
change your shell’s current working directory
“cd”
changes to the previous directory, where the user was previously to the current directory
“cd -“
uses the hidden directory to move up one level to the parent directory w/o needing to know the exact parent name
“cd ..”
specifies the current directory on commands where the current location is either the source or destination argument
“cd .”
displayed when your current working directory is your home directory
”~”
updates the time stamp of a file to the current date & time w/o otherwise modifying it
“touch”
long listing format
“ls -l”
all files, including hidden files
ls -a”