Which command should you run to view the file format information for /etc/fstab?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

Which command should you run to view the file format information for /etc/fstab?

Explanation:
You view a file’s documented format by using the manual pages in the section that covers file formats and conventions. For /etc/fstab, the relevant page is the file-format description, so you should run the manual command with the appropriate section number: man 5 fstab. This pulls up the fstab page that explains the six fields per line, their meaning, and the allowed values, which is exactly what you need to understand the file’s structure and how to edit it safely. The other options point to manual pages about unrelated topics (like the cron table, password file, or group file), so they won’t describe the /etc/fstab file format.

You view a file’s documented format by using the manual pages in the section that covers file formats and conventions. For /etc/fstab, the relevant page is the file-format description, so you should run the manual command with the appropriate section number: man 5 fstab. This pulls up the fstab page that explains the six fields per line, their meaning, and the allowed values, which is exactly what you need to understand the file’s structure and how to edit it safely. The other options point to manual pages about unrelated topics (like the cron table, password file, or group file), so they won’t describe the /etc/fstab file format.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy