CompTia Linux+ Ch.7

Ace your homework & exams now with Quizwiz!

You have redirected Standard Error to a file called Errors. You view the contents of this file afterward and notice that there are six error messages. After repeating the procedure, you notice that there are only two error messages in this file. Why?

You did not append the Standard Error to the Error file and as a result, it was overwritten when the command was run a second time

what does >> accomplish?

appends standard output to a file

exported

before a user-defined variable can be used by processes that run in subshells, that variable must first be ________

How do you indicate a comment line a shell script?

begin the line with a #

alias

command can be used to make a shortcut to a single command

set command

command used to see a list of all environment and user-defined shell variables as well as their current value

read

construct which can be used in a shell script to read Standard Input and place it in a variable

fi

every construct begins with if and must be terminated with _____

etc/profile

file that is always executed immediately after any user logs in to a Linux system and receives a BASH shell

sed and awk commands

filter commands commonly used to format data within a pipe

cd /home/user1/ && echo "welcome home"

messaged displayed if the cd /home/user1 command is successfully executed

Standard Deviation, Standard Input

not necessarily generated by every command on the system

what is wrong with the following command: ls /etc/hosts>listofhostfile?

nothing is wrong with the command

1

represents stdout

!

reverses the meaning of a test statement

echo $HOME, echo~

this command displays the current value for the HOME variable

what would the effect of using the alias command to make an alias for the date command named cat in honor of your favorite pet?

when you use the cat command at the command prompt with the intention of viewing a text file, the date appears instead


Related study sets

HEART EKG DYSRYTHMIAS HEART BLOCK PACEMAKER

View Set

Practice Reading Chemical Formulas

View Set

Heavy duty diesel tech pollution prevention

View Set

Pharm Ch 27 General and Local Anesthetic Agents

View Set

Research Methods Chapter 14 review

View Set

ITP 100 Software Development Book/Quiz 1,2,3,4

View Set

BIOL 1030 Chapter 11 Homework Questions

View Set

Unit 5: Baking and Pastry Applications

View Set