Skip to main content

Shell Scripting Exam Bank - 583 Verified Questions

Page 1


Shell Scripting Exam Bank

Course Introduction

Shell Scripting is a practical course focused on teaching students how to automate tasks and manage processes within Unix and Linux operating systems using shell scripts. The course covers the fundamentals of shell environments, script syntax, variables, control structures, user input, file manipulation, and process control. Students will learn to write, execute, and debug scripts to streamline repetitive tasks, manage system operations, and enhance productivity. Emphasis is placed on best practices for script development, security considerations, and utilizing common Unix utilities. By the end of this course, students will be equipped with the skills necessary to develop efficient and reliable shell scripts for a variety of system administration and automation scenarios.

Recommended Textbook Guide to UNIX Using Linux 4th Edition by Michael Palmer

Available Study Resources on Quizplus

11 Chapters

583 Verified Questions

583 Flashcards

Source URL: https://quizplus.com/study-set/1575

Page 2

Chapter 1: The Essence of Unix and Linux

Available Study Resources on Quizplus for this Chatper

54 Verified Questions

54 Flashcards

Source URL: https://quizplus.com/quiz/31269

Sample Questions

Q1) Stephen Bourne at AT&T Bell Labs developed the ____ shell as the first UNIX command processor.

A)Bash

B)Bourne

C)C

D)Korn

Answer: B

Q2) The UNIX-Linux ____ command displays the system date,which the system administrator maintains.

A)today

B)sysdate

C)system

D)date

Answer: D

Q3) To append output to an existing file,you use ____.

A)>

B)>>

C)<

D)<<

Answer: B

To view all questions and flashcards with answers, click on the resource link above. Page 3

Chapter 2: Exploring the Unix-Linux File Systems and File Security

Available Study Resources on Quizplus for this Chatper

54 Verified Questions

54 Flashcards

Source URL: https://quizplus.com/quiz/31270

Sample Questions

Q1) You use the ____ command to display a directory's contents,including files and other directories.

A)dir

B)d

C)pwd

D)ls

Answer: D

Q2) this directory occupies no space on the disk

A)/root

B)/usr

C)/sbin

D)/media

E)/lib

F)/proc

G)/var

H)/mnt

I)/tmp

Answer: F

To view all questions and flashcards with answers, click on the resource link above. Page 4

Chapter 3: Mastering Editors

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

Source URL: https://quizplus.com/quiz/31271

Sample Questions

Q1) The term ____________________ is the abbreviation for binary term. Answer: byte

Q2) A byte consists of ____ binary digits.

A)four

B)eight

C)ten

D)twelve Answer: B

Q3) Unicode offers up to ____ characters.

A)256

B)512

C)16,384

D)65,536

Answer: D

Q4) A binary digit,called a(n)____________________ for short,is in one of two states.

Answer: bit

Q5) How can you save a file without exiting vi?

Answer: You enter command mode and type :w to save the file without exiting.

To view all questions and flashcards with answers, click on the resource link above. Page 5

Chapter 4: Unix-Linux File Processing

Available Study Resources on Quizplus for this Chatper

55 Verified Questions

55 Flashcards

Source URL: https://quizplus.com/quiz/31272

Sample Questions

Q1) To redirect the list of the files in a directory to a file called homedir.list,you enter

A)ls < homedir.list

B)ls > homedir.list

C)homedir.list < ls

D)homedir.list > ls

Q2) The ____ option of the find command displays files that have been changed within the last n minutes.

A)-min n

B)-cmin n

C)-nmin n

D)-mmin n

Q3) When you no longer need a directory,you can use command ____ to remove it.

A)xtree

B)rmdir

C)dldir

D)deltree

Q4) Moving and renaming a file are essentially the same operation.

A)True

B)False

Page 6

To view all questions and flashcards with answers, click on the resource link above.

Chapter 5: Advanced File Processing

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

Source URL: https://quizplus.com/quiz/31273

Sample Questions

Q1) When using wc,you cannot specify all three options (-l,-w and -c)in the command line at the same time.

A)True

B)False

Q2) The ____ option of the diff command does not compare for blank lines.

A)-b

B)-B

C)-c

D)-C

Q3) The ____ option of the diff command ignores blanks that repeat.

A)-b

B)-B

C)-c

D)-C

Q4) You use the ____ command to search for a specified pattern in a file,such as a particular word or phrase.

A)find

B)grep

C)sed

D)diff

Page 7

To view all questions and flashcards with answers, click on the resource link above.

Chapter 6: Introduction to Shell Script Programming

Available Study Resources on Quizplus for this Chatper

55 Verified Questions

55 Flashcards

Source URL: https://quizplus.com/quiz/31274

Sample Questions

Q1) A high-level language is a computer language that uses English-like expressions.

A)True

B)False

Q2) The ____ command is useful when you want your shell program to automatically remove any temporary files that are created when the shell script runs.

A)set

B)export

C)tput

D)trap

Q3) The ____ reads the lines of code that the programmer wrote in the source file and converts them to the appropriate machine-language instructions.

A)compiler

B)linker

C)assembler

D)interpreter

Q4) The ____________________ variable provides a list of directory locations where UNIX or Linux looks to find executable scripts or programs.

Q5) What is a glob pattern?

To view all questions and flashcards with answers, click on the resource link above. Page 8

Chapter 7: Advanced Shell Programming

Available Study Resources on Quizplus for this Chatper

48 Verified Questions

48 Flashcards

Source URL: https://quizplus.com/quiz/31275

Sample Questions

Q1) logical negation

A)-a B)!

C)-r

D)-f

E)-ne

F)-n

G)-nt

H)-s

I)-e

Q2) performs a relational integer test

A)-a

B)! C)-r

D)-f

E)-ne

F)-n

G)-nt

H)-s

I)-e

To view all questions and flashcards with answers, click on the resource link above.

Page 9

Chapter 8: Exploring the Unix-Linux Utilities

Available Study Resources on Quizplus for this Chatper

54 Verified Questions

54 Flashcards

Source URL: https://quizplus.com/quiz/31276

Sample Questions

Q1) displays process status by process identification number and name

A)df

B)ifconfig

C)dd

D)groff

E)ps

F)dump

G)du

H)cmp

I)talk

Q2) Unlike top,the free utility runs and then automatically exits.

A)True

B)False

Q3) What is the uptime command used for?

Q4) What is a PID?

Q5) The ____ option of the ispell utility is used to ignore concatenated words.

A)-c

B)-C

C)-i

D)-I

To view all questions and flashcards with answers, click on the resource link above. Page 10

Chapter 9: Perl and Cgi Programming

Available Study Resources on Quizplus for this Chatper

52 Verified Questions

52 Flashcards

Source URL: https://quizplus.com/quiz/31277

Sample Questions

Q1) What is a floating-point value?

Q2) ____________________ are symbolic names that represent values stored in memory.

Q3) The Awk program does not require the programmer to explicitly set up looping structures as does Perl.

A)True

B)False

Q4) What is a compiled language?

Q5) What are the two parts of the code of a Web (HTML)page?

Q6) How do you read input from the keyboard in Perl?

Q7) ____________________ Language (Perl)is a free script language that runs on many operating systems,including UNIX,Linux,Windows,and Mac OS X.

Q8) The convention is to use all uppercase letters for ____.

A)variables

B)constants

C)strings

D)filehandles

Q9) In Perl,double-quoted strings are not subject to interpolation.

A)True

B)False Page 11

To view all questions and flashcards with answers, click on the resource link above. Page 12

Chapter 10: Developing Unix-Linux Applications in C and C

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

Source URL: https://quizplus.com/quiz/31278

Sample Questions

Q1) is a header file

A)main()

B)a.out

C)null

D)%

E)/*

F)stdio.h

G){

H)gcc

I)#include &lt;stdio.h&gt;

Q2) When you ____________________ a function,you declare the function's name and create the lines of code that make up the function's block of code.

Q3) Automatic variables are ____ to the function in which they are declared.

A)global

B)assigned

C)local

D)unique

Q4) What is a source code file?

Q5) What is the role of the if statement?

Q6) What is the difference between the while loop and the do-while loop?

Page 13

To view all questions and flashcards with answers, click on the resource link above.

Chapter 11: The X Window System

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

Source URL: https://quizplus.com/quiz/31279

Sample Questions

Q1) The ____ program of OpenOffice.org is a complete word processor for writing short or book-length documents.

A)Writer

B)Impress

C)Document

D)Word

Q2) a combined file manager,Web browser,and document viewer

A)Oroborus

B)Nautilus

C)sawfish

D)gwm

E)Konqueror

F)IceWM

G)Blackbox

H)fvwm

I)Metacity

Q3) ____________________ is a free version of X11 that was ported from non-PC-based UNIX computers to run on PCs.

Q4) In X Window terminology,what is the Window Manager?

Q5) What are the most popular desktops in UNIX-Linux systems?

To view all questions and flashcards with answers, click on the resource link above. Page 14

Turn static files into dynamic content formats.

Create a flipbook
Shell Scripting Exam Bank - 583 Verified Questions by Quizplus - Issuu