1z0-821

1z0-821 practice questions, page 7 of 10, with answer review and explanations.

Question 31

In order to display the IP addresses of network interfaces, what command would you use?

  1. dladm
  2. ipconfig
  3. sves
  4. ipadm
  5. ipaddr

Question 32

The su command by default makes an entry into the log file for every su command attempt. The following is a single line from the file: SU 12/18 23:20 + pts/1 user1-root What does the + sign represent?

  1. unsuccessful attempt
  2. successful attempt
  3. The attempt was from a pseudo terminal, and not the console.
  4. The attempt was from a user that is in the adm group, same as root.
  5. Time zone is not set.

Question 33

A user brian is configured to use the bash shell. His home directory is /export/home/brian, and contains a .profile and a .bashrc file. In the -profile, there are these lines: genius =ritchie export genius In the .bashrc us this line: genius=kernighan In /etc/profile are these lines: genius=thompson export genius When brian logs in and asks for the value of genius, what will he find, and why?

  1. genius will be ritchie, because that was the value exported in .profile.
  2. genius will be kernighan, because .bashrc executes after .profile.
  3. genius will be ritchie because variable settings in .profile take precedence over variable settings in .bashrc.
  4. genius will be ritchie because .profile executes after .bashrc.
  5. genius will be thompson because /etc/profile system settings always override local settings.

Question 34

Consider the following commands: What is displayed when this sequence of commands is executed using the bash shell?

  1. Hello, world
  2. cat: cannot open file1: No such file or directory Hello, world
  3. cat: cannot open file1: No such file or directory
  4. bash: syntax error near unexpected token '| |'
  5. bash: syntax error broker pipe

Question 35

You are logged in as root to a newly installed Solaris 11 system. You issue the command useradd -d, and then examine the /usr/sadm/defadduser file. This file includes the entry defshell=/bin/sh. Which shell will now be the default for the next account created?

  1. bash shell
  2. C shell
  3. korn shod
  4. bourne shell