Shell Scripting Interview Questions and Answers

Shell Scripting Interview Questions and Answers

In UNIX, the Command Shell is the native command interpreter. It provides a command line interface for the users to interact with the operating system. UNIX commands may also be executed non-interactively in the form of a Shell Script. The script is a series of commands that will be run together. Shell scripts can be used for a variety of tasks from customizing your environments to automating your daily tasks. A shell script is a text file that contains a sequence of commands for a UNIX-based operating system. It’s called a shell script because it combines into a “script” in a single file a sequence of commands that would otherwise have to be presented to the system from a keyboard one at a time.

What is Shell Scripting?
What are the different File test operators?
Can you explain nano?
Can you explain vi, vim?
What are the common prinf controls?
Explain pwd command in Linux with Examples?
Explain find command ‘Find files with different file extensions’
Explain the find command ‘Find directories with the Unix find command’?
Explain the Find and delete command?
What are zombie processes?
How to run the script in the background?
What difference between ‘and “quotes?
Write a script to print the first 10 elements of Fibonacci series.
How will you copy a file from one machine to other?
What are control instructions and how many types of control instructions are available in a shell? Explain in brief.
What are loops and explain three different methods of loops in brief?
What are the 3 standard streams in Linux?
What difference between & and &&?
How can you find out how long the system has been running?
What is a boot block?
What is a super block?
What is the difference between $$ and $!?
What are the different commands available to check the disk usage?
What will happen to my current process when I execute a command using exec?
What is IFS?
What is the difference between diff and cmp commands?
What is an inode block?
What is the difference between grep and egrep?
What is the importance of writing shell scripts?
How many fields are present in a crontab file and what does each field specify?
What are the default permissions of a file when it is created?
What are Shell Variables?
What is the lifespan of a variable inside a shell script?
What are positional parameters?
What are the three different security provisions provided by UNIX for a file or data?
Follow us on Social Media

Related Posts

No Comments

Post a Reply