linux final study guide
DESCRIPTION
Linux Final Study GuideTRANSCRIPT
1
Send a packet to all computers on the same part of the network network address
network mask
broadcast address
gateway address
Which option for rpm is used to display detailed messages on the screen? -d
-n
-v
-x
Subdirectory through which a set of data is accessed. compiler
interpreter
IDE
RAD
An IP address is represented as a series of four numbers each from_____. 0 to 10
0 to 100
0 to 255
1 to 500
Comp TIA offers a ______ certification program Linux Certified Administrator
Linux+
LPIC1
Certified Linux Engineer program
How are processes started? by the kernel
from a command line
from a graphical desktop
All of the above
2
How can you locate a previously used command from the history list? Use the beginning of a command
Use the history number
Search the history list
All of the above
How do you copy text into x’s internal clipboard? click and drag to select text
double-click text
select and press F4
select and press Ctrl+c
Watch for an “entering setup" message in the first few seconds after turning on your computer. This message varies greatly from computer to computer and also includes the key or keys you need to press to enter BIOS. press F1 key during startup
press Ctrl+F key during startup
hold both mouse buttons during startup
it depends on the system, there is no standard
How is the top command normally started? Top
top -f
top -o ps
top z
How would you execute a script named testscript from the command line? testscript
run testscript
./testscript
exec testscript
How would you refer to the first Ethernet card on a Linux system? /dev/eth0
/etc/eth1
/net/eth0
/dev/eth
3
In VI, the __ command is used to move forward one screen. for
fff
Ctrl+F
>
In vi, anytime you place the cursor on a parenthesis, bracket, or curly brace, (opening or closing), you can press____to jump to the matching item. {
%
[
)
On Linux you must press____to see ping statistics Ctrl+c
Ctrl+s
Ctrl+x
Ctrl+z
OpenOffice.org began as _ , an application suite developed by a German
company RedHatOffice
StarOffice
Officesuite
DirectOffice
Programming tools are collected in a(n) ____. Integrated Development Environment
Rapid Application Development Environment
Toolkit
Shell Script
Which of the following scripts is executed first? /etc/profile
.profile
/etc/bashrc
.bashrc
4
Tabs and spaces included in a program are called ____. punctuation
white space
comments
ignored words
The Linux kernel, system utilities, installation programs and personal productivity application, all make up an ______. release
version
distribution
operating system
The __ command shows you the entire path and file name for anything
containing the text string you indicate. touch
find
slocate
dlocate
The ____is the number of routers that a ping packet can pass through before being discarded. hop count
router number
sequence number
time to live
The ___option causes wget to pause for a random amount of time
between 0 and about 2 seconds between each page so that a statistical
analysis of a server’s web page logs won’t indicate that someone is using
a program like wget to mirror the site. -r
--random-wait
-wait
-w
5
The __ symbol is used to refer to the root directory. .
..
/
\
The _____utility is useful for situation where you have a collection of files such as software development files or documentation that you want to keep updated on two or more systems. mirror
update
sync
rsync
Which option field setting for the mount command permits programs stored on the file system to be executed? HOME
BIN
PATH
EXE
In the Network Configuration window of system-config-network, you can use the New button while viewing the ____ tab to help you locate and configure the correct kernel module for any networking hardware you have added since you installed Linux kernel
binary code
hardware
source code
The ____ command causes the shell to pause for a user to enter
information at the keyboard. next
readLine
get
read
6
You can use the __ command to start a program with an environment
variable setting that is not part of your current environment. export
set
use
env
List of recently entered commands showhistory
list
listhist
history
In the LILO configuration file, the ____ setting specifies how long LILO waits until it starts an operating system.
The ____ command takes a parameter that indicates how long to wait before shutting down the system and a parameter to indicate whether the system should be restarted or halted. delay
shutdown
stop
quit
A while loop uses the same tests as a(n) _________________________ statement. if-then-else
if-then
case
switch
The kernel is normally a file named ____. linux
vlinux
vmlinuz
ker
7
Contains all user accounts on the system /etc/passwd
/etc/users
/etc/group
/etc/shadow
The output of the dill command is used by many programming
commands to automatically make changes to source code files using the
__ command. change
update
patch
uniq
The simplest utilrty for viewing file content is the __ command, which
displays the contents of a file to the screen. file
less
more
cat
The root user always has an ID of 0 Root UID
Which run level is used for system maintenance, does not require logging in with a user name and password and does not provide networking capabilities? 1 Run Level
Using the nice command without any options gives the process a nice level of: 10
20
8
To create a symbolic link, use the_____ ln command
ln command with the -s option
link command
symlink command
In Linux the operations of moving and renaming a file are combined in
one command, the ____________ command. ls
cp
mv
rm
To search in VI, the ____ is followed by the search text. !
/ Search in vi
#
^
To view the files in a directory, you must have______permission for that directory read
write
execute
view
Boot Manager - A program that lets you start one or more operating systems each time you start a computer. (Examples include GRUB and LILO.) GRUB and LILO
GRUB and Live Linux
USB and LILO
DHCP and IP
What command marks the end of an if-then statement? end
end if
fi
then
9
What is the IP address of the local network interface, also called the loopback interface? 0.0.0.1
127.0.0.0
127.0.0.1
255.255.255.255
What information is needed to establish a telnet session? remote host
port number
user name and password
All of the above
What is the name for the SSH client utility? ssh
sshd
sshclient
sshlogin
What is the oldest routing protocol still in common use? OSPF
ARP
RIP
DNS
What is the pipe symbol? | Pipe
Within ispell, the ________ command means ignore this and all future occuences of the word in the document.
<
What symbol does the output of the diff command use to indicate that
the line is found in file 2 but not file 1.
> Output
<>
10
What matches the regular expression [Rr]eunion[01][0-9]? reunion0
Reunion01
Rreunion01
union01
What must the first line of a shell script contain? name of the programmer
name of the shell
date the program was compiled
first statement of the script
When one directory contains another directory, that relationship is
expressed by calling the first a __ and the second a subdirectory. path directory
parent directory
superdirectory
root directory
When used in a loop, the ____ command causes the script to perform the
next iteration of the loop immediately. next
skip
loop
continue
When using anonymous FTP, what should be used as your password? guest
anonymous
your email address
password
When you use a(n) ____ symbol at the beginning of a variable name, the
shell retrieves the value of that variable. :
#
&
$
11
Which command adds the write permission for other users to the file report.doc? chmod g+w report.doc
chmod g=rw report.doc
chmod o+w report.doc
chmod 0=w report.doc
Which boot loader is the default on most Linux systems? MBR
GRUB
LILO
Linux
Which command is used to search the contents of a file? Grep
find
locate
slocate
Which command is used to start the Ethernet interface? ipconfig start eth0
start interface eth0
ipup eth0
./ifup eth0
Which command sorts the file report.doc? sort report.doc
sortfile report.doc
grep report.doc
diff report.doc
Which command temporarily changes you access rights to those of another user? switch
use
user
su
12
The members of each defined group are listed in the_____file. /etc/passwd
/etc/password
/etc/group
/etc/shadow
Which flag for the tail command is often used to view log files? -a
-f
-l
-z
Which information is provided by the wc command? number of words
number of lines, words and characters
number of words, paragraphs, and pages
number of words and lines
Which keyboard shortcut is the emergency exit from the X window screen? Alt+Tab
Ctrl+d
Ctrl+Alt+Backspace
Ctrl+Alt+Delete
Which of the following are currently the most widely used compression utilities in Linux? zip and unzip
compress and uncompress
bzip2 and bunzip2
gzip and gunzip
13
As a simple example of the power of regular expressions, a single regular expression can describe each of the patterns in the following sentences: File names with the digits “18” followed by any other digits
Lines containing the word “President” or “president”
File names that end with TIFF,TIF,Tif,Tiff, tif, or tiff
All of the above
Which of the following commands uses command line expansion? echo Your file was processed on ‘date +%m/%d/%y’
echo Your file has been processed
echo \;
cp file /tmp
Which of the following is a standard Linux shell prompt? [nwells@inverness nwells]$
<nwells@inverness>#
[prompt]$
>
Which of the following is equivalent to :wq in VI? ZZ
:w!
:q!
:s
Which of the following is more secure telnet
SSH
rsh
rlogin
Which of the following scripts is executed first? /etc/profile
.profile
/etc/bashrc
.bashrc
14
Which of the following types of user account is able to perform any operation on a Linux system.? Root
regular
special
system
Which option for wget turns on recursive downloads? -a
-c
-r
-z
Which protocol is used to map IP addresses to MAC addresses? MACIP
DNS
DHCP
ARP
Which regular expression means “execute a, b, and c”? $abc
[^abc]
[abc]
{abc}
Which subdirectory holds executable programs, typically including
system utilities? /dev
/bin
/sbin
/var
Which vi command is used to begin inserting text at the end of the
current line? a
A
i
I
15
Which VI command means go to the end of the file? Shift+G
Shift+End
Shift+E
:end
Which vi command moves the cursor one line up? h
j
k
l
Who founded the free software foundation? Dennis Ritchie
Ken Thompson
Richard Stallman
Linus Torvalds
Who founded Linux? Dennis Ritchie
Ken Thompson
Richard Stallman
Linus Torvalds
Refers to the entire line being processed in awk $0
$1
#0
#1
You can access online manual pages for most Unux commands by using
the_ command help
show
?
man
16
You can change the user and group assigned to a file or directory by using the_____command. chuser
chown
modown
own
The ____ option for the useradd command specifies the number of days after the password expires until the account is disabled. -d
-f
-n
Which option for rpm is used to display detailed messages on the screen? -v
You can use the __ Key combination to suspend a job that the shell is busy
running. Alt+S
Ctrl+A
Ctrl+z
Shift+C
__ permissions apply to all users on the Linux system who are not the
owner of the file or directory in question and are not members of the
group assigned to the file or directory. User
Other
Group
Standard
____ is the process of converting a domain name to an IP address, or vice versa. Unmapping
Hashing
Resolving
Mapping