Linux Essentials Certification Exam Practice Test!

80 Questions | Total Attempts: 16659

SettingsSettingsSettings
Please wait...
Linux Essentials Certification Exam Practice Test!

Those beginning their Linux careers may find the Linux Essentials certification an excellent place to start before jumping into the more advanced LPIC certifications. Linux Essentials cover necessary skills, such as command-line editing and the Linux operating system. This quiz will give you a chance to revise for the exam. All the best!


Questions and Answers
  • 1. 
    • A. 

      Whoami

    • B. 

      Isgroup

    • C. 

      Who

    • D. 

      Id

  • 2. 
    Which of the following can be used to access the command line?
    • A. 

      BIOS

    • B. 

      Terminal

    • C. 

      XWindow

    • D. 

      Firefox

    • E. 

      Xargs

  • 3. 
    • A. 

      Touch newfile

    • B. 

      Create newfile

    • C. 

      Ls newfile

    • D. 

      Rmdir newdirectory

    • E. 

      Mkdir newdirectory

  • 4. 
    Which of the following are correct commands for changing the current directory  to the user's home? (Choose TWO answers)
    • A. 

      Cd /home

    • B. 

      Cd ~

    • C. 

      Cd ..

    • D. 

      Cd

    • E. 

      Cd /

  • 5. 
    Which option will cause the echo command NOT to output a trailing newline?
    • A. 

      -e

    • B. 

      -p

    • C. 

      -n

    • D. 

      -s

  • 6. 
    Which of the following commands moves the directory ~/summer-vacation and it content to ~/vacation/2011?
    • A. 

      Mv ~/vacation/2011 ~/summer-vacation

    • B. 

      Move -R ~/summer-vacation ~/vacation/2011

    • C. 

      Mv /home/summer-vacation /home/vacation/2011

    • D. 

      Mv ~/summer-vacation ~/vacation/2011

    • E. 

      Mv -R ~/summer-vacation ~/vacation/2011

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

      Touch

    • B. 

      Build

    • C. 

      Nico

    • D. 

      Create

    • E. 

      Mkfile

  • 8. 
    Which function does a shell program serve?
    • A. 

      It provides a graphical environment

    • B. 

      It is responsible for establishing a connection to another computer

    • C. 

      It receives user commands and executes them

    • D. 

      It is responsible for logging a user into the system

  • 9. 
    How could one search for the file foo.txt under the directory /home?
    • A. 

      Search /home -file foo.txt

    • B. 

      Search /home foo.txt

    • C. 

      Find /home -file foo.txt

    • D. 

      Find /home -name foo.txt

    • E. 

      Find /home foo.txt

  • 10. 
    Which of the following is a Linux based operating system for use on mobile devices?
    • A. 

      IOS

    • B. 

      CentOS

    • C. 

      Android

    • D. 

      Debian

  • 11. 
    Which command will display running process information in realtime?
    • A. 

      Top

    • B. 

      Show current

    • C. 

      Ps current

    • D. 

      Process

  • 12. 
    Which of the following Linux distributions use the dpkg package management system? (Choose two correct answers)
    • A. 

      Suse

    • B. 

      Red Hat

    • C. 

      Debian

    • D. 

      Ubuntu

    • E. 

      Mandriva

  • 13. 
    What is the first character for a file or directory names if they should not be displayed by commands such as ls unless specifically requested?
    • A. 

      \ (backslash)

    • B. 

      . (dot)

    • C. 

      - (minus)

    • D. 

      _ (underscore)

  • 14. 
    • A. 

      Actdat='date'

    • B. 

      Set actdat='date'

    • C. 

      Date | acdat

    • D. 

      Date > $actdat

    • E. 

      Actdat=date

  • 15. 
    • A. 

      Ln -sys /home/user/foo /user/bin/foo

    • B. 

      Ln -s /user/bin/foo /home/user/foo

    • C. 

      Ln /home/user/foo /user/bin/foo

    • D. 

      Ln /user/bin/foo /home/user/foo

    • E. 

      Ln --symlink /home/user/foo /user/bin/foo

  • 16. 
    Which of the following files holds the definition of the local user accounts?
    • A. 

      /etc/secret

    • B. 

      /etc/users

    • C. 

      /etc/passwd

    • D. 

      /etc/id

    • E. 

      /etc/home

  • 17. 
    What is the output of the following command?tail -n 20 test.txt
    • A. 

      The first 20 lines of test.txt

    • B. 

      The last 20 lines of test.txt omitting the black lines

    • C. 

      The last 20 lines of test.txt with line numbers

    • D. 

      The last 20 lines of test.txt including the black lines

  • 18. 
    • A. 

      Command>2>file &1>/dev/null

    • B. 

      Command /dev/null

    • C. 

      Command>2>discard-error>file

    • D. 

      Command> /dev/null 2&>1 output

    • E. 

      Command> file2>/dev/null

  • 19. 
    • A. 

      It is the sticky bit that causes all commands in this directory to be launched as a root.

    • B. 

      It means that even though the directory is global writable only the owner can delete their own files

    • C. 

      It makes the directory accessible for everybody

    • D. 

      It indicates that this directory contains only temporary files that may be deleted

    • E. 

      It is a temporary bit that prevents launching commands in this directory

    • F. 

      Option 6

  • 20. 
    After installing a new package, in which directory are you most likely find its configuration file?
    • A. 

      /lib

    • B. 

      /conf

    • C. 

      /etc

    • D. 

      /usr

    • E. 

      /opt

  • 21. 
    Which statement about the directory  /etc/skel are correct?  (Choose two answers)
    • A. 

      The personal settings of root are in this directory

    • B. 

      The files from the directory are copied to the home directory of the new user when starting the system

    • C. 

      The files from the directory are copied to the home directory of the new user when the account is created

    • D. 

      The directory contains a default set of configuration files used by the useradd command

    • E. 

      The directory contains the global settings for the Linux system

  • 22. 
    Which of the following file systems is most commonly used for Linux distributions?
    • A. 

      HFS+

    • B. 

      Ext4

    • C. 

      FAT32

    • D. 

      NTFS

  • 23. 
    When a new user is added, where does the user ID get stored?
    • A. 

      /etc/users

    • B. 

      /etc/realm

    • C. 

      /etc/pass

    • D. 

      /etc/shpasswd

    • E. 

      /etc/passwd

  • 24. 
    • A. 

      All passwords can be decrypted using the system administrator's master password

    • B. 

      Passwords may never start with a non-letter

    • C. 

      Users cannot change their password once it has been set

    • D. 

      Passwords are only stored in encrypted form

    • E. 

      Passwords may be at most six characters long

  • 25. 
    Which command lists all files in the current directory that starts with a capital letter?
    • A. 

      Ls [A-Z]*

    • B. 

      Ls A-Z

    • C. 

      Ls A-Z*

    • D. 

      Ls --upercasefiles

    • E. 

      Ls -uppercase-files