Tools / Shell Scripting Interview Questions
1. What is a shell?
Shell is an interface between the user and the kernel. Even though there can be only one kernel; a system can have many shells running simultaneously....
2. What is Shell Scripting?
Shell Scripting is an open-source computer program designed to be run by the Unix/Linux shell. Shell Scripting is a program to write a series of commands for the shell to execute....
3. Different types of commonly used shells on a typical Linux system.
Different shells include csh, ksh, bash (Bourne Again Shell), and Bourne. The most commonly used shell is "Bash" .
4. What is a Symlink?
A symlink or a Symbolic Link is simply enough a shortcut to another file. It is a file that points to another file.To create a symbolic link you use the following command: ln -s target_path link_path For example, the below...
5. Why is shell scripting required?
Shell helps in doing work that is repetitive in nature. For example: When executing a bunch of commands, shells can take all these commands directly from a stored file and execute them, instead of writing them every time....
6. What is a Shell Variable?
− A shell variable is a special variable that is set by the shell and is required by the shell in order to function correctly. Some of these variables are environment variables whereas others are local variables....
7. Mention few limitations of shell scripting?
There may be errors in shell scripting that prove to be quite costly. The programs in shell script are quite slow while executing and a new process is required for every shell command executed....
8. What is the extension of Shell program files?
Shell programs are stored in files with .sh extensions. For example.
9. What are the different types of shells?
Shells are divided into two categories: Bourne shell: The $ character is the default prompt when using a Bourne-type shell. C shell: The % character is the default prompt....
10. Differences between CSH and BASH.
BASH CSH Bourne Again Shell starts with ';'. C-Shell commands begin with a '#'.