Questions and CORRECT Answers
The exit status is used with the test command and is a value that represents the value of a test,
such a value of 0 to show that the results of the test are true or a value of 1 to show the test
results are false. - CORRECT ANSWER - What is an exit status and with what command
is it used?
/etc/.bashrc
/etc/profile - CORRECT ANSWER - In your organization everyone uses the Bash shell in
Red Hat Enterprise Linux andall users use the same aliases and shell functions. In what file or
files can the systemadministrator place these aliases and functions so they are available to all
users? (Choose all that apply.)
stringtest()
{
test -z $text
echo $?
} - CORRECT ANSWER - Create a simple function that determines if the string variable,
text, contains no characters (is of zero length).
test /source/results -nt /data/results
test /source/results -nt /data/results ; echo $? - CORRECT ANSWER - Create a statement
that enables you to determine if the file /source/results is newer
The top command enables the user to monitor CPU-intensive tasks. A process/task can be
stopped when you enter the k command and provide the PID. - CORRECT ANSWER -
What is the purpose of the top command and how can you use it to stop a process?
,Network protocol communications
Network connections established by the host computer
Network routing information
Information about computers remotely logged onto the host computer
Data and communications errors - CORRECT ANSWER - Name types of information that
you can obtain using netstat.(Choose all that apply)
/etc/exports
/etc/hosts.allow
/etc/hosts.deny - CORRECT ANSWER - Name some files that should be modified for
security when using NFS. (Choose all that apply).
du - CORRECT ANSWER - You are gathering information about the amount of disk space
occupied by users' home directories.
free - CORRECT ANSWER - The ____ command displays the amount of free and used
memory in the system.
iptables - CORRECT ANSWER - The ____ utility manages a firewall and packet filtering.
RPC - CORRECT ANSWER - A(n) ____ enables services and software on one computer
to use services and software on a different computer
0 - CORRECT ANSWER - dump level ____ is used to back up all files.
true - CORRECT ANSWER - When you use restore, by default it copies back to your
current working directory.
,cmp - CORRECT ANSWER - You can use the ____ utility to compare the contents of two
files, and if there is a difference, the command reports the location at which the files first start to
differ
top - CORRECT ANSWER - The ____ command displays a listing of the most CPU-
intensive tasks, such as the processor state, in real time (the display is updated every five seconds
by default).
make - CORRECT ANSWER - The ____ utility maintains program source code.
-C - CORRECT ANSWER - The ____ option of the ispell utility is used to ignore
concatenated words.
true - CORRECT ANSWER - Unlike top, the free utility runs and then automatically exits.
512 - CORRECT ANSWER - When you use the du utility, file usage is expressed in the
number of ____-byte blocks (default) or by the number of bytes (the -b option).
netstat - CORRECT ANSWER - The ____ utility gathers statistics and information about
IP communications on a computer.
ping - CORRECT ANSWER - The ____ utility offers a simple way to test connections
dd - CORRECT ANSWER - Possessing a rich set of options that allow it to handle copies
when other methods are inappropriate, the ____ command can handle conversions to and from
legacy EBCDIC to ASCII.
1024 - CORRECT ANSWER - The df utility reports the number of ____-byte blocks that
are allocated, used, and available; the percentage used; and the mount point for mounted file
systems.
, false - CORRECT ANSWER - An IP address uses a dotted decimal notation that consists
of 16-bit binary numbers (octets) separated by periods used to identify a computer or network
device and the network it is on.`
false - CORRECT ANSWER - Most computers store text using EBCDIC codes.
+ add
- subtract
* multiply
/ divide - CORRECT ANSWER - What arithmetic operators are used in Perl scripts?
Is used to reference a file in Perl.
It is the name for an I/O connection and is used to open, read, write to, or close a file that you are
accessing. - CORRECT ANSWER - What is a filehandle in Perl? (Choose all that apply.)
Awk does not require explicitly setting up looping structures.
Awk uses fewer lines of code for pattern-matching extractions.
Awk uses BEGIN and END blocks. - CORRECT ANSWER - Name at least one difference
between Perl and Awk programming. (Choose all that apply.)
variables, constants, scalars, numbers, strings, arrays, and hashes. - CORRECT
ANSWER - Name five data types used by Perl. (Choose all that apply.)
A menu can be set up and launched from a Panel in GNOME. - CORRECT ANSWER -
Your department is developing its own set of marketing applications. In a meeting, a member of
the department asks whether a menu can be set up in the GNOME desktop for easy access to the
new applications .What is your response?