Which built-in variable in a shell script would you use to determine the number of positional parameters?
- $#
- $@
- $*
- $$
To determine the number of positional parameters passed to a shell script, you would use the built-in variable $#. It represents the count of arguments supplied to the script.
Loading...
Related Quiz
- Which phase of the Linux boot process is responsible for hardware detection and initial setup?
- In the context of package management, what does the term "repository" refer to?
- In Linux, user-specific configuration files, sometimes starting with a dot (.), are typically located in the _________ directory.
- The ___________ file in Linux contains user account information, including UID and GID.
- When partitioning a disk, what is the primary partition limit on an MBR disk?