Ensurepass

QUESTION 81

A. administrator wants to preview where the package file, apache-xml.i386.rpm, will install its files before installing it. Which of the following commands should the administrator issue?

 

A. rpm -qp apache-xml.i386.rpm

B. rpm -qv apache-xml.i386.rpm

C. rpm -ql apache-xml.i386.rpm

D. rpm -qpl apache-xml.i386.rpm

 

Answer: D

 

 

QUESTION 82 CORRECT TEXT

What command will print the shared libraries for the file /usr/lib/libpng12.so? (Provide the full command with library name but without any other options or parameters).

 

Answer: /usr/bin/ldd/usr/lib/libpng12.so,ldd/usr/lib/libpng12.so

 

 

QUESTION 83 CORRECT TEXT

What umask value will result in the default access permissions of 600 (rw——-) for files and 700 (rwx——) for directories? (Provide only the numerical umask value).

 

Answer: 0077,077

 

 

QUESTION 84

In order to append the output of ls to a file called bazz, which of the following command lines would an administrator use?

 

A. ls > bazz

B. ls >& bazz

C. ls &> bazz

D. ls >> bazz

 

Answer: D

 

 

QUESTION 85

After modifying LILO’s configuration file, which of the following commands should be run for the changes to take effect?

 

A. kill -HUP `pidof lilo`

B. lilo-install

C. lilo

D. reboot

 

Answer: C

 

 

QUESTION 86

Which of the following sed commands will replace all instances of the string foo with the string foobar changing the file file1.txt in place?

 

A. sed ‘s/foo/foobar/g’ file1.txt

B. sed ‘s/foo/foobar/g’ file1.txt > file1.txt

C. sed ‘s/foo/foobar/g’ file1.txt | file1.txt

D. sed -i ‘s/foo/foobar/g’ file1.txt

E. sed -i ‘s/foo/foobar/g’ file1.txt > file1.txt

 

Answer: D

 

 

QUESTION 87 CORRECT TEXT

 

A. administrator is formatting a single hard disk for a Linux install. What is the maximum number of primary partitions that can be created?

 

Answer: 4,four

 

 

QUESTION 88 CORRECT TEXT

Which program finds only files that are in an administrator’s PATH?

 

Answer: /usr/bin/which,which

 

 

QUESTION 89

Which of the following keys should an administrator press to switch to normal mode in vi?

 

A. Alt

B. Esc

C. Ctrl

D. Shift

 

Answer: B

 

 

QUESTION 90 CORRECT TEXT

Which command will disable paging and swapping on a device? (Provide only the command with no additional options or parameters).

 

Answer: /sbin/swapoff,swapoff

 

 

Comments are closed.