LPIC-1 102-500 Exam · Objective 105.2

Parsing short options

105.2Standard

Parse -n NAME and -v in a Bash script, declaring that -n requires an argument.

Which getopts invocation is appropriate?

Parsing short options · Answer choices
Question IDKP-105-633
EnvironmentGNU Bash 5.2 / Bash組込みgetopts
Last technical review2026-08-13
Report an error or rights issue
Progress and questions

Path & Pass is an independent learning site and is not affiliated with any certification body. Questions are original practice content based on published objectives.