0% found this document useful (0 votes)
122 views

List of UNIX Shell Programming Shell Scripting Interview Questions Answers

This document contains a list of 31 questions related to shell scripting in UNIX systems. The questions cover topics such as checking command success, connecting to SQL databases from shell scripts, user and group identifiers, security mechanisms in UNIX, shell types, logging analysis, string processing, the difference between make and shell scripts, floating point comparison, file editing, text extraction, path management, hard and soft links, process loading and linking, inodes, redirection, free space checking, job control, kernels, device files, paths, libraries, inter-process communication, shared memory, and file access logging.

Uploaded by

Sachin Varshney
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views

List of UNIX Shell Programming Shell Scripting Interview Questions Answers

This document contains a list of 31 questions related to shell scripting in UNIX systems. The questions cover topics such as checking command success, connecting to SQL databases from shell scripts, user and group identifiers, security mechanisms in UNIX, shell types, logging analysis, string processing, the difference between make and shell scripts, floating point comparison, file editing, text extraction, path management, hard and soft links, process loading and linking, inodes, redirection, free space checking, job control, kernels, device files, paths, libraries, inter-process communication, shared memory, and file access logging.

Uploaded by

Sachin Varshney
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

List of UNIX Shell Programming Shell Scripting Interview Questions Answers

1. In shell scripting How to identify that the previous command was run successfully?

2. How will you write a shell script to connect to SQL database?

3. What does UID and GID signify?

4. What are the different security mechanisms available in UNIX?

5. What are the different types of shells available in UNIX?

6. How many users have logged in and logged out in last five or 10 minutes

7. How do you search the string for vowel's occurrence and number of occurrences of
each vowel?

8. What is make used for? How is it different from a shell script?

9. How to compare floating point number in shell scripting?

10. How to delete a word from a file using shell scripting???

11. How to extract the second row of a text-file?

12. How to compare two floating point numbers?

13. How to compress files by using shell scripting

14. What are the steps to take files from UNIX server to windows?

15. How to find see the file which is created today’s date with time after 10 a.m. to 5
p.m.?

 What is the command to find the IP of a Proxy server in UNIX?


 What is the command used in UNIX to view a list of opened files?
 What command do you use to make a file hidden?
 What command do you use to delete a hidden file?
 What is "Kill-9"? What does it do?
 When do you issue "Kill" and "Kill-9" commands?
 How do you differentiate between UNIX Compress command and LINUX Compress
command?
 What are grep commands?
 How would you save a path in command prompt in order to retrieve it later?
 Explain hard link and soft link in UNIX.
 What is Marshaling?
 Do you have any idea about 'loading' and 'linking'? What is the difference between the
two?
 What are inode numbers?
 What is Sticky bit?
 Explain Redirection.
 Explain how to find free space in UNIX/ LINUX.
 How would you define and explain "Shell Job Control"?
 What is a kernel? Where do you locate it in UNIX?
 What is micro kernel? How would you differentiate between a kernel and a micro kernel?
 In what way does the kernel differentiate between device files and ordinary files?
 What is an exact path from root directory to target directory called?
 What is Relative path?
 What is the difference between Absolute path and Relative path?
 Explain the difference between LILO and STUB.
 What are the major categories of UNIX commands?
 Can you explain the difference between dynamic library and static library?
 Could you explain in brief the Interproses Communication Mechanisms?
 What do you understand by 'shared memory'?
 What command should be issued to find all the accessed files during the previous month?

1. In shell scripting How to identify that the previous command was run successfully?

2. How will you write a shell script to connect to SQL database?

3. What does UID and GID signify?

4. What are the different security mechanisms available in UNIX?

5. What are the different types of shells available in UNIX?

6. how many users have logged in and logged out in last five or 10 minutes

7. How do you search the string for vowel's occurrence and number of occurrences of each
vowel

8. What is make used for? How is it different from a shell script?

9. How to compare floating point number in shell scripting?


10. How to delete a word from a file using shell scripting???

11. How to extract the second row of a text-file?

12. How to compare two floating point numbers?

13. How to compress files by using shell scripting

14. What are the steps to take files from UNIX server to windows?

15. How to find see the file which is created today’s date with time after 10 a.m to 5 p.m?

16. What is the basic difference u find between a shell script and Perl? I mean the advantages of
one over

17. What is use of "cut" command? Give some examples. Can we use "awk" or "sed?"

18. How Connect to a Database in Shell Programming? Please tell me Step by Step?

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

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

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

22. What is INODE?

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

24. What does $# stand for?

25. What is $*?

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

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

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

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

30. How do u open a read only file in Unix?

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

You might also like