Shared Flashcard Set

Details

101-500 (LPIC-1) Chapter 1
Exploring the Command-Line (Understanding the Basics)
22
Computer Networking
Professional
06/03/2020

Additional Computer Networking Flashcards

 


 

Cards

Term
What are the shells that are discussed?
Definition
Bash, Dash, KornShell, tcsh, Z shell
Term
What is the original location of shell?
Definition
/bin/sh (symbolic links used today)
Term
How do you show which shell is being used?
Definition
readlink /bin/sh and/or echo $SHELL
Term
How do you determine which version of a shell is being used?
Definition
echo $SHELL_VERSION
Term
How do you determine which version of a shell is being used?
Definition
echo $SHELL_VERSION
Term
How do you determine which Linux kernel is being used?
Definition
uname -r (remember "revision")
Term
How can you get detailed information about the Linux kernel being used?
Definition
uname -a (remember "all")
Term
Name the BASH metacharacters
Definition
*, ?, [], ', ", \ , $ , ;, &, (), |, ^, <>
Term
Which technique is employed to use
a single metacharacters as regular characters?
Definition
Shell quoting via a backslash
Term
How is shell quoting performed on multiple metacharacters?
Definition
Use double quotes (Is Bobby's cat alive or dead?) note the ' and ?
Term
Which command allows you to determine if a command is internal(built-in) external?
Definition
type
Term
What commands display active environment variables?
Definition
set
Term
What commands display active environment variables?
Definition
set, env and printenv
Term
What command searches the PATH directories to locate a program?
Definition
which (example: which cat = /usr/bin/cat)
Term
What is the variable that allows you to change your prompt?
Definition
PS1 (Example: PS1="My Prompt")
Term
How can you determine if your process is running in a subshell?
Definition
Use the $SHLVL enviroment variable
Term
How can you preserve environment variables?
Definition
export (export PS1="My Prompt")
Term
How can you reverse modifications to variables?
Definition
unset
Term
The more and less commands are examples of what type of utility?
Definition
pager
Term
What command allow you to view recent commands?
Definition
history (using the numbers you can type ! and it will execute that command or !! and it will execute the last command)
Term
How do you view the history filename?
Definition
echo $HISTFILE
Term
What does the "^" caret symbol mean in the nano interface?
Definition
Denote that the CRTL key has to be pressed
Supporting users have an ad free experience!