Ensurepass

QUESTION 31

Which of the following commands is used to deactivate a network interface?

 

A. ifdown

B. ipdown

C. net

D. netdown

 

Answer: A 

 

 

QUESTION 32

Which of the following looks like a correct entry in the /etc/hosts file?

 

A. localhost 127.0.0.1 localhost.localdomain

B. localhost.localdomainlocalhost 127.0.0.1

C. localhostlocalhost.localdomain 127.0.0.1

D. 127.0.0.1 localhost.localdomainlocalhost

E. localhost.localdomain 127.0.0.1 localhost

 

Answer: D 

 

 

QUESTION 33

Which of the following lines would an administrator find in the file /etc/resolv.conf?

 

A. order hosts,bind

B. 192.168.168.4 dns-server

C. hosts: files,dns

D. domain mycompany.com

 

Answer: D 

 

 

QUESTION 34

Which of the following find commands will print out a list of suid root files in /usr?

 

A. find /usr -uid 0 -perm +4000

B. find -user root +mode +s /usr

C. find -type suid -username root -d /usr

D. find /usr -ls *s* -u root

E. find /usr -suid -perm +4000

 

Answer: A 

 

 

QUESTION 35

Which of the following commands will provide locale-specific information about a system and its environment?

 

A. loconfig

B. getlocale

C. locale

D. tzconfig

E. tzselect

 

Answer: C 

 

 

QUESTION 36

Which of the following should the permission settings be for /etc/passwd and /etc/shadow?

 

A. /etc/passwd: -rw-r–r– /etc/shadow: -r——–

B. /etc/passwd: -r——– /etc/shadow: -rw-r–r–

C. /etc/passwd: -rw-r–r– /etc/shadow: -rw-r–r–

D. /etc/passwd: -r——– /etc/shadow: -r——–}

 

Answer: A 

 

 

QUESTION 37

Which of the following configuration files should be modified to set default shell variables for all users?

 

A. /etc/bashrc

B. /etc/profile

C. ~default/.bash_profile

D. /etc/skel/.bashrc

E. /etc/skel/.bash_profile

 

Answer: B 

 

 

QUESTION 38 CORRECT TEXT

By default, which directories contents will be copied to a new user’s home directory when the account is created, passing the -m option to the useradd command?

 

Answer: /ETC/SKEL,/ETC/SKEL/

 

Answer: A

 

 

QUESTION 39

Suppose that the command netstat -a hangs for a long time without producing output. An administrator might suspect:

 

A. a problem with NFS

B. a problem with DNS

C. a problem with NIS

D. a problem with routing

E. thatthe netstat daemon has crashed

 

Answer: B 

 

 

QUESTION 40 CORRECT TEXT

Please specify the directory containing the configuration files for the CUPS printing system. (Provide the full path to the directory).

 

Answer: /ETC/CUPS,/ETC/CUPS/

 

 

Comments are closed.