Ensurepass

QUESTION 91

Which of the following commands will print line numbers before each line in a file?

 

A. ln

B. nl

C. cat -e

D. numline

 

Answer: B

 

 

QUESTION 92

To ensure that a running process continue to execute after you log out, the process should be started with which of the following commands?

 

A. nohup

B. fg

C. live

D. sh

 

Answer: A

 

 

QUESTION 93

The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh. Which of the following is the usual way to pass this change to the kernel from the boot loader?

 

A. Start in runlevel 1.

B. Pass init=/bin/sh on the kernel parameter line.

C. Pass /bin/sh on the kernel parameter line.

D. Pass start=/bin/sh on the kernel parameter line.

 

Answer: B

 

 

QUESTION 94

Which of the following does the command mount -a do?

 

A. It mounts the floppy disk for all users.

B. It shows all mounted file systems.

C. It opens /etc/fstab to edit.

D. It mounts all file systems listed in /etc/fstab.

 

Answer: D

 

 

QUESTION 95

How can an administrator update a package only if an earlier version is currently installed on the system?

 

A. rpm –update rpmname

B. rpm -U rpmname

C. rpm -F rpmname

D. rpm –force rpmname

E. rpm -u rpmname

 

Answer: E

 

 

QUESTION 96

Which of the following commands will show the contents of a gzip compressed tar archive?

 

A. gzip archive.tgz | tar xvf –

B. tar ztf archive.tgz

C. gzip -d archive.tgz | tar tvf –

D. tar cf archive.tgz

 

Answer: B

 

 

QUESTION 97 CORRECT TEXT

 

A. administrator suspects that a new Ethernet card might be conflicting with another device. Which file should the administrator check within the /proc tree to learn which IRQs are being used by which kernel drivers? (Please enter only a single command and do not enter duplicate answers in this field.)

 

Answer: /proc/interrupts,interrupts

 

 

QUESTION 98

Which of the following commands can be used to instruct the init process to switch runlevels? (Select TWO).

 

A. telinit

B. initctl

C. init

D. reinit

E. runlevel

 

Answer: A,C

 

 

QUESTION 99

All of the following commands will execute the bash script /usr/local/bin/runme.sh EXCEPT:

 

A. source /usr/local/bin/runme.sh

B. . /usr/local/bin/runme.sh

C. /bin/bash /usr/local/bin/runme.sh

D. /usr/local/bin/runme.sh

E. run /usr/local/bin/runme.sh

 

Answer: E

 

 

QUESTION 100

A administrator is experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf. The administrator does not want to save it there, but use a symbolic link to /tmp/foo.d/foo.conf instead. Which of the following commands would accomplish this?

 

A. ln -s /tmp/foo.d/foo.conf /etc/foo.conf

B. ln /tmp/foo.d/foo.conf /etc/foo.conf

C. ln -s /etc/foo.conf /tmp/foo.d/foo.conf

D. ln /etc/foo.conf /tmp/foo.d/foo.conf

 

Answer: A

 

 

Comments are closed.