Which files on the UNIX server will be updated when this script is executed ?
  • #!/bin/sh

    HOSTNAME='head -n1 /etc/hostname.hme0'
    LAST_IP_OCT='grep loghost/etc/hosts|awk'{print$1}'|cut -d. -f4'
    ifconfig hme0:1 10.1.0.$LAST_IP_OCT netmask 255.255.0.0 up
    echo "${HOSTNAME}a" > /etc/hostname.hme0:1
    echo "10.1.0.$LAST_IP_OCT ${HOSTNAME}a">>/etc/hosts
    echo "${HOSTNAME}a 10.1.0.$LAST_IP_OCT\n"

    Refer to the exhibit. The following is a shell script for a UNIX-based server. Which three of these files on the UNIX server will be updated or created when this script is executed? (Choose three.)

    A. /etc/hostname.hme0
    B. /etc/hosts
    C. /etc/hostname.hme0:1
    D. /etc/netmasks
    E. /10.1.0.$LAST_IP_OCT
    F. /etc/loghost 8)