Special characters in Linux

Special characters in Linux

1. Any # character in Linux ________.

... Answer is A) starts a comment, ignored by shell script

2. The * character in Linux ________.

... Answer is B) matches all characters

3. The? Character in Linux _________.

... Answer is C) matches any single character

4. The > character in Linux ________.

... Answer is D) sends output to a new file

5. The >> character in Linux __________.

... Answer is D) appends output to a file

6. The | character in Linux __________.

... Answer is A) sends output of left side program to the input of right side program

7. The $? Character in Linux __________.

... Answer is A) stores exit status of previous command

8. The & character placed at the end of command line in Linux __________.

... Answer is C) sends to process to the background

9. The - character in Linux ________.

... Answer is B) denotes standard input

10. The ~ character in Linux __________.

... Answer is A) denotes home directory

11. The [[...]] sequence in Linux _________.

... Answer is A) tests the enclosed condition

12. The! Sequence in Linux _________.

... Answer is C) negates given condition

13. The && sequence in Linux _________.

... Answer is D) runs the right side process only if the left side process succeeds

14. The || sequence in Linux __________.

... Answer is C) runs the right side process only if the left side process fails

Post a Comment

If you have any doubts,Please let me know

Previous Post Next Post
close