SOLUTIONS GRADED A+
✔✔What does the configure command do in the software compilation process? -
✔✔Gathers system information needed by the application to be compiled and stores it
in the makefile.
✔✔What does the make command do in the software compilation process? -
✔✔Compiles the source code using the information in the makefile.
✔✔What are the three kinds of repositories? (Select three) - ✔✔local
centralized internal
vendor
✔✔What does the make install command do in the software compilation process? -
✔✔Copies the compiled binaries to the predetermined directories.
✔✔The option used to extract a tarball isÉ - ✔✔-x
✔✔What step in the compilation process uses themakecommand to compile the
application using the information stored in the makefile? - ✔✔4
✔✔Being security conscious, you always check out any software package being
installed to your CentOS systems. Which command can you run to check supporting
software packages prior to installing a new software application? - ✔✔yum deplist
✔✔The option used to create a tarball isÉ - ✔✔-c
✔✔The option used to test a tarball isÉ - ✔✔-t
✔✔What metacharacter will the shell interpret as a variable substitution? - ✔✔$
✔✔This data type or entity is used to store multiple values into a single entity? -
✔✔array
✔✔Mostly set by OS on login or when a shell is first invoked, this data typreor entity
value changes from time to time is called? - ✔✔variable
✔✔This is the correct way to assign a variable in Bash scripting. My_name=='John' -
✔✔false
✔✔File extensions are mostly optional in Linux. - ✔✔true
, ✔✔What represents the value that a child process passes back to its parent process
when the child process terminates? - ✔✔$?
✔✔Arrays start with the index 1 - ✔✔false
✔✔This line should placed at the beginning of all Bash scripts, generally on line 1. -
✔✔#!/bin/bash
✔✔What metacharacter will the shell interpret as a variable assignment? - ✔✔=
✔✔You wish to run a few commands with modified environment variables but only for
that particular session. No arguments will be used. Which command will you use? -
✔✔printenv
✔✔In BASH scripting, a blocks of code that you can reuse to perform specific tasks is
called? - ✔✔function
✔✔What metacharacter will the shell interpret as wildcard matching of 1 characters? -
✔✔?
✔✔Conditional statement which contains conditions to be evaluated and actions to
perform if true. - ✔✔if statement
✔✔Use a case statement to evaluate a variable. Which example will evaluate at least
two conditions of the variable and execute a command? - ✔✔case $var in condition1 )
execute ;; condition2 ) execute ;; condition3 ) execute ;; esac
✔✔Select all the parts of a for loop. - ✔✔for
do
done
✔✔What is use to implement logic into a Bash script? - ✔✔control statement
✔✔The line of code, taxtotal=10*$subtotal, is written in a script called taxes.sh. What
conditional statement is written afterward so that if the tax total is greater than 100, the
user will qualify for a bonus? - ✔✔"if [ $taxtotal -gt 100 ] then echo ""Your $taxtotal will
qualify you for a bonus!"" fi"
✔✔Select all the parts of an If statement. - ✔✔if
then
else