Interview questions

Shell Script interview questions – page 5

134 questions. Tap “Show answer” to check yourself.

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

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

  3. If you have a string "one two three", which shell command would you use to extract the strings?

  4. What is the difference between a shell variable that is exported and the one that is not exported?

  5. How do you schedule a command to run at 4:00 every morning?

  6. What are the Different types of shells?

  7. How Connect to a Database in Shell Programming?

  8. Write a shell script to identify the given string is palindrome or not?

  9. What is the difference between a 'thread' and a 'process'?

  10. What is use of "cut" command?

  11. What is this line in the shell script do ?#!/bin/ksh

  12. What are the three main forms of enabling debugging in a shell script?

  13. What is the difference between writing code in shell and editor?

  14. What is the basic difference you find between a shell script and perl?

Companies that ask Shell Script questions