Final exam meerkeuze Flashcards
One of the jobs of the kernel is to:
Manage the system’s resources Turn source code into machine code Load the operating system after the computer is turned on Transfer mail from one machine to another
Manage the system’s resources
Unix is:
(choose two)
An operating system A type of hardware A trademark A distribution of Linux A text editor
An operating system
A trademark
Linux is written in:
C .NET C++ Java Perl
C
Source code refers to:
The version of a program that the computer runs on the CPU The license that dictates how you may use and share the software The interface that software uses to talk to the kernel A human readable version of computer software
A human readable version of computer software
What is the standard option to provide a command line program to view its documentation?
–info –doc –help -h
–help
The command man -k is the same as the command apropos.
True or False?
True False
True
The whatis command is the same as man -w.
True False
False
The directory where additional documentation for software packages most likely can be found is:
/var/lib/doc /usr/software/doc /usr/share/doc /var/share/doc
/usr/share/doc
Hidden files are files that begin with what character?
A plus (+) A dash (-) A period (.) An asterisk (*)
.
What option for the ls command will display all files, including hidden files?
- w - H - L - a
-a
The top-level directory on a Linux system is represented as:
/ /root /home C:
/
Is the following path absolute or relative?
/etc/ppp
Relative Absolute
Absolute
Is the following path absolute or relative?
sysadmin/Documents
Relative Absolute
Relative
Compression on a file works by:
Removing the high order bit from each byte Consolidating multiple files into one Removing redundant information Storing most of the data on removable media and just leaving a pointer Eliminating gaps within the file
Removing redundant information
In general, for which of the following would you want to use lossless compression?
An mp3 audio file A movie A log file A JPEG image An encrypted email
A log file
Lossy compression:
(choose three)
Is often used with documents Decompresses to an identical version as the original Sacrifices some quality Usually results better compression than lossless Is often used with images
Sacrifices some quality
Usually results better compression than lossless
Is often used with images
You type gzip myfile.tar. What happens?
(choose two)
myfile.tar.gz holds a compressed version of myfile.tar An error; you forgot to pass the name of the output file An error; you forgot to specify the file with –f myfile.tar is unarchived into the current directory myfile.tar is removed
myfile. tar.gz holds a compressed version of myfile.tar
myfile. tar is removed
Error messages generated by commands are sent where by default?
STDIN Log files STDERR STDOUT
STDERR
A successful command will print output to STDOUT.
True or False?
True False
True
Which of the following commands will direct error messages to the file, error.log?
(choose one)
ls /root > error.log ls /root >> error.log ls /root 2> error.log ls /root $> error.log
ls /root 2> error.log
A pipe allows you to…
…send the same input to multiple commands. …send the output of one command to another. …send the output of a command to a file. …type multiple commands at one prompt.
…send the output of one command to another.
Channel 2 is:
STDERR STDIN STDALL STDOUT
STDERR
The echo command:
Tests a variable for duplication Duplicates the input stream to the output stream Is used for variable assignment Is used to output text to the console Copies variables from one to another
Is used to output text to the console
A file begins with #!/bin/csh. This means:
C Shell compatibility mode is enabled Running the script will invoke /bin/csh to interpret the rest of the file The operator should not be using /bin/csh This is a Perl script Nothing, this is a comment
Running the script will invoke /bin/csh to interpret the rest of the file
Which are appropriate editors for writing shell scripts?
(choose two)
nano LibreOffice Writer /bin/bash vi Firefox
nano
vi
Most of nano’s commands take the form of:
Escape followed by another character Mouse clicks The F1 through F12 function keys Alt and another character Control and another character
Control and another character
What does this shell script do? FOO=/tmp/foo if [ ! –d $FOO ]; then mkdir $FOO fi
Nothing, since there is a problem with the conditions in the if statement Makes the /tmp/foo directory if a file by that name exists Creates /tmp/foo if it does not exist Creates /tmp/foo and raises an error if there is a problem Outputs a message to the screen
Creates /tmp/foo if it does not exist
Which of the following are valid CPU types for Intel-based platforms?
(choose two)
48 bit 24 bit 64 bit 32 bit
64 bit
32 bit