Filters
Question type

Study Flashcards

In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?


A) By using the command :repeat followed by the number and the command.
B) By specifying the number right in front of a command such as 4l or 2yj.
C) By selecting all affected lines using the shift and cursor keys before applying the command.
D) By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

Which of the following kernel parameters instructs the kernel to suppress most boot messages?


A) silent
B) verbose=0
C) nomesg
D) quiet

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct choices.)


A) uptime
B) up
C) top
D) uname -u
E) time -up

F) C) and D)
G) None of the above

Correct Answer

verifed

verified

During a system boot cycle, what program is executed after the BIOS completes its tasks?


A) The bootloader
B) The inetd program
C) The init program
D) The kernel

E) B) and C)
F) B) and D)

Correct Answer

verifed

verified

Which of the following are init systems used within Linux systems? (Choose THREE correct choices.)


A) startd
B) systemd
C) Upstart
D) SysInit
E) SysV init

F) C) and D)
G) D) and E)

Correct Answer

verifed

verified

Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct choices.)


A) resolv
B) dns
C) remote
D) files
E) hosts

F) A) and B)
G) A) and D)

Correct Answer

verifed

verified

What is the difference between the i and a commands of the vi editor?


A) i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
B) i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
C) i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
D) i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.

E) None of the above
F) A) and D)

Correct Answer

verifed

verified

Which of the following commands can remove a user from a group?


A) grouprm
B) groupmod
C) passwd
D) usergroups
E) usermod

F) B) and C)
G) None of the above

Correct Answer

verifed

verified

What is the default action of the split command on an input file?


A) It will break the file into new files of 1,024 byte pieces each.
B) It will break the file into new files of 1,000 line pieces each.
C) It will break the file into new files of 1,024 kilobyte pieces each.
D) It will break the file into new files that are no more than 5% of the size of the original file.

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

Which configuration file would be edited to change default options for the OpenSSH server?


A) /etc/ssh/sshd_config
B) /etc/ssh/ssh
C) /etc/ssh/server
D) /etc/ssh/ssh_config
E) /etc/ssh/ssh_server

F) B) and C)
G) A) and B)

Correct Answer

verifed

verified

Which character, added to the end of a command, runs that command in the background as a child process of the current shell?


A) !
B) +
C) &
D) %
E) #

F) A) and D)
G) B) and E)

Correct Answer

verifed

verified

Which of the following details is NOT provided in any output from the netstat utility?


A) broadcast services
B) interface statistics
C) masquerading connections
D) network connections
E) routing tables

F) A) and B)
G) B) and C)

Correct Answer

verifed

verified

Which of the following commands will write a message to the terminals of all logged in users?


A) bcast
B) mesg
C) print
D) wall
E) yell

F) A) and B)
G) A) and C)

Correct Answer

verifed

verified

What word is missing from the following SQL statement?    insert into tablename ________(909, 'text'); (Please specify the missing word using lower-case letters only.)

Correct Answer

verifed

verified

Which of the following tasks can be accomplished using the command date? (Choose TWO correct choices.)


A) Synchronize the hardware and system clocks.
B) Output date and time in different formats.
C) Set the system clock.
D) Set the hardware clock.
E) Update the time via NTP.

F) C) and D)
G) All of the above

Correct Answer

verifed

verified

What is true about the file /etc/localtime?


A) It is a plain text file containing a string such as Europe/Berlin.
B) It is created and maintained by the NTP service based on the geolocation of the system's IP address.
C) It is a symlink to /sys/device/clock/ltime and always contains the current local time.
D) It is either a symlink to or a copy of a timezone information file such as / usr /share/zoneinfo/Europe/Berlin.

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?


A) /etc/keys
B) /proc/keys
C) /etc/inittab
D) /proc/inittab
E) /etc/reboot

F) A) and E)
G) A) and D)

Correct Answer

verifed

verified

Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

Correct Answer

verifed

verified

swapoff, /...

View Answer

Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file? (Choose two)


A) grep -v fred data_file
B) grep '[f]red' data_file
C) egrep fred data_file
D) grep '[Ff]red' data_file
E) grep -i fred data_file

F) A) and E)
G) B) and D)

Correct Answer

verifed

verified

What output will the command seq 10 produce?


A) A continuous stream of numbers increasing in increments of 10 until stopped.
B) The numbers 1 through 10 with one number per line.
C) The numbers 0 through 9 with one number per line.
D) The number 10 to standard output.

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

Showing 41 - 60 of 220

Related Exams

Show Answer