nerdexam
GIAC

GSNA · Question #303

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux- based network. John is working as a root user on the Linux operating system. He is configuring the Apache…

The correct answer is B. set +o history. According to the scenario, John can use the set +o history command to disable history. Answer: D is incorrect. John cannot use the set -o history command to accomplish his task. This command is used to enable disabled history. Answer: A is incorrect. John cannot use the history…

Linux/Unix System Auditing

Question

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux- based network. John is working as a root user on the Linux operating system. He is configuring the Apache Web server settings. He does not want the commands being used in the settings to be stored in the history. Which of the following commands can he use to disable history?

Options

  • Ahistory !!
  • Bset +o history
  • Chistory !N
  • Dset -o history

How the community answered

(24 responses)
  • A
    8% (2)
  • B
    79% (19)
  • C
    8% (2)
  • D
    4% (1)

Explanation

According to the scenario, John can use the set +o history command to disable history. Answer: D is incorrect. John cannot use the set -o history command to accomplish his task. This command is used to enable disabled history. Answer: A is incorrect. John cannot use the history !! command to accomplish his task. This command is used to see the most recently typed command. Answer: C is incorrect. John cannot use the history !N command to accomplish his task. This command is used to display the Nth history command.

Topics

#bash history#shell configuration#Linux security#Apache hardening

Community Discussion

No community discussion yet for this question.

Full GSNA Practice