Question
Rohan covered first half of his journey at 32 km/h and
other half at 48 km/h. Find his average speed throughout the journey.Solution
Average speed = {(32 x 48 x 2) ÷ (32 + 48)} = 38.4 km/h
Which command displays the manual page for another command?
Which operator is used for string equality comparison within `test` or `[` commands in shell scripting?
In shell scripting, how do you assign the string "Hello World" to a variable named `MESSAGE`?
Which symbol is used for logical AND in shell scripting?
Which command is used to display the contents of a file in Linux?
Which symbol is used to comment a single line in shell scripts?
How can you pass command-line arguments to a shell script?
Which construct allows embedding a block of text in shell scripts as input?
In shell scripting, which symbol is used to redirect the standard output to a file, overwriting its contents?
Which command is used to check the current working directory in Linux?