Shell Script Interview Questions
Questions Answers Views Company eMail

In which variable prompt value is stored?

2 5506

When we login into our account which files are executed?

Chip Quest,

3 6552

whta is the use of "exec" command?

1 5106

what is "umask"?

Wipro,

6 18307

How to modify the PATH variable and make it executable?

Mind Tree,

3 8056

What are the different shells available?

3 6422

How to print some text on to the screen?

2 4768

How to take input values from the user?

4 6098

What are the different methods available to run a shell script?

2 7222

what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?

1 5662

How to include comments in your shell scripts?

3 6080

What is the need of including script interpreter in your shell script?

2 4623

What is "test"? How it is used in shell scripting?

2 5327

How to declare functions in unix shell script?

4 29993

What is the use of "shift" command in passing parameters?

1 7011


Post New Shell Script Questions

Un-Answered Questions { Shell Script }

What are types of shells?

521


How does path variable work?

529


What are zombie processes?

550


What is batch file programming?

672


Explain about the exit command?

542






State the advantages of shell scripting?

576


What is bash coding?

479


how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com

2083


What is awk in shell script?

731


How can you find out how long the system has been running?

509


how will you find the total disk space used by a specific user?

558


on “sed” command EmpData(Sample Database) 1122|j.b. saxena |g.m. |account |12/12/52|6000 2233|n.k. gupta |d.g.m |sales |31/12/40|9000 4545|anil agarwal |director |account |06/07/47|7500 5656|lalit choudhury |executive|marketing|07/09/50|5000 1265|chanchal singhvi|g.m. |admin |12/09/63|6000 0110|shyam saksena |chairman |marketing|12/12/43|8000 5566|jai sharma |director |account |23/12/89|7000 7733|jayant |d.g.m |sales |29/02/70|6000 1. From the above database substitute the delimiter of first 3 lines with “ : “ 2. From the above database substitute the delimiter with “ : ” 3. Insert the string “ XYZ Employees” in the first line. 4. Store the lines pertaining to the directors, d.g.m and g.m into three separate files. 5. Using address store first 4 lines into a file Empupdate. 6. Find the pattern “account” in the database and replaces that with “accounts”. 7. Select those lines which do not have a pattern “g.m”. 8. Insert a blank line after every line in the database.

2577


Differentiate between ‘ and ” quotes.

591


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

679


How do I save a powershell script?

539