Shell Script Interview Questions
Questions Answers Views Company eMail

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

3 7259

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

4 8718

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

7 11088

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

2 5215

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

4 11678

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

ANZ,

4 11913

How to customise the existing shell?

1 3660

What is the difference between a variable and value?

Sun Microsystems,

7 42620

How to customise the other shell?

Quest,

2 4525

What are environment variables?

2 5940

What are the advantages of bash over all other shells?

1 13085

How to change our default shell?

5 8697

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

Infosys, Wipro,

1 5562

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

4 5474

What is Path variable?What is its use?

1 4567


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

How to use arguments in a script?

576


What is echo $shell?

612


What shell is bin sh?

525


What language is bash?

489


What is bourne shell scripting?

524






What are the different types of shell scripting?

529


What are zombie processes?

564


How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }

1846


Is shell and terminal the same?

582


How to redirect both standard output and standard error to the same location?

620


What does $@ mean in shell?

588


What is gui scripting?

595


What is awk script?

539


Write a shell script to get current date, time, user name and current working directory.

621


How will you print the login names of all users on a system?

565