Shell Script Interview Questions
Questions Answers Views Company eMail

What are the different kinds of loops available in shell script?

3 8219

How do you read arguments in a shell program - $1, $2 ..?

4 9456

How would you replace the n character in a file with some xyz?

7 12072

When you login to a c shell, which script would be run first?

2 5769

How would you print just the 25th line in a file using smallest shell script?

4 12387

How will you list only the empty lines in a file (using grep)?

ANZ,

4 12736

How to customise the existing shell?

1 4018

What is the difference between a variable and value?

Sun Microsystems,

7 44238

How to customise the other shell?

Quest,

2 5019

What are environment variables?

2 6405

What are the advantages of bash over all other shells?

1 13478

How to change our default shell?

5 9455

How to create environment variables?What are the conditions for creating variables?

Infosys, Wipro,

1 6005

How to make userdefined variables to available for all other shells?

4 6359

What is Path variable?What is its use?

1 4899


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

How will you emulate wc –l using awk?

1245


How will you connect to a database server from linux?

767


What is a shell script? Can you name some of its advantages?

761


Why are there shells on the beach?

846


Why is a script important?

772


What are the disadvantages of shell scripting?

870


How will you pass and access arguments to a script in linux?

817


What is an inode block?

820


Given a file find the count of lines containing the word "abc".

1290


What is sudo command?

769


In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?

854


Explain about the slow execution speed of shells?

991


What is difference between shell and bash scripting?

753


How to write a function?

811


Explain about sourcing commands?

845