15.3.5 Using the strings Command in Object or Binary Files

15.4 Quiz

  1. Use the following file contents to answer the following question:
    #!/usr/bin/ksh
    tctl -f /dev/rmt0 rewind
    mkszfile
    mksysb -i /dev/rmt0
    tctl -f /dev/rmt0 offline
    

    In the above script the system administrator is editing a routine backup script using vi because the mkszfile command is unnecessary. What steps should the system administrator use to delete the line containing the mkszfile command?

    A.
    Move to line 3, and press dd
    B.
    Move to line 3, and press xx
    C.
    Move to line 2 and press o
    D.
    Move to line 3 and press d

  2. Use the following directory listing to answer the following question:
    -rwsr-xrw-   1 root     system     76528 Nov 24 16:21 /usr/local/bin/scan_it
    

    A long listing of the file /usr/local/bin/scan_it is shown above. When the command is executed as a nonroot user, it fails to run as root. What would be the first action to take?

    A.
    file /usr/local/bin/scan_it
    B.
    chmod 4764 /usr/local/bin/scan_it
    C.
    Run the command in the background
    D.
    Copy /usr/local/bin/scan_it to the own home directory and execute it from there

15.4.1 Answers

  1. A

  2. A

15.5 Exercises