101-500 : LPIC-1 Exam 101 : Part 05

  1. Which of the following commands can be used to display the inode number of a given file? (Choose two.)

    • inode
    • ln
    • ls
    • cp
    • stat
  2. Which of the following settings for umask ensures that new files have the default permissions -rw-r-----?

    • 0017
    • 0640
    • 0038
    • 0227
    • 0027
  3. After a power outage, the XFS file system of /dev/sda3 is inconsistent. How can the existing file system errors be fixed?

    • By using mount -f to force a mount of the file system
    • By running xfsck on the file system
    • By mounting the file system with the option xfs_repair
    • By running xfsadmin repair on the file system
    • By running xfs_repair on the file system
  4. Which of the following properties of an existing file changes when a hard link pointing to that file is created?

    • File size
    • Link count
    • Modify timestamp
    • Inode number
    • Permissions
  5. FILL BLANK

    Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all users on the system? (Specify the full path to the directory.)

    • /usr/local/bin/
  6. Which of the following commands show how the shell handles a specific command?

    • where
    • type
    • stat
    • case
    • fileinfo
  7. When in Normal mode in vi, which character can be used to begin a reverse search of the text?

    • r
    • /
    • F
    • ?
    • s
  8. Which of the following commands displays the manual page command from section 1?

    • man command(1)
    • man command@1
    • man 1 command
    • man 1.command
    • man -s 1 command
  9. Which of the following commands creates or, in case it already exists, overwrites a file called data with the output of ls?

    • ls 3> data
    • ls >& data
    • ls > data
    • ls >> data
    • ls >>> data
  10. Which of the following commands is used to change options and positional parameters within a running Bash shell?

    • history
    • setsh
    • bashconf
    • set
    • envsetup
  11. Which of the following commands display the IDs of all processes owned by root? (Choose two.)

    • pgrep -c root
    • pgrep -u root
    • pgrep -f root
    • pgrep -U 0
    • pgrep -c 0
  12. Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose two.)

    • Ctrl XX
    • Ctrl :W
    • Esc zz
    • Esc :wq
    • Esc ZZ
  13. What is the effect of the -v option for the grep command?

    • It enables color to highlight matching parts.
    • It shows the command’s version information.
    • It only outputs non-matching lines.
    • It changes the output order showing the last matching line first.
    • It outputs all lines and prefixes matching lines with a+.
  14. Which of the following tools can show the complete path of an executable file that the current shell would execute when starting a command without specifying its complete path? (Choose two.)

    • find
    • pwd
    • which
    • locate
    • type
  15. Which of the following signals is sent to a process when the key combination Ctrl+Z is pressed on the keyboard?

    • SIGTERM
    • SIGCONT
    • SIGSTOP
    • SIGKILL
    • SIGINT
  16. What is the output when the regular expression s/[ABC] [abc]/xx/ is applied to the following string?

    ABCabc

    • ABxxbc
    • xxCxxc
    • xxxxxx
    • ABCabc
    • Axxaxx
  17. Which of the following commands print the current working directory when using a Bash shell? (Choose two.)

    • echo “${PWD}”
    • echo “${WD}”
    • printwd
    • pwd
    • echo “${pwd}”
  18. Which of the following commands outputs test to the shell?

    • cat <!EOT
      
      test
      
      EOT
    • cat <|EOT
      
      test
      
      EOT
    • cat !<EOT
      
      test
      
      EOT
    • cat &<EOT
      
      test
      
      EOT
    • cat <<EOT
      test
      EOT
  19. What is the default nice level when a process is started using the nice command?\

    • -10
    • 0
    • 10
    • 15
    • 20
  20. A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remote that directory?

    • rmdir ~/\\dir
    • rmdir “~/\dir”
    • rmdir ~/’dir’
    • rmdir ~/\dir
    • rmdir ‘~/\dir’
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments