MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is a shell script?
A
group of commands
B
a file containing a series of commands
C
group of functions
D
a file containing special symbols
Explanation: 

Detailed explanation-1: -A shell script is a text file that contains a sequence of commands for a UNIX-based operating system. It is called a shell script because it combines a sequence of commands, that would otherwise have to be typed into the keyboard one at a time, into a single script.

Detailed explanation-2: -A batch file is a script file in DOS, OS/2 and Microsoft Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file.

Detailed explanation-3: -A shell script is a computer program designed to be run by a Unix shell, a command-line interpreter. The various dialects of shell scripts are considered to be scripting languages. Typical operations performed by shell scripts include file manipulation, program execution, and printing text.

Detailed explanation-4: -Explanation: Shell is the agency that sits between the user and the UNIX system. It is a unique and multi-faceted program. It is also called command-interpreter because it interprets our command entered. It is also a programming language.

Detailed explanation-5: -Answer: Shell scripting is nothing but a series or sequence of UNIX commands written in a plain text file. Instead of specifying one job/command at a time, in shell scripting, we give a list of UNIX commands like a to-do list in a file to execute it.

There is 1 question to complete.