Midterm (Multiple Choice) Flashcards

1
Q

Linux uses the freeware ____ shell as its default command interpreter.

a. Bash c. C
b. Bourne d. Korn

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The UNIX/Linux ____ command displays the system date, which the system administrator maintains.

a. today c. system
b. sysdate d. date

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

You can use the ____ command to show the system calendar.

a. clndr c. cal
b. syscal d. calendar

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

To determine information about who is logged in, you can use the ____ command.

a. whatis
b. who
c. whois
d. whoami

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In the Linux Bash shell, the ____ key combination moves the cursor to the previous letter.

a. Ctrl+b c. Alt+l
b. Alt+d d. Ctrl+a

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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 c. Ctrl+k
b. Alt+d d. Ctrl+a

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In the Linux Bash shell, the ____ key combination moves the cursor to the position just before the first character of the next word.

a. Alt+l c. Ctrl+k
b. Alt+d d. Ctrl+a

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In the Linux Bash shell, the ____ key combination deletes a word or consecutive characters.

a. Ctrl+b c. Alt+l
b. Alt+d d. Ctrl+a

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In the Linux Bash shell, the ____ key combination moves the cursor to the beginning of the command line.

a. Ctrl+b c. Alt+l
b. Alt+d d. Ctrl+a

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

You can type more than one command on the command line by separating commands with a ____.

a. vertical bar (|) c. semicolon (;)
b. colon (:) d. dash (-)

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A ____ is used to refer to the user’s home directory.

a. dot (.)
b. dollar sign ($)
c. forward slash (/)
d. tilde (~)

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

You can change your password, if necessary, by using the ____ command, but you must know your current password to change it.

a. pwd c. passwd
b. chpwd d. password

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The head and tail commands, allow you to view the first few or last few lines of a file (____ lines by default).

a. five c. fifteen
b. ten d. twenty

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

To append output to an existing file, you use ____.

a. > c. <
b.&raquo_space; d. <

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In Linux, the native file system is the ____, which is installed by default.

a. ufs c. ReiserFS
b. ext fs d. jfs

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

A(n) ____ is used to reduce file fragmentation, because a block of contiguous disk storage can be reserved for a file.

a. partition c. journal
b. node d. extent

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The root of a file system is denoted by the ____.

a. dot (.) c. forward slash (/)
b. dot dot (..) d. backward slash ()

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The ____ directory contains executables, which are the programs needed to start the system and perform other essential system tasks.

a. /boot c. /dev
b. /bin d. /etc

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

The ____ directory contains the kernel (operating system) images.

a. /boot c. /dev
b. /bin d. /etc

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The ____ directory contains configuration files that the system uses when the computer starts.

a. /boot c. /dev
b. /bin d. /etc

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

When using the mount command, you use the ____ option to specify a file system to mount.

a. -f c. -t
b. -d d. -m

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

A(n) ____ path begins at the root level and lists all subdirectories to the destination file.

a. root c. absolute
b. primary d. relative

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

UNIX/Linux systems interpret ____ to mean the parent directory.

a. dot (.)
b. dot (..)
c. backward slash ()
d. forward slash (/)

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

You use the ____ command to display a directory’s contents, including files and other directories.

a. dir c. pwd
b. d d. ls

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

The ____ command is used to create a new directory.

a. cdir c. mkdir
b. cd d. mk

A

C

27
Q

You can change the pattern of permission settings by using the ____ command.

a. chperm c. chsec
b. chmod d. chown

A

B

28
Q

Unicode offers up to ____ characters.

a. 256 c. 16,384
b. 512 d. 65,536

A

D

29
Q

The ASCII character set represents ____ characters.

a. 256 c. 16,384
b. 512 d. 65,536

A

A

30
Q

System administrators and programmers refer to standard input as ____.

a. sin c. stdin
b. stin d. standardin

A

C

31
Q

System administrators and programmers refer to standard output as ____.

a. sout c. stdout
b. stout d. standardout

A

C

32
Q

To redirect the list of the files in a directory to a file called homedir.list, you enter ____.

