🎴 Flashcard Mode
Unix/Linux Commands and Shell Scripting
Card1 / 20
Mastered0
Review0
QuestionClick to flip
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
AnswerClick to flip back
A
fc -e -r p
💡 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.