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?

831

How do we delete all blank lines in a file?

792

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

910

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

2 6352

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

751

What is gui scripting?

796

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

815

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

823

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

849

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

742

Why is the use of shell script?

747

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

749

What is the use of break command?

797

What are the zombie processes?

731

What are the advantages of shell scripting?

818


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

1879


What is console line?

742


Is shell script a programming language?

740


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

751


Is shell scripting a language?

771


What is the first line of a shell script called?

797


What is wc in shell script?

740


How to get the last line from a file using just the terminal?

904


What is bash command used for?

774


What is sudo command?

743


State the advantages of shell scripting?

815


Write a script to print the first 10 elements of fibonacci series.

2082


What is shift command in shell script?

732


What is c in shell script?

807


What is inside a seashell?

866