Shell Script Interview Questions
Questions Answers Views Company eMail

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?

636

How do we delete all blank lines in a file?

569

How can we find the process name from its process id?

702

How will I insert a line "abcdef" at every 100th line of a file?

2 5495

How will you copy a file from one machine to other?

543

What is gui scripting?

597

What is the syntax of "nested if statement" in shell scripting?

624

Is it possible to substitute "ls" command in the place of "echo" command?

612

What are the various stages of a linux process it passes through?

623

What is the use of "$#" in shell scripting?

548

Why is the use of shell script?

538

What are the different types of variables used in shell script?

549

What is the use of break command?

581

What are the zombie processes?

563

What are the advantages of shell scripting?

580


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

How do I run a script on mac?

568


How would you compare the strings in a shell script?

538


Give some situations where typing error can destroy a program?

718


What is shell and terminal?

571


What is the significance of $#?

581






What does $1 mean in bash?

610


Is shell scripting difficult?

553


How to find duplicate record in file using shell script?

843


Is powershell a language?

556


What is the purpose of scripting?

571


What language is used in terminal?

551


What lives in a shell?

531


How do I debug a shell script?

555


I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

590


write a shell script to check the failed jobs?

3951