Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

1/31/24, 4:22 AM Linux Administration Questions and Answers for Experienced - Sanfoundry

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

Driving mobility
Answer: c READ MORE
sponsored by: Mitsubishi Electric
Explanation: None.
https://www.sanfoundry.com/linux-shell-environment-mcq-2/ 1/7
1/31/24, 4:22 AM Linux Administration Questions and Answers for Experienced - Sanfoundry

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
https://www.sanfoundry.com/linux-shell-environment-mcq-2/ 2/7
1/31/24, 4:22 AM Linux Administration Questions and Answers for Experienced - Sanfoundry

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

https://www.sanfoundry.com/linux-shell-environment-mcq-2/ 3/7
1/31/24, 4:22 AM Linux Administration Questions and Answers for Experienced - Sanfoundry

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.

« Prev - Linux Questions & Answers – Shell » Next - Linux Questions & Answers – Shell
Environment – 1 Redirection

Related Posts:

Apply for Programming Internship


Practice Programming MCQs
Check Linux Books
Apply for Linux Internship
Check Information Technology Books

advertisement

https://www.sanfoundry.com/linux-shell-environment-mcq-2/ 4/7
1/31/24, 4:22 AM Linux Administration Questions and Answers for Experienced - Sanfoundry

Recommended Articles:
1. Linux Questions & Answers – Shell Environment – 1
2. Linux Questions & Answers – Shell Special Symbols
3. Linux Questions & Answers – Shell Redirection
4. Linux Questions & Answers – Linux Environment – 3
5. Linux Bash Shell Questions and Answers – Command History and Job Control
6. Linux Bash Shell Questions & Answers – Built-in Commands – 1
7. Linux Shell Programming Questions and Answers – Functions
8. Linux Questions & Answers – File Permissions – 1
9. Linux Bash Shell Questions & Answers – Built-in Commands – 2
10. Linux Bash Shell Questions & Answers – Built-in Commands – 3

advertisement

https://www.sanfoundry.com/linux-shell-environment-mcq-2/ 5/7
1/31/24, 4:22 AM Linux Administration Questions and Answers for Experienced - Sanfoundry

Additional Resources:
Linux MCQ Questions
Linux Commands with Examples
Unix MCQ Questions
Energy and Environment Management MCQ Questions
C Programs on File Handling

Popular Pages:
Operating System MCQ Questions
C++ Algorithm Library
Searching and Sorting Algorithms in C
Event Handling in Java with Examples
PHP MCQ Questions

Subscribe: Linux Newsletter

Name

Email

Subscribe

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, 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.

https://www.sanfoundry.com/linux-shell-environment-mcq-2/ 6/7
1/31/24, 4:22 AM Linux Administration Questions and Answers for Experienced - Sanfoundry

Subscribe to his free Masterclasses at Youtube & discussions at Telegram


SanfoundryClasses.

About | Certifications | Internships | Jobs | Privacy Policy | Terms | Copyright | Contact

     

© 2011-2024 Sanfoundry. All Rights Reserved.

https://www.sanfoundry.com/linux-shell-environment-mcq-2/ 7/7

You might also like