+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

Shell Scripting Interview Questions and Answers

What is shell script?

A shell script is a command containing text file that contains one or more commands.

What is a shell?

Shell is a interface between user and the kernel. Even though there can be only one kernel ; a system can have many shell running simultaneously . Whenever a user enters a command through keyboard the shell communicates with the kernel to execute it and then display the output to the user.

What is the syntax of while loop in shell scripting?

The while loop is used to repeat its block of commands a number of times. It is different from for loop, it iterates until the while condition is no longer true.

  1. while [ test_condition ]
  2. do
  3. commands...
  4. done
What is an inode block?

This block contains the inode for every file of the file system along with all the file attributes except its name.

Why is the use of shell script?

It is used by system administrators to issue numbers of commands to accomplish the task. All commands are added together in a text file (shell script) to complete daily routine tasks.

Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.