nerdexam
GIAC

GSNA · Question #9

You work as the Network Administrator for XYZ CORP. The company has a Unix-based network. You want to run a command that forces all the unwritten blocks in the buffer cache to be written to the…

The correct answer is D. sync. The sync command is used to flush filesystem buffers. It ensures that all disk writes have been completed before the processor is halted or rebooted. Generally, it is preferable to use reboot or halt to shut down a system, as they may perform additional actions such as…

Linux/Unix System Auditing

Question

You work as the Network Administrator for XYZ CORP. The company has a Unix-based network. You want to run a command that forces all the unwritten blocks in the buffer cache to be written to the disk. Which of the following Unix commands can you use to accomplish the task?

Options

  • Aswapon
  • Btune2fs
  • Cswapoff
  • Dsync

How the community answered

(43 responses)
  • A
    2% (1)
  • B
    5% (2)
  • C
    12% (5)
  • D
    81% (35)

Explanation

The sync command is used to flush filesystem buffers. It ensures that all disk writes have been completed before the processor is halted or rebooted. Generally, it is preferable to use reboot or halt to shut down a system, as they may perform additional actions such as resynchronizing the hardware clock and flushing internal caches before performing a final sync. Answer: B is incorrect. In Unix, the tune2fs command is used to adjust tunable filesystem parameters on the second extended filesystems. Answer: A is incorrect. In Unix, the swapon command is used to activate a swap partition. Answer: C is incorrect. In Unix, the swapoff command is used to de-activate a swap partition.

Topics

#sync command#buffer cache#disk write#Unix commands

Community Discussion

No community discussion yet for this question.

Full GSNA Practice