Linux Questions & Answers – Shell Environment – 2

This set of Linux / Unix questions and answers focuses on Linux administration for Experienced people on Linux Shell Environment. It will be useful for anyone learning Linux Basics, Essentials and Shell programming.

1. If a file with execute permissions set, but with unknown file format is executed
a) The file is passed to /bin/sh
b) The system returns an error
c) The current shell will try to execute it
d) None of the mentioned
View Answer

Answer: c
Explanation: None.

2. Which of the following is true?
a) Shell is a process and can be started by superuser only
b) Shell is a built-in Kernel functionality
c) Shell is a wrapper for all the commands and utilities
d) None of the mentioned
View Answer

Answer: c
Explanation: None.

3. Which is true with regards to the shell prompt
a) It can be accidentally erased with backspace
b) The prompt cannot be modified
c) The prompt can be customized (modified)
d) None of the mentioned
View Answer

Answer: c
Explanation: None.
advertisement
advertisement

4. What is a shell in UNIX?
a) a program through which users can issue commands to UNIX
b) a window management system
c) the login screen
d) the thing that rides on the back of a turtle in UNIX
View Answer

Answer: a
Explanation: None.

5. Which of the following represents an absolute path?
a) ../home/file.txt
b) bin/cat
c) cs2204/
d) /usr/bin/cat
View Answer

Answer: d
Explanation: None.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. The user bhojas logged in and performed the following sequence of command. What will be the output of the last command?
$ cd project/module1
$ pwd
a) /home/bhojas/project/module1
b) /home/project/module1
c) /usr/bhojas/project/module1
d) project/module1
View Answer

Answer: a
Explanation: None.

7. BASH shell stands for?
a) Bourne-again Shell
b) Basic Access Shell
c) Basic to Advanced Shell
d) Big & Advanced Shell
View Answer

Answer: a
Explanation: None.
advertisement

8. Which of the following files will not be displayed by the command cat re* ?
a) reminder
b) receipt
c) Receipt
d) recipe-cake
View Answer

Answer: c
Explanation: None.

Sanfoundry Global Education & Learning Series – Linux Administration & Programming.

advertisement

Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.