Linux LPI 117-101 # 3 Of 9

60 Questions | Total Attempts: 144

SettingsSettingsSettings
Please wait...
Linux Quizzes & Trivia

Linux lpi testing


Questions and Answers
  • 1. 
     What operation of the make utility cannot normally be performed as a normal user?
    • A. 

      Mrproper

    • B. 

      Clean

    • C. 

      Dep

    • D. 

      Depends

    • E. 

      Install

  • 2. 
    Type the simplest command with switches to unpack a compressed archive namedfile1.tar.gz?
  • 3. 
    You want to add files to a previously created tar file. You want to replace existingfiles with newer files, how can you do this?
    • A. 

      Use the append command

    • B. 

      Use the tar command with the -t switch

    • C. 

      Use the add command

    • D. 

      Use the tar command with the -u switch

  • 4. 
     You want to add information to a previously created tar file. How would you do this?
    • A. 

      Use the tar command with the -a switch

    • B. 

      Use the append command

    • C. 

      Use the add command

    • D. 

      Use the tar command with the -r switch

  • 5. 
    You want to find out what files are contained in a tar file. How would you do this?
    • A. 

      Use the tar command with the -t switch

    • B. 

      Use the tar command with the -r switch

    • C. 

      Use the grep command

    • D. 

      Use the find command

  • 6. 
    Which of the following commands can be used to extract a tar file?
    • A. 

      Tar -vf

    • B. 

      Tar -xvf

    • C. 

      Tar -e

    • D. 

      Tar -v

  • 7. 
     Which of the following commands can be used to create a tar archive file in verbosemode?
    • A. 

      Tar -v

    • B. 

      Tar -cvf

    • C. 

      Tar -c

    • D. 

      Tar -vf

  • 8. 
    Type in the command line to upgrade a package using the apt-get command. Thepackage name is package1.
  • 9. 
    Type in the command to update the apt-get database with new or updated packages.
  • 10. 
    What is the location including the full path to where apt-get stores its downloadedpackages?
  • 11. 
    While installing an application from source code you don't see theconfigure script. What command can you run to compile the code?
    • A. 

      Make configure

    • B. 

      Install

    • C. 

      Install makefile

    • D. 

      Make

  • 12. 
    User Joseph has successfully extracted and compiled a program fromsource code. Installing the binaries produces errors. What is the mostlikely reason?
    • A. 

      The source code was complied for a different CPU.

    • B. 

      The permissions set in the /usr/bin directory are wrong.

    • C. 

      The binaries require root privileges to be installed.

    • D. 

      The wrong prefix was used during configuration of the source code.

  • 13. 
      You are compiling some software from source. After running ./configure with the   appropriate arguments and no errors, what is the next command to run?
  • 14. 
    While installing from source code you don't see the configuration script. Whatcommand can you run to compile the code?
    • A. 

      Make configure

    • B. 

      Install

    • C. 

      Install makefile

    • D. 

      Make

  • 15. 
    Which system administration command you can use to update ld.so.cache after theinstallation of new shared libraries?
    • A. 

      Ldconfig

    • B. 

      Ldd

    • C. 

      Libpath

    • D. 

      Newlibs

  • 16. 
    Which utility can you call to find out what shared libraries a program is using?
    • A. 

      Ldd

    • B. 

      Ld.so

    • C. 

      Modprobe

    • D. 

      Ldconfig

    • E. 

      Ld-linux.so

  • 17. 
    What is the full path including the filename of the configuration file that stores thelocations of all library files on the system?
  • 18. 
    On boot, your system shows messages that mention library file errors. Whatcommand should you type (command only) to attempt to fix the library errors?
  • 19. 
    What command will display the needed libraries for the program myprog1 to run?
  • 20. 
    What file is read by the program ldconfig?  
    • A. 

      /lib/ld.so

    • B. 

      /etc/ld.so.conf

    • C. 

      /etc/ld.so.cache

    • D. 

      /etc/modules.conf

  • 21. 
    What environment variable will set the path for added libraries?
    • A. 

      LD_LIBRARY_PATH

    • B. 

      LIBPATH

    • C. 

      LPATH

    • D. 

      LIB

    • E. 

      None of the above

  • 22. 
    You are preparing a new set of shared libraries in /usr/local/applib and you havewritten and compiled some code that uses these libraries. You have alreadyperformed and ldconfig, however the system still cannot find the shared libraries.What is most likely the cause of this?          
    • A. 

      You used the wrong compiler.

    • B. 

      Your did not update your PATH variable.

    • C. 

      You compiled the code with wrong library.

    • D. 

      You forgot to put the library path in ld.so.conf

  • 23. 
    What is filename including full path, of the file used to configure library pathsettings for a system?
    • A. 

      /usr/lib/lib.so.1

    • B. 

      /etc/lib.conf

    • C. 

      /etc/ld.so.conf

    • D. 

      /usr/lib/modules/modules.conf

    • E. 

      None of the above

  • 24. 
    What happens when ldconfig is executed?
    • A. 

      The binary index file (cache) of library locations is rebuilt

    • B. 

      The text index file of library locations is rebuilt

    • C. 

      Make is run to rebuild the libraries who's source code has changed

    • D. 

      The disk is scanned for libraries to include in the index

    • E. 

      Nothing, unless the libraries have been recompiled since ldconfig was last run.

  • 25. 
    To what environment variable will you assign or append a value ifyou need to tell the dynamic linker to look in a build directory for someof a program's shared libraries?
    • A. 

      LD_LOAD_PATH

    • B. 

      LD_LIB_PATH

    • C. 

      LD_LIBRARY_PATH

    • D. 

      LD_SHARE_PATH

    • E. 

      LD_RUN_PATH

Back to Top Back to top