• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/10

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

10 Cards in this Set

  • Front
  • Back
What will affect the following command?

ls -l /usr/bin >> /tmp/list.txt
> the contents of the /usr/bin directory will be redirected into a file called /tmp/list.txt, inserted before the previous contents of the file.
> the contents of the /usr/bin directory will be redirected into a file called /tmp/list.txt, inserted after previous contents of the file
> > the contents of the /usr/bin directory will be redirected into a file called /tmp/list.txt and then the contents of /tmp/list.txt will be output to the screen
>> the contents of the /usr/bin directory will be redirected into a file called /tmp/list.txt,overwriting the previous contents of the file
Which of the following commands sorts the contents of -wordlist1- and -wordlist2- and sends the result to standard output?
- cat /usr/wordlist1 >> /usr/wordlist2 | tee
- cat /usr/wordlist1 /usr/wordlist2 | sort
- cat /usr/wordlist1 > /usr/wordlist2 | sort
- cat /usr/wordlist1 | /usr/wordlist2 | sort
You are trying to debug a shell script called -myscript- and to aid you in this task you would like to have the output of the script be recorded in a text file. Which command would satisfy your requirements?
myscript | testfile.txt
echo myscript >> testfile.txt
myscript | echo | testfile.txt
myscript >> testfile.txt
Which command reads from standard input and writes to standard output -and- files?
?
Which of the following commands displays the contents of -wordlist1- and -wordlist2- then sorts the combined contents, then sends the results to the monitor and a file named -sortedwordlist-?
- cat /usr/wordlist1 /usr/wordlist2 | sort sortedwordlist
- cat /usr/wordlist1 /usr/wordlist2 | tee sortedwordlist
- cat /usr/wordlist1 /usr/wordlist2 | sort | tee sortedwordlist
- cat /usr/wordlist1 >> /usr/wordlist2 | sort sortedwordlist
You are trying to debug a shell script that has the command ls -s in it. You suspect an error is occurring here and want to sent the results of the operations (successful or error) to a file name -Friday- in order to examine it later. Which commands should you use?
ls -s> Friday 2>&1
ls -s >> Friday
ls -s > Friday
ls -s Friday
Which of the following commands will give the same results as
-cat < turbo-?
cat 2> turbo
cat turbo
cat> 1 turbo
cat 1$2> turbo
Which command overcomes the 128 KB shell command size restriction by breaking up long lists of arguments?
?
Which symbol uses the output of one command as the input of another command?
?
Which of the following commands redirects output to standard arror?
cat txtfile 2>&1
cat txtfile | tee 2
cat txtfile | 2
cat txtfile 1>&2