Multiple choice technology operating systems

A user types history command and gets the following output
141 cd .tcs
142 ll tcs.lst
143 pwd
144 vi tcs.lst
145 ll -lrt | awk '{ print \$NF }'
146 echo "Test"
147 ps -ef | grep lsnr
148 grep a *
149 ls
150 echo \$PWD

Refering to the scenario above, which one of the following is not a method for recovering the pwd command

  1. r 143

  2. fc -e -r p

  3. fc -e 143

  4. r -8

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The fc command in Korn/Bash shells controls the history list. The option -r reverses the order of execution, and -e specifies an editor. fc -e -r p is not a valid syntax to recover the pwd command (history item 143), whereas the other options are valid history recall methods.