logo
  • Home
  • Test & Rank
  • About
  • Training
  • Programming
  • CS
  • IT
  • IS
  • ECE
  • EEE
  • EE
  • Civil
  • Mechanical
  • Chemical
  • Metallurgy
  • Instrumentation
  • Aeronautical
  • Aerospace
  • Biotechnology
  • Mining
  • Marine
  • Agriculture
  • MCA
  • BCA
  • Internship
  • Jobs
  • Contact

Linux Multiple Choice Questions | MCQs | Quiz

Linux Interview Questions and Answers
Practice Linux questions and answers for interviews, campus placements, online tests, aptitude tests, quizzes and competitive exams.

Get Started

•   Linux Environment - 1
•   Linux Environment - 2
•   Linux Environment - 3
•   Linux Commands - 1
•   Linux Commands - 2
•   Linux Commands - 3
•   Linux Commands - 4
•   Linux File Management - 1
•   Linux File Management - 2
•   Linux File Types
•   Linux File Permissions - 1
•   Linux File Permissions - 2
•   Linux File System Overview
•   Linux Startup & Shutdown
•   Linux Process Management
•   User Account Management
•   Linux Shell Programming
•   Linux Shell Environment - 1
•   Linux Shell Environment - 2
•   Linux Shell Redirection
•   Shell Special Symbols
•   Linux Search Pattern
•   Linux Shell Functions
•   Linux Shell Variables
•   Bash Arithmetic Expression
•   Command History
•   Bash Built-in Commands
•   Bash Built-in Commands - 2
•   Bash Built-in Commands - 3
•   Linux vi Editor
•   Linux sed Editor
•   Awk Programming Basics
•   Programming Expressions
•   Awk Control Statements
•   Awk Variables & Arrays
•   Filesystem Hierarchy - 1
•   Filesystem Hierarchy - 2
•   Linux Proc Filesystem - 1
•   Linux Proc Filesystem - 2
•   Linux Proc Filesystem - 3
•   Linux Proc Filesystem - 4
•   Linux Proc Filesystem - 5
•   Makefile Questions - 1
•   Makefile Questions - 2
•   GCC Compiler Options - 1
•   GCC Compiler Options - 2
•   GCC Compiler Options - 3
•   GCC Compilation Stages-1
•   GCC Compilation Stages-2
•   Static Libraries Questions
•   Shared Libraries Questions
•   GDB Debugger Questions-1
•   GDB Debugger Questions-2
•   GDB Debugger Questions-3
•   GDB Debugger Questions-4
•   GDB Debugger Questions-5
•   Linux Sysfs Questions - 1
•   Linux Sysfs Questions - 2
•   Linux Sysfs Questions - 3
•   Linux Sysfs Questions - 4
•   Linux Sysfs Questions - 5
•   Linux Device Drivers
•   Linux Process Management
•   Linux Memory Management
•   Linux File Management - 1
•   Linux File Management - 2
•   Linux Signal Handling
•   Linux IPCs - 1
•   Linux IPCs - 2
•   Linux Systems
•   ↓ Debugging Questions ↓
•   Debugging Malloc/Free-1
•   Debugging Malloc/Free-2
•   Debugging File Handling
•   Process Management
•   Debugging Signal Handling
•   Debugging Userlimit/Timer
•   Debugging Posix Threads
•   PThreads Handling
•   Debugging Pipes
•   Debugging System-V IPCs
•   Debugging POSIX IPCs
•   Debugging Unix Sockets
•   Debugging Internet Sockets

Best Reference Books

•   Linux Books
« Prev Page
Next Page »

Linux Questions & Answers – Shell Environment – 1

Posted on February 15, 2013 by Manish

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

1. To feed standard output of one command to standard input of another in a single shell session
a) IO redirection can be used
b) Named pipes can be used
c) The pipe operator provided by the shell can be used
d) It can not be done
View Answer

Answer: c
Explanation: None.
advertisement

2. Which of the following commands allows definition and assignment of environment variables under bash
a) env
b) export
c) environ
d) setenviron
View Answer

Answer: a
Explanation: None.

3. While executing a command, the shell
a) Executes it in the same process (as shell)
b) Creates a child shell to execute it
c) Loads a special program to take care of the execution
d) None of the mentioned
View Answer

Answer: b
Explanation: None.

4. Which variable contains current shell process id
a) $*
b) $?
c) $$
d) $!
View Answer

Answer: c
Explanation: None.
advertisement

5. Which command is used to debug a shell script program
a) set
b) set -x
c) debug
d) db
View Answer

Answer: b
Explanation: None.

6. For every successful login, which script will be executed?
a) /etc/inittab
b) /etc/profile
c) /etc/login
d) /etc/init
View Answer

Answer: b
Explanation: None.

7. Hidden files are
a) Those whose ‘read’ bit is set to ‘h’
b) Permitted for (can be accessed) only superusers
c) Files that begin with a ‘.’
d) Files that cannot be opened by ordinary user for writing
View Answer

Answer: c
Explanation: None.
advertisement

8. Shell is ?
a) Command Interpreter
b) Interface between Kernel and Hardware
c) Interface between user and applications
d) Command Compiler
View Answer

Answer: a
Explanation: None.

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

Here’s the list of Best Reference Books in Linux Commands & Shell Programming.
Here’s the list of Best Reference 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 Page - Linux Questions & Answers – Shell Programming
» Next Page - Linux Questions & Answers – Shell Environment – 2

« Linux Questions & Answers – Shell Programming
Linux Questions & Answers – Shell Environment – 2 »
advertisement

Deep Dive @ Sanfoundry:

  1. C# Programming Examples on Files
  2. C# Programming Examples on LINQ
  3. About
  4. C# Programming Examples
  5. C# Programming Examples on Interfaces
  6. C Programming Examples on File Handling
  7. Bangalore Training – SAN, C, Linux Kernel and Device Drivers Training
  8. Online Training – SAN, C, Linux Kernel & Device Drivers Training
  9. Linux Command Tutorials with Examples and Explanations
  10. Linux Questions and Answers
Manish Bhojasia
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Facebook | Twitter

Best Careers

Developer Tracks
SAN Developer
Linux Kernel Developer
Linux Driver Developer
Linux Network Developer

Live Training Photos
Mentoring
Software Productivity
GDB Assignment
Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel Programming. Our Founder has trained employees of almost all Top Companies in India such as VMware, Citrix, Oracle, Motorola, Ericsson, Aricent, HP, Intuit, Microsoft, Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium, ST-Micro, Samsung, LG-Soft, Wipro, TCS, HCL, IBM, Accenture, HSBC, Mphasis, Tata-Elxsi, Tata VSNL, Mindtree, Cognizant and Startups.

Best Trainings

SAN I - Technology
SAN II - Admin
Linux Fundamentals
Advanced C Training
Linux-C Debugging
System Programming
Network Programming
Linux Threads
Kernel Programming
Kernel Debugging
Linux Device Drivers

Best Reference Books

Computer Science Books
Algorithm & Programming Books
Electronics Engineering Books
Electrical Engineering Books
Chemical Engineering Books
Civil Engineering Books
Mechanical Engineering Books
Industrial Engineering Books
Instrumentation Engg Books
Metallurgical Engineering Books
All Stream Best Books

Questions and Answers

1000 C Questions & Answers
1000 C++ Questions & Answers
1000 C# Questions & Answers
1000 Java Questions & Answers
1000 Linux Questions & Answers
1000 Python Questions
1000 PHP Questions & Answers
1000 Hadoop Questions
Cloud Computing Questions
Computer Science Questions
All Stream Questions & Answers

India Internships

Computer Science Internships
Instrumentation Internships
Electronics Internships
Electrical Internships
Mechanical Internships
Industrial Internships
Systems Internships
Chemical Internships
Civil Internships
IT Internships
All Stream Internships

About Sanfoundry

About Us
Copyright
Terms
Privacy Policy
Jobs
Bangalore Training
Online Training
Developers Track
Mentoring Sessions
Contact Us
Sitemap
© 2011 Sanfoundry. All Rights Reserved.