Shell Scripting Interview Questions And Answers
Shell Scripting Interview Questions and Answers will guide us now that a shell script is a script written for the shell, or command line interpreter, of an operating system. It is often considered a simple domain-specific programming language. Typical operations performed by shell scripts include file manipulation, program execution, and printing text. Learn Shell Scripting with this Shell Scripting Interview Questions with Answers guide
1 ► What are PIDs?
2 ► How do you send a mail message to somebody?
3 ► How do you remove a file?
4 ► How do you remove recursively?
5 ► How do you find out your own username?
6 ► How do you count words, lines and characters in a file?
7 ► How do you search for a string inside a given file?
8 ► How do you search for a string inside a directory?
9 ► How do you search for a string in a directory with the subdirectories recursed?
10 ► How do you list currently running process?
11 ► How do you find out what’s your shell?
12 ► How do you fire a process in the background?
13 ► How do you refer to the arguments passed to a shell script?
14 ► What’s the conditional statement in shell scripting?
15 ► How do you do number comparison in shell scripts?
16 ► How do you test for file properties in shell scripts?
17 ► How do you do Boolean logic operators in shell scripting?
18 ► How do you find out the number of arguments passed to the shell script?
19 ► What’s a way to do multilevel if-else’s in shell scripting?
20 ► How do you write a for loop in shell?
21 ► How do you find out the current directory you’re in?
22 ► What’s the command to find out users on the system?
23 ► What’s the command to find out today’s date?
24 ► How do you stop a process?
25 ► How do you find out about all running processes?
26 ► How do you stop all the processes, except the shell window?
27 ► How do you define a function in a shell script?
28 ► How do you read keyboard input in shell scripts?
29 ► How does a case statement look in shell scripts?
30 ► How do you write a while loop in shell?
- Ads By Google