Final Exam Chapter 1-18
A user cannot delete a file if they do not own it. True or False? True False
False
A value of 0 in the "minimum" password aging field means the user cannot change their password. True or False? True False
False
Deleting a source file will break an associated hard link. True or False? True False
False
The RSA key fingerprint allows the dig command to connect to remote systems. True or False? True False
False
The chown command permits changing group ownership done by root only. True or False? True False
False
The groupmod command can be used to add users to a group. True or False? True False
False
By default, the zip command replaces uncompressed files with compressed files. True or False? True False
True
Sudo privileges allow users to execute commands as another user. True or False? True False
True
The process (ps) command shows only processes running in the current shell by default. True or False? True False
True
The semicolon (;) can be used to separate multiple commands to be executed in order. True or False? True False
True
When using the cp command, you must provide both a source and a destination. True or False? True False
True
Which option for the usermod command can be used to specify a user's group ID (either primary or secondary)? (choose two) a. -g b. -S c. -s d. -G
a. -g d. -G
When issuing the service network restart command, which of the following occurs? a. ...takes down all network interfaces, re-reads all related configuration files and then the networking for the system is restarted. b. ...the networking for the system is stopped and then started back up. c. ...brings up all network interfaces, re-reads all related configuration files and then the networking for the system is restarted.
a. ...takes down all network interfaces, re-reads all related configuration files and then the networking for the system is restarted.
The top-level directory on a Linux system is represented as: a. / b. /home c. /root d. C:
a. /
To start searching a man page, the first key you press is: a. / b. f c. s d. !
a. /
Which of the following files contains user IDs? a. /etc/passwd b. /etc/shadow c. /etc/group d. /etc/usr
a. /etc/passwd
Apple's OS X is: (choose three) a. A fully certified UNIX distribution b. Tightly integrated with Apple hardware c. Partially based on code from the FreeBSD project d. Primarily used to manage network services e. Derived from Linux f. Able to natively run Windows binaries
a. A fully certified UNIX distribution b. Tightly integrated with Apple hardware c. Partially based on code from the FreeBSD project
Hidden files are files that begin with what character? a. A period (.) b. An asterisk (*) c. A plus (+) d. A dash (-)
a. A period (.)
The two main families of Linux shells are: (choose two) a. Bourne Shell b. Python Shell c. Korn shell d. Emacs e. C Shell
a. Bourne Shell e. C Shell
Software that allows hardware devices to communicate with the installed operating system is called? a. Drivers b. Instructions c. Packages d. Programs
a. Drivers
Microsoft Windows: (choose three) a. Is generally backwards compatible with previous versions b. Offers both desktop and server products c. Has a Linux compatibility mode d. Has a short maintenance cycle e. Has a scripting environment called PowerShell f. Has a new desktop version every year.
a. Is generally backwards compatible with previous versions b. Offers both desktop and server products e. Has a scripting environment called PowerShell
The free command outputs statistics about: a. Memory usage b. Disk usage c. Software usage d. CPU usage
a. Memory usage
The Free Software Foundation believes that: (choose two) a. Software should be free to modify b. People should write software with no expectation of making money c. Software should not have copyright d. Software should be free to share e. No money should ever change hands
a. Software should be free to modify d. Software should be free to share
In virtualization, what are the host and guest? (choose two) a. The host is the machine that runs the virtual machines b. The guest is the machine that runs the virtual machines c. The terms can be used interchangeably d. A host is a virtual machine e. A guest is a virtual machine
a. The host is the machine that runs the virtual machines e. A guest is a virtual machine
Which command would list files that do not begin with a "T" or a "W"? a. echo /etc/[!TW]* b. echo /etc/[*TW]! c. echo /etc/!TW d. echo /etc/*[TW!]
a. echo /etc/[!TW]*
Which of the following commands will display lines that contain either start or end? a. egrep 'start|end' file.txt b. egrep start end file.txt c. egrep start&end file.txt d. egrep (start|end) file.txt
a. egrep 'start|end' file.txt
Which of the following commands will display the IP address on a Linux system? a. ifconfig b. route c. ipconfig d. dig
a. ifconfig
Which of the following commands would create a hard link, link to file? a. ln file link b. ln -s link file c. ln link file d. ln -s file link
a. ln file link
To get help on using the info command, execute: (choose two) a. man info b. info info c. help info d. info -q
a. man info b. info info
The number of users logged in is in a variable called USERS. How would you test to see if 5 users are logged in? a. test $USERS -eq 5 b. test $USERS,5 c. test -f USERS=5 d. test $USERS = 5 e. test $USERS -a 5
a. test $USERS -eq 5
Which of the following commands, run as root, will prevent the user bob from logging in? a. usermod -L bob b. usermod -D bob c. usermod -d bob d. usermod -l bob
a. usermod -L bob
The ls command without options or arguments... a. ...prompts for a directory to list. b. ...lists the contents of the current directory. c. ...lists the contents of a user's home directory. d. ...generates an error as this command requires arguments.
b. ...lists the contents of the current directory.
Setting setgid on a directory... a. ...will allow scripts in the directory to be executed as the group owner of the directory. b. ...will set the group owner of all files created in the directory to the group owner of the directory. c. ...is not allowed by the system. d. ...does nothing.
b. ...will set the group owner of all files created in the directory to the group owner of the directory.
To make changes permanent for kernel parameter files found under /proc/sys, the following file can have entries added to it: a. /etc/sysinfo.conf b. /etc/sysctl.conf c. /etc/procctl.conf d. /etc/procsys.conf
b. /etc/sysctl.conf
The if command looks for what exit code to consider a condition to be true? a. 255 b. 0 c. 2 d. 1 e. 10
b. 0
Bundling utilities, management tools, and application software with a Linux kernel is called a: a. A trademark b. A distribution of Linux c. A type of hardware d. A text editor
b. A distribution of Linux
In general, for which of the following would you want to use lossless compression? a. A JPEG image b. A log file c. An encrypted email d. A movie e. An mp3 audio file
b. A log file
An interpreted programming language: (choose two) a. Requires a compilation step but no linking step b. Is converted into machine specific instructions as the program runs c. Tends to offer more features than compiled languages d. Requires a linking step but no compilation step e. Takes fewer resources to run than a compiled language
b. Is converted into machine specific instructions as the program runs c. Tends to offer more features than compiled languages
Which of the following are valid partitioning types? (choose two) a. PC b. MBR c. GPT d. BIOS
b. MBR c. GPT
Which of the following commands will set setuid for /usr/bin/program? a. chmod 1755 /usr/bin/program b. chmod 4755 /usr/bin/program c. chmod 2755 /usr/bin/program d. None of the above
b. chmod 4755 /usr/bin/program
To be able to output messages to the screen, use the _______ command: a. print b. echo c. display d. type
b. echo
Which of the following commands will display the groups that the user bob belongs to? a. group bob b. id bob c. all bob d. groups -a
b. id bob
The _____ command can be used to find any file, not just commands or man pages. a. whatis b. locate c. whereis d. apropos
b. locate
Which of the following commands will check hard disk GPT partitions? (choose three) a. sfdisk b. sgdisk c. gdisk d. cgdisk e. gfdisk
b. sgdisk c. gdisk d. cgdisk
Which of the following commands can be used to display socket statistics, and supports all major packet and socket types? a. route b. ss c. ifconfig d. top
b. ss
Which command will show what is inside the compressed tarball with a name of foo.tar.gz? a. tar -tf foo.tar.gz b. tar -tzf foo.tar.gz c. tar -xf foo.tar.gz d. tar -lf foo.tar.gz e. tar -tjf foo.tar.gz
b. tar -tzf foo.tar.gz
Cloud computing is: a. Requires fewer resources because systems are shared among many users b. Allows users in different geographical regions to work together in real time c. All are correct d. Is made possible by faster internet speeds e. Is useful for both business and home users
c. All are correct
HOME is an example of _________. a. A path variable b. A local variable c. An environment variable d. An alias e. An internal command
c. An environment variable
A software release cycle describes: a. How often security fixes are implemented b. How often the software's memory is released back to the operating system c. How often upgrades come out for software d. How often the computer must be rebooted e. How often the computer must be upgraded to support new software
c. How often upgrades come out for software
A copyleft provision in a software license means: a. You must provide support for your modifications b. You may not link against third party closed source software c. If you redistribute the software, you must distribute the source to any changes you make d. You must provide free copies of the software if you use it e. You give up your copyright to the software
c. If you redistribute the software, you must distribute the source to any changes you make
Which of the following are properties of a strong password? (choose three) a. Based on easy to remember items like birthdays b. Long so that it can be reused on multiple sites c. Includes symbols d. At least 10 characters long e. A mix of upper and lower case
c. Includes symbols d. At least 10 characters long e. A mix of upper and lower case
Linux originally only ran on: a. Xerox copy machines b. Specialized processor chips c. Intel 386 PCs d. Raspberry Pi computers 4. Macintosh
c. Intel 386 PCs
You type gzip myfile.tar. What happens? (choose two) a. An error; you forgot to specify the file with -f b. myfile.tar is unarchived into the current directory c. myfile.tar is removed d. An error; you forgot to pass the name of the output file e. myfile.tar.gz holds a compressed version of myfile.tar
c. myfile.tar is removed e. myfile.tar.gz holds a compressed version of myfile.tar
Which option can be used with the rm command to prompt before deleting? a. l b. A c. -P d. -i
d. -i
What directory contains a user's home directory? a. /rootfs b. /user c. / d. /home
d. /home
Which file contains the information passed to the kernel at boot time? a. /proc/kernel b. /proc/kopts c. /proc/kargs d. /proc/cmdline
d. /proc/cmdline
The directory where additional documentation for software packages most likely can be found is: a. /var/share/doc b. /var/lib/doc c. /usr/software/doc d. /usr/share/doc
d. /usr/share/doc
The command ls -S will sort files: a. By size, smallest to largest b. By modification date, newest to oldest c. By number of symlinks, largest to smallest d. By size, largest to smallest
d. By size, largest to smallest
A license where you don't have access to the source code is called: a. Sourceless b. Impaired source c. Open source d. Closed source
d. Closed source
A file begins with #!/bin/csh. This means: a. This is a Perl script b. The operator should not be using /bin/csh c. C Shell compatibility mode is enabled d. Running the script will invoke /bin/csh to interpret the rest of the file e. Nothing, this is a comment
d. Running the script will invoke /bin/csh to interpret the rest of the file
Error messages generated by commands are sent where by default? a. STDIN b. Log files c. STDOUT d. STDERR
d. STDERR
GIDs under 500 (or 1000) are usually reserved for what kind of groups? a. Are not used for groups, but for user accounts b. Administrators c. User private groups (UPG) d. System use
d. System use
Embedded Systems means: a. Companies must share their changes b. You can view the software's source code c. Businesses cannot charge anything for the software, only the hardware d. Systems designed to do a specific task on hardware optimized for only that purpose e. Users must support the systems themselves
d. Systems designed to do a specific task on hardware optimized for only that purpose
What does it mean when a work is placed in the public domain? a. The work was done by a government agency b. You may not use the work for commercial purposes c. The author has died d. The author has relinquished the copyright on the work e. You must redistribute changes to the software
d. The author has relinquished the copyright on the work
Which of the following commands will display only lines that begin with test? a. grep *test file.txt b. grep &test file.txt c. grep $test* file.txt d. grep ^test file.txt
d. grep ^test file.txt
The _______ command will print a list of the commands that you've previously executed. a. list b. eval c. exec d. history
d. history
Which of the following commands will list hidden files as well as their ownership? a. ls -a b. ls -z c. ls -l d. ls -la
d. ls -la
The first line of this command displays how long the system has been running since being rebooted. a. id b. getent c. who d. w e. su
d. w
Traditional UNIX systems allowed users to belong to how many groups? a. 65,000 b. 10,000 c. 1 d. 256 e. 16
e. 16
Most of nano's commands take the form of: a. Alt and another character b. Escape followed by another character c. The F1 through F12 function keys d. Mouse clicks e. Control and another character
e. Control and another character
