Linux LPI 117-101 # 9 Of 9

60 Questions | Attempts: 92
Share

SettingsSettingsSettings
Linux Quizzes & Trivia

Linux lpi testing


Questions and Answers
  • 1. 
    You need to create a symbolic link in the current user's home directory namedCertkiller to the file /data/foobar. Choose the command that will accomplish this.
    • A. 

      Link .Certkiller /data/foobar

    • B. 

      Ln /data/foobar $HOME/Certkiller

    • C. 

      Ln -s /data/foobar ~/Certkiller

    • D. 

      File --link ./ Certkiller /data/foobar

    • E. 

      None of the above

  • 2. 
    What does the command "ln test bill" typically do?
    • A. 

      It will create a symbolic link from test to bill.

    • B. 

      It will create a hard link from bill to test.

    • C. 

      It will create a symbolic link from bill to test.

    • D. 

      It will create a copy of the file test in bill.

  • 3. 
    What would cause a system to report having excess free space but very few availableinodes?
    • A. 

      Too many hard links are in use on /home.

    • B. 

      A user has created many very small files.

    • C. 

      Fsck hasn't been run on /home in a while.

    • D. 

      Too many symbolic links are in use on /home.

    • E. 

      The disk needs to be synced before running df.

  • 4. 
    You are trying to make a hard link to an ordinary file butln returns an error. Which of the following could cause this?
    • A. 

      The source file is hidden.

    • B. 

      The source file is readonly.

    • C. 

      The source file is a shell script.

    • D. 

      You do not own the source file.

    • E. 

      The source and the target are on different filesystems.

  • 5. 
    You are experimenting with a binary in /tmp/foo.d that expects its configuration fileat /etc/foo.conf. You don't want to save it there, but use a symbolic link to/tmp/foo.d/foo.conf instead.Which command would accomplish that?
    • A. 

      Ln -s /tmp/foo.d/foo.conf /etc/foo.conf

    • B. 

      Ln /tmp/foo.d/foo.conf /etc/foo.conf

    • C. 

      Ln -s /etc/foo.conf /tmp/foo.d/foo.conf

    • D. 

      Ln /etc/foo.conf /tmp/foo.d/foo.conf

  • 6. 
    You have read/write permission on an ordinary file foo. You have just run ln foobar. What would happen if you ran rm foo?
    • A. 

      Foo and bar would both be removed.

    • B. 

      Foo would be removed while bar would remain accessible.

    • C. 

      Foo would be removed. bar would still exist but would be unusable.

    • D. 

      Both foo and bar would remain accessible.

    • E. 

      You would be asked whether bar should be removed.

  • 7. 
    You want to find the full path of a certain command. How would you do this?
    • A. 

      By using the 'where' command

    • B. 

      By using the 'path' command

    • C. 

      By using the 'which' command

  • 8. 
    You wish to find out the full path of the binary executable "cmd1". Type just thecommand that will show the first instance of the command.
  • 9. 
    To locate all files that are less than 3 days old, you use the _____ -mtime -3command.
  • 10. 
    What command can find the program file "bar" and it's associated man pages andany existing source files, but not return all files that have "bar" in the commandname or path?
    • A. 

      Whereis

    • B. 

      Find

    • C. 

      Locate

    • D. 

      Apropos

    • E. 

      Whatis

  • 11. 
    What file should you edit to exclude directories from being indexed by the slocatecommand?
    • A. 

      /etc/slocatedb.conf

    • B. 

      /etc/default/slocate

    • C. 

      /etc/slocated.conf

    • D. 

      /etc/updatedb.conf

    • E. 

      /etc/sysconfig/updatedb.conf

  • 12. 
    You want to make sure certain directories are excluded when you update yourlocate database file.Where would you typically store this configuration?
    • A. 

      /etc/slocatedb.conf

    • B. 

      /etc/default/slocate

    • C. 

      /etc/slocated.conf

    • D. 

      /etc/updatedb.conf

    • E. 

      /etc/sysconfig/updatedb.conf

  • 13. 
    Which of the following programs can be used to find the foo program in the PATHand associated man pages, but NOT list every file containing foo in the system?
    • A. 

      Which

    • B. 

      Search

    • C. 

      Slocate

    • D. 

      Where

    • E. 

      Whereis

  • 14. 
    Which one of the following programs will only find files that are in your PATH?
    • A. 

      Locate

    • B. 

      Slocate

    • C. 

      Which

    • D. 

      Find

  • 15. 
    Which of the following programs can be used to the find the foo program in thePATH and associated man pages, but not list every file containing foo on thesystem?
    • A. 

      Which

    • B. 

      Search

    • C. 

      Slocate

    • D. 

      Where

    • E. 

      Whereis

  • 16. 
    Which command line option would you use to restrict the GNU findcommand to searching a particular number of subdirectories?
    • A. 

      --max-dirs

    • B. 

      -dirmax

    • C. 

      -maxdepth

    • D. 

      -s

    • E. 

      -n

  • 17. 
    How can you replace all tabs in a file named file1 with spaces?
    • A. 

      File --tabs-to-spaces FILE1

    • B. 

      Extend FILE1

    • C. 

      Wc -t2s FILE1

    • D. 

      Expand FILE1

  • 18. 
    Which program finds only files that are in your path?
  • 19. 
     After installing and configuring Xfree86, you notice that when you start X, thedisplay is not centered. What program can you run to find a better modeline setting?
    • A. 

      XF86Setup

    • B. 

      Xf86config

    • C. 

      Xvidtune

    • D. 

      Xvideoagent

  • 20. 
    The X program _________ is often used to make minor keyboard adjustments, likeproper Backspace/Delete mapping.
    • A. 

      Xkbdmap

    • B. 

      Kbdmap

    • C. 

      Xmodmap

    • D. 

      Modmap

  • 21. 
    What is the name of the X configuration tool that runs in graphical text mode?
  • 22. 
    What entry in the X configuration file specifies where the fonts are located for the Xsystem?
    • A. 

      Fonts

    • B. 

      Files

    • C. 

      Fontpath

    • D. 

      Devices

  • 23. 
    With Xfree86 3.3.5, what is the name of the default font server?
    • A. 

      Xfs

    • B. 

      Xfserv

    • C. 

      Fonts

    • D. 

      Xfstt

    • E. 

      Fserv

  • 24. 
    What is the name of the default XFree86 Font Server?
    • A. 

      Xfs

    • B. 

      Xfserver

    • C. 

      Xfree86fs

    • D. 

      Xfs

    • E. 

      Xfontserver

  • 25. 
    What must you type immediately after adding new fonts to an X window system, tomake them available to the system?
Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.