Interview questions
Shell Script interview questions – page 4
134 questions. Tap “Show answer” to check yourself.
-
What are the additional egrep symbols?
-
What is the use of "test" command?
-
Create a bash shell script that removes all files whose names end with a "~" from your home directory and subdirectories. Name this script "cleanup.sh"
-
What is the syntax of "grep" command?
-
What is the use of "shift" command in passing parameters?
-
How to include comments in your shell scripts?
-
What is the need of including script interpreter in your shell script?
-
What is "test"? How it is used in shell scripting?
-
How to declare functions in unix shell script?
-
How to print some text on to the screen?
-
How to take input values from the user?
-
What are the different methods available to run a shell script?
-
What are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?
-
What are the different shells available?
-
whta is the use of "exec" command?
-
What is "umask"?
-
How to modify the PATH variable and make it executable?
-
In which variable prompt value is stored?
-
How to create environment variables? What are the conditions for creating variables?
-
How to make userdefined variables to available for all other shells?
-
What is Path variable? What is its use?
-
What are the advantages of bash over all other shells?
-
How to change our default shell?
-
How will you list only the empty lines in a file (using grep)?
-
How to customise the existing shell?
-
How to customise the other shell?
-
What are environment variables?
-
How would you print just the 25th line in a file using smallest shell script?
-
What are the different kinds of loops available in shell script?
-
How do you read arguments in a shell program - $1, $2 ..?