a. ls < homedir.list
b. ls > homedir.list
c. homedir.list < ls
d. homedir.list > ls

A

B

33
Q

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

A

D

34
Q

You can use the ____ command to create empty files.

a. touch c. make
b. create d. null

A

A

35
Q

When you no longer need a file, you can delete it using the ____ command.

a. rm c. dl
b. remove d. delete

A

A

36
Q

When you no longer need a directory, you can use command ____ to remove it.

a. xtree c. dldir
b. rmdir d. deltree

A

B

37
Q

The cp ____ option creates a symbolic link or name at the destination rather than a physical file.

a. -s c. -l
b. -y d. -n

A

A

38
Q

To move a file, you use the ____ command along with the source file name and destination name.

a. rm c. mv
b. rename d. move

A

C

39
Q

The ____ option of the find command displays files that have been changed within the last n minutes.

a. -min n c. -nmin n
b. -cmin n d. -mmin n

A

D

40
Q

The ____ option of the find command displays files that have been changed within the last n days.

a. -cdays n c. -mdays n
b. -ctime n d. -mtime n

A

D

41
Q

When you use find, it is useful to note that some UNIX versions require the ____ option after the file name to display the names of files.

a. -display c. -show
b. -print d. -names

A

B

42
Q

The paste command normally sends its output to ____.

a. stdout c. stderr
b. null d. the file indicated as an argument

A

A

43
Q

The ____ option of the paste command is used to specify a different separator as a delimiter.

a. -t c. -d
b. -o d. -s

A

C

44
Q

If you execute ____, the contents of file1 are sorted and the results are stored in file2.

a. sort file1 -o file2
b. sort file1 -d file2
c. sort file1 > file2
d. sort file1 file2

A

C

45
Q

A sorting ____ is a field position within each line.

a. index c. column
b. key d. position

A

B

46
Q

The join command is used to associate information in two different files on the basis of a common field or ____ in those files.

a. index c. column
b. link d. key

A

D

47
Q

The ____ command is used to look for patterns in files.

a. awk c. pattern
b. find d. search

A

A

48
Q

____ is NOT a selection command.

a. comm c. grep
b. diff d. sed

A

D

49
Q

____ is a selection command.

a. uniq c. sort
b. awk d. sed

A

A

50
Q

The ____ redirects the output of one command to the input of another command.

a. output redirection operator (>) c. pipe operator (|)
b. input redirection operator (

A

C

51
Q

The ____ option of the grep command displays only lines that do not contain the search pattern.

a. -v c. -o
b. -n d. -r

A

A

52
Q

The ____ command removes duplicate lines from a file.

a. grep c. uniq
b. dup d. diff

A

C

53
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 c. -o
b. -s d. -u

A

D

54
Q

The ____ command locates identical lines within two identically sorted files.

a. diff c. uniq
b. sed d. comm

A

D

55
Q

The ____ option of the diff command shows lines surrounding the line that differs.

a. -d c. -c
b. -D d. -C

A

C

56
Q

The ____ option of the diff command does not compare for blank lines.

a. -b c. -c
b. -B d. -C

A

B

57
Q

The ____ option of the diff command ignores blanks that repeat.

a. -b c. -c
b. -B d. -C

A

A

58
Q

The ____ option of the diff command is used to display the differences side-by-side in columns.

a. -s c. -n
b. -c d. -y

A

D

59
Q

To append new lines in sed, you must use the ____ command

a. a\ c. \a
b. -a d. >a

A

A

60
Q

By default, pr formats the specified files into single-column pages of ____ lines.

a. 22 c. 55
b. 33 d. 66

A

D

61
Q

By default, each page in the output of pr has a ____-line header, which, by default, contains the current file’s name, its last modification date, the current page, and a trailer consisting of blank lines.

a. three c. five
b. four d. six

A

C

62
Q

____ is a full-featured programming language.

a. Sed c. Emacs
b. Awk d. Grep

A

B

63
Q

The ____ function within the awk command is used to format output.

a. out c. print
b. outln d. printf

A

D