adplus-dvertising
frame-decoration

Question

When we use &&, the second command is executed only when first succeeds.

a.

True

b.

False

c.

May be

d.

Can't say

Posted under Shell Programming UNIX

Answer: (a).True

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. When we use &&, the second command is executed only when first succeeds.

Similar Questions

Discover Related MCQs

Q. When we use ||, both the commands are executed.

Q. The syntax for using && is ______________

Q. To perform decision depending on the fulfilment of certain criteria, ____ is used.

Q. Every if is closed with a corresponding ____

Q. To check more than two conditions, ___ is used with if-else statements.

Q. The name of the script is stored in which special parameter?

Q. Which of the following is not a special parameter used by the shell?

Q. To know the exit status of a command, we can use ____

Q. Which one of the following option is used for checking that the string is not null?

Q. We can use test to test various file attributes.

Q. Which option is used for checking if the file exists or not?

Q. Which of the following option is used for checking if the file is readable or not?

Q. Which of the following option is used for checking if the file is writable or not?

Q. To check if the file exists and is executable we have to use ___ option with test.

Q. -d option is used for checking if the file exists and is a directory.

Q. ____ option is used for checking whether a particular file is older than a specified file.

Q. To check if two files are linked to each other, we can use -ef option.

Q. case statement should have a corresponding closing esac.

Q. The ___ option in case statement matches any option not matched by the previous options.

Q. case can also be used for matching multiple patterns.