Shell Script Interview Questions

 
1.
What is Shell Script?
2.
What are PIDs?
3.
How do you send a mail message to somebody?
4.
How do you remove a file?
5.
How do you remove recursively?
6.
How do you find out your own username?
7.
How do you count words, lines and characters in a file?
8.
How do you search for a string inside a given file?
9.
How do you search for a string inside a directory?
10.
How do you search for a string in a directory with the subdirectories recursed?
11.
How do you list currently running process?
12.
How do you find out what�s your shell?
13.
How do you fire a process in the background?
14.
How do you refer to the arguments passed to a shell script?
15.
What�s the conditional statement in shell scripting?
16.
How do you do number comparison in shell scripts?
17.
How do you test for file properties in shell scripts?
18.
How do you do Boolean logic operators in shell scripting?
19.
How do you find out the number of arguments passed to the shell script?
20.
What�s a way to do multilevel if-else�s in shell scripting?
21.
How do you write a for loop in shell?
22.
How do you find out the current directory you�re in?
23.
What�s the command to find out users on the system?
24.
What�s the command to find out today�s date?
25.
How do you stop a process?
26.
How do you find out about all running processes?
27.
How do you stop all the processes, except the shell window?
28.
How do you define a function in a shell script?
29.
How do you read keyboard input in shell scripts?
30.
How does a case statement look in shell scripts?
31.
How do you write a while loop in shell?
32.
What is Shell Script?
33.
What are PIDs?
34.
How do you send a mail message to somebody?
35.
How do you remove a file?
36.
How do you remove recursively?
37.
How do you find out your own username?
38.
How do you count words, lines and characters in a file?
39.
How do you search for a string inside a given file?
40.
How do you search for a string inside a directory?
41.
How do you search for a string in a directory with the subdirectories recursed?
42.
How do you list currently running process?
43.
How do you find out what�s your shell?
44.
How do you fire a process in the background?
45.
How do you refer to the arguments passed to a shell script?
46.
What�s the conditional statement in shell scripting?
47.
How do you do number comparison in shell scripts?
48.
How do you test for file properties in shell scripts?
49.
How do you do Boolean logic operators in shell scripting?
50.
How do you find out the number of arguments passed to the shell script?
51.
What�s a way to do multilevel if-else�s in shell scripting?
52.
How do you write a for loop in shell?
53.
How do you find out the current directory you�re in?
54.
What�s the command to find out users on the system?
55.
What�s the command to find out today�s date?
56.
How do you stop a process?
57.
How do you find out about all running processes?
58.
How do you stop all the processes, except the shell window?
59.
How do you define a function in a shell script?
60.
How do you read keyboard input in shell scripts?
61.
How does a case statement look in shell scripts?
62.
How do you write a while loop in shell?
63.
What is Shell Script?
64.
What are PIDs?
65.
How do you send a mail message to somebody?
66.
How do you remove a file?
67.
How do you remove recursively?
68.
How do you find out your own username?
69.
How do you count words, lines and characters in a file?
70.
How do you search for a string inside a given file?
71.
How do you search for a string inside a directory?
72.
How do you search for a string in a directory with the subdirectories recursed?
73.
How do you list currently running process?
74.
How do you find out what�s your shell?
75.
How do you fire a process in the background?
76.
How do you refer to the arguments passed to a shell script?
77.
What�s the conditional statement in shell scripting?
78.
How do you do number comparison in shell scripts?
79.
How do you test for file properties in shell scripts?
80.
How do you do Boolean logic operators in shell scripting?
81.
How do you find out the number of arguments passed to the shell script?
82.
What�s a way to do multilevel if-else�s in shell scripting?
83.
How do you write a for loop in shell?
84.
How do you find out the current directory you�re in?
85.
What�s the command to find out users on the system?
86.
What�s the command to find out today�s date?
87.
How do you stop a process?
88.
How do you find out about all running processes?
89.
How do you stop all the processes, except the shell window?
90.
How do you define a function in a shell script?
91.
How do you read keyboard input in shell scripts?
92.
How does a case statement look in shell scripts?
93.
How do you write a while loop in shell?
94.
What is Shell Script?
95.
What are PIDs?
96.
How do you send a mail message to somebody?
97.
How do you remove a file?
98.
How do you remove recursively?
99.
How do you find out your own username?
100.
How do you count words, lines and characters in a file?
101.
How do you search for a string inside a given file?
102.
How do you search for a string inside a directory?
103.
How do you search for a string in a directory with the subdirectories recursed?
104.
How do you list currently running process?
105.
How do you find out what�s your shell?
106.
How do you fire a process in the background?
107.
How do you refer to the arguments passed to a shell script?
108.
What�s the conditional statement in shell scripting?
109.
How do you do number comparison in shell scripts?
110.
How do you test for file properties in shell scripts?
111.
How do you do Boolean logic operators in shell scripting?
112.
How do you find out the number of arguments passed to the shell script?
113.
What�s a way to do multilevel if-else�s in shell scripting?
114.
How do you write a for loop in shell?
115.
How do you find out the current directory you�re in?
116.
What�s the command to find out users on the system?
117.
What�s the command to find out today�s date?
118.
How do you stop a process?
119.
How do you find out about all running processes?
120.
How do you stop all the processes, except the shell window?
121.
How do you define a function in a shell script?
122.
How do you read keyboard input in shell scripts?
123.
How does a case statement look in shell scripts?
124.
How do you write a while loop in shell?