nerdexam
LPI

117-102 · Question #214

You find you execute a series of commands on a recurring basis. You want this series of commands available from your login to run in the current shell. Choose the best solution:

The correct answer is B. create a function. See the full explanation below for the reasoning.

Question

You find you execute a series of commands on a recurring basis. You want this series of commands available from your login to run in the current shell. Choose the best solution:

Options

  • Acreate a shell program
  • Bcreate a function
  • Cuse the up arrow in BASH to find the command
  • Duse BASH's built-in ! function to run the last iteration of the command by the same name

How the community answered

(48 responses)
  • A
    13% (6)
  • B
    75% (36)
  • C
    4% (2)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full 117-102 Practice