Unix Final Study Guide
When using the mount command, you use the ____ option to specify a file system to mount. A) -f B) -d C) -t D) -m
C) -t
In a flowchart, a(n) ____ is an on-page connector to continue process flow. A) Diamond B) Rectangle C) Circle D) Arrow
C) Circle
61) ____ variables are used to store information about the setup of the operating system, and after they are set up, you typically do not change them. A) Global B) Environment C) Configuration D) Shell
C) Configuration
The line in the script for setting the Bash shell is: ____. A) #!/bin/bash B) !#/bin/bash C) #/bin/bash D) !/bin/bash
A) #!/bin/bash
To run a program in the background, append the ____ character to the end of the command used to start the program. A) & B) * C) $ D ) @
A) &
The ____ option of the diff command ignores blanks that repeat. A) -b B) -B C) -c D) -C
A) -b
The ____ directory contains the kernel (operating system) images. A) /boot B) /bin C) /dev D) /etc
A) /boot
69) When editing a text file with vi, if you want to save your changes and exit right away, you can use ____ or ZZ from command mode. A) :wq B) :q! C) :se D) :sq
A) :wq
84) The ____ Emacs command is used to move the cursor to the beginning of the file. A) Alt+< B) Ctrl+< C) Alt+b D) Ctrl+b
A) Alt+<
76) The ____ Emacs command is used to mark the cursor location. A) Ctrl+@ B) Ctrl+> C) Ctrl+< D) Ctrl+m
A) Cntrl+@
73) The clear command has no options or arguments. A) True B) False
A) True
78) Like the vi editor, Emacs lets you search for specific text. A) True B) False
A) True
88) A directory is a special kind of file that can contain other files and directories. A) True B) False
A) True
93) Most shells keep a list of your recently used commands and allow you to recall a command without retyping it. A) True B) False
A) True
94) The command cd source uses relative path addressing. A) True B) False
A) True
A high-level language is a computer language that uses English-like expressions. A) True B) False
A) True
As a general rule, the swap partition should be the same size as the amount of RAM in your computer. A) True B) False
A) True
One of the most effective utilities for auditing system performance is the top command. A) True B) False
A) True
The rm - r command can be used to delete a directory that is not empty. A) True B) False
A) True
Unlike top, the free utility runs and then automatically exits. A) True B) False
A) True
When you use restore, by default it copies back to your current working directory. A) True B) False
A) True
You can complete a project using awk that you cannot complete using a combination of paste, cut, sort, and join. A) True B) False
A) True
You can use the less command with a directory to view its contents one screen at a time, such as less/sbin. A) True B) False
A) True
You should omit spaces when you assign a variable without using single or double quotation marks around its value. A) True B) False
A) True
89) To append new lines in sed, you must use the ____ command A) a\ B) -a C) \a D) >a
A) a\
You can use the ____ utility to compare the contents of two files, and if there is a difference, the command A) cmp B) compare C) diff D) difference
A) cmp
You can access vi's ex mode by pressing Esc, and then typing a(n) ____ to enter extended commands at the bottom of the screen. A) colon (:) B) semicolon (;) C) tilde (~) D) exclamation sign (!)
A) colon (:)
77) The ____ reads the lines of code that the programmer wrote in the source file and converts them to the appropriate machine-language instructions. A) compiler B) linker C) assembler D) interpreter
A) compiler
63) In the Linux Bash shell, the ____ key combination moves the cursor to the previous letter. A) Ctrl+b B) Alt+d C) Alt+l D) Ctrl+a
A) ctrl+b
64) In a flowchart, a(n) ____ is used to represent a decision. A) diamond B) rectangle C) circle D) arrow
A) diamond
A ____ is a logic diagram that uses a set of standard symbols to visually explain the sequence of events from the start of a process to its end point. A) flowchart B) map C) block chart D) psuedocode
A) flowchart
The UNIX file system (ufs) supports ____, which automatically move data on damaged portions of disks to areas that are not damaged. A) hot fixes B) backups C) recovery fixes D) extents
A) hot fixes
The ____ utility manages a firewall and packet filtering. A) iptables B) netstat C) passwd D) wall
A) iptables
Character special files are used by input/output devices for communicating one character at a time, providing what is called ____ data. A) raw B) binary C) ASCII D) block
A) raw
74) ____ is a selection command. A) uniq B) awk C) sort D) sed
A) uniq
The ____ option of the diff command does not compare for blank lines. A) -b B) -B C) -c D) -C
B) -B
The ____ directory contains executables, which are the programs needed to start the system and perform other essential system tasks. A) /boot B) /bin C) /dev D) /etc
B) /bin
68) 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. A) 512 B) 1024 C) 2048 D) 4096
B) 1024
79) Using ____ plus a command-line command enables you to start a new shell, run the command, and then go back into the vi editor. A) :q B) :! C) :c D) :$
B) :!
65) Stephen Bourne at AT&T Bell Labs developed the ____ shell as the first UNIX command processor. A) Bash B) Bourne C) C D) Korn
B) Bourne
67) Shell scripts can automatically access variables created and assigned on the command line. A) True B) False
B) False
72) For some languages, such as Chinese, the ASCII character set is preferred instead of the Unicode character set. A) True B) False
B) False
81) The less command scrolls only down, whereas more enables you to scroll down and up. A) True B) False
B) False
86) When using wc, you cannot specify all three options (-l, -w and -c) in the command line at the same time. A) True B) False
B) False
A disadvantage of ufs is that it does not support journaling. A) True B) False
B) False
In UNIX/Linux, all shells support the same commands and programming statements. A) True B) False
B) False
Shell scripts run more quickly than compiled programs. A) True B) False
B) False
When you use the paste command, by default, the pasted results appear in columns separated by commas. A) True B) False
B) False
You can use the < operator to redirect a command's output from the screen to a file. A) True B) False
B) False
87) The two most popular hard disk interfaces are IDE and ____. A) ATA B) SCSI C) EIDE D) RAID
B) SCSI
59) The ____ utility schedules a command to run at a preset time. A) batch B) crontab C) call D) at
B) crontab
A byte consists of ____ binary digits. A) four B) eight C) ten D) twelve
B) eight
Compiled and interpreted files that can be run are called ____ program files. A) binary B) executable C) assembly D) dynamic
B) executable
91) In Linux, the native file system is the ____, which is installed by default. A) ufs B) ext fs C) ReiserFS D) jfs
B) ext fs
75) The UNIX/Linux shell acts as a(n) ____ when reading script files. A) compiler B) interpreter C) assembler D) linker
B) interpreter
97) The ____ utility gathers statistics and information about IP communications on a computer. A) ping B) netstat C) traceroute D) ifconfig
B) netstat
85) In a flowchart, a(n) ____ is used to represent a process. A) diamond B) rectangle C) circle D) arrow
B) rectangle
98) ____ are programs that perform operations such as copying files, listing directories, and communicating with other users. A) Extents B) Utilities C) Applications D) Services
B) utilities
83) The ____ statement continues to loop and execute commands or statements as long as a given condition or set of conditions is true. A) for B) while C) esac D) case
B) while
58) The .bashrc file is a hidden file contained in ____ directory. A) the root B) your home C) the /usr D) the /home
B) your home
The ____ option of the diff command shows lines surrounding the line that differs. A) -d B) -D C) -c D) -C
C) -c
60) ____ are typically not compiled into machine code prior to running, but are executed through an interpreter. A) Programs B) Executable programs C) Scripts D) Libraries
C) Scripts
____ is an Internet terminal emulation program. A) IP B) Emulab C) Telnet D) Terminal
C) Telnet
95) ____ is the default file name for the output of program compilation procedures. A) out.a B) obj.a C) a.out D) a.obj
C) a.out
92) You can use the ____ command to show the system calendar. A) clndr B) syscal C) cal D) calendar
C) cal
Logic structures are also called ____ structures. A) decision B) sequential C) control D) programming
C) control
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. A) tee B) convert C) dd D) df
C) dd
100) The root of a file system is denoted by the ____. A) dot (.) B) dot dot (..) C) forward slash (/) D) backward slash (\)
C) forward slash (/)
The term ____ refers to a "black hole"; any data sent to this device is gone forever. A) void B) root C) null D) console
C) null
The ____ redirects the output of one command to the input of another command. A) output redirection operator (>) B) input redirection operator (<) C) pipe operator(|) D) tilde (~)
C) pipe operator (|)
In shell scripts, comment lines begin with a(n) ____. A) tilde (~) character B) dollar ($) sign C) pound (#) symbol D) exclamation (!) sign
C) pound (#) symbol
62) In UNIX/Linux, text files and binary files are considered to be ____ files. A) executable B) document C) regular D) dynamic
C) regular
System administrators and programmers refer to standard output as ____. A) sout B) stout C) stdout D) standardout
C) stdout
66) The second step in the program development cycle is ____. A) creating program specifications B) coding the program C) the design process D) debugging
C) the design process
When you create a script, you should include the command that sets the particular shell to use on ____. A) the configuration file B) your login script C) the first line of the script D) the last line of the script
C) the first line of the script
56) In the vi editor, lines containing a(n) ____ are not part of the file; they indicate lines on the screen only. A) colon (:) B) semicolon (;) C) tilde (~) D) exclamation sign (!)
C) tilde (~)
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). A) stat B) netstat c) top d) ds
C) top
71) The ____ command removes duplicate lines from a file. A) grep B) dup C) uniq D) diff
C) uniq
In the Linux Bash shell, the ____ key combination deletes the content of the command line from the current cursor position to the end of the command line. A) Ctrl+b B) Alt+d C) Ctrl+k D) Ctrl+a
Ctrl+k
The ____ option of the ping command displays only a summary of the results. A) -s B) -r C) -c D) -q
D) -q
The ____option of the uniq command instructs it to generate as output only the lines of the source file that are not duplicated successively. A) -d B) -s C) -o D) -u
D) -u
The ____ directory contains configuration files that the system uses when the computer starts. A) /boot B) /bin C) /dev D) /etc
D) /etc
90) If you plan to have multiple users access a system, you can create a ____ partition, which is the home directory for all users' directories. A) /root B) /etc C) /usr D) /home
D) /home
In a flowchart, a(n) ____ is used to indicate process flow. A) diamond B) rectangle C) circle D) arrow
D) arrow
82) ____ gives the owner read, write, and execute permissions. A) chmod 155 B) chmod 551 C) chmod 577 D) chmod 755
D) chmod 755
Each record in the /etc/passwd file is simply a record with variable-length fields separated by ____. A) dashes (-) B) commas (,) C) semicolons (;) D) colons (:)
D) colons (:)
The ____ command locates identical lines within two identically sorted files. A) diff B) sed C) uniq D) comm
D) comm
96) The vi editor's ____ mode is started by pressing Esc. A) edit B) insert C) ex D) command
D) command
The vi editor works in three modes: insert mode, ____ mode, and extended mode. A) edit B) line C) screen D) command
D) command
41) The command > accountsfile ____. A) Deletes de file accountsfile B) is not valid in UNIX/Linux systems C) displays the contents of the file accountsfile on the screen D) creates an empty file called accountsfile
D) creates an empty file called accountsfile
The ____ utility manages concurrent access to files in a hierarchy. A) tree B) rlog C) rcs D) cvs
D) cvs
The UNIX/Linux ____ command displays the system date, which the system administrator maintains. A) Today B) Sysdate C) System D) Date
D) date
You can start Emacs by entering the ____ command in the terminal window or at a command line in UNIX/Linux. A) e B) em C) emcs D) emacs
D) emacs
80) A(n) ____ is used to reduce file fragmentation, because a block of contiguous disk storage can be reserved for a file. A) partition B) node C) journal D) extent
D) extent
57) The ____ command displays the amount of free and used memory in the system. A) mem B) stat C) memstat D) free
D) free
99) To view a list of the files in a directory, including the hidden files, you should enter ____. A) ls -l B) ls -r C) ls -h D) ls -a
D) ls -a
The exclusive use of 0s and 1s as a way to communicate with the computer is known as ____ language. A) mathematical B) logical C) binary D) machine
D) machine
The ____ utility offers a simple way to test connections. A) ifconfig B) test C) netstat D) ping
D) ping
____ is NOT a selection command. A) comm B) diff C) grep D) sed
D) sed
The ____ partition acts like an extension of memory, so that UNIX/Linux have more room to run large programs. A) backup B) primary C) virtual D) swap
D) swap