Question
Which character is used to denote a single-line comment in a shell script?
More Shell Scripting Questions
- What is the primary purpose of the "shebang" line `#!/bin/bash` at the beginning of a shell script?
- In a POSIX shell script, which construct correctly tests whether variable x is an empty string?
- Which construct replaces a command with its output in a POSIX shell?
- Which operator is used for string equality comparison within `test` or `[` commands in shell scripting?
- Which command is used to display the number of lines in a file?
- Which signal is sent by default when using kill without arguments?
- In shell scripting, how do you assign the string "Hello World" to a variable named `MESSAGE`?
- What is the exit status code of a successfully executed command in Linux shell?
- What does the exit command do in a shell script?
- What will be the output of the following script snippet? for item in Apple Banana Cherry; do echo $item done
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)