010-160 : Linux Essentials Certificate Exam : Part 02

  1. Which of the following commands sorts the output of the command export-logs?

    • export-logs < sort
    • export-logs > sort
    • export-logs & sort
    • export-logs | sort
    • export-logs <> sort
  2. A directory contains the following files:

    010-160 Linux Essentials Certificate Exam Part 02 Q02 006
    010-160 Linux Essentials Certificate Exam Part 02 Q02 006

    What would be the output of the following shell script?
    for file in *.txt

    010-160 Linux Essentials Certificate Exam Part 02 Q02 007
    010-160 Linux Essentials Certificate Exam Part 02 Q02 007
    •  *.txt
    • a b
    • c.cav
    • a.txt
    • a. txt
      b. txt
  3. Which of the following commands will search for the file foo.txt under the directory /home?

    • search /home –file foo.txt
    • search /home foo. txt
    • find /home – file foo.txt
    • find /home –name foo.txt
    • find /home foo.txt
  4. The current directory contains the following file:

    -rw-r—r— 1 root exec 24551 Apr 2 12:36 test.sh

    The file contains a valid shell script, but executing this file using ./test.sh leads to this error:

    bash: ./test.sh: Permission denied

    What should be done in order to successfully execute the script?

    • The file’s extension should be changed from .sh to .bin.
    • The execute bit should be set in the file’s permissions.
    • The user executing the script should be added to the exec group.
    • The SetUID bit should be set in the file’s permissions
    • The script should be run using #!./test. sh instead of ./test.sh.
  5. What is a Linux distribution?

    • The Linux file system as seen from the root account after mounting all file systems.
    • A bundling of the Linux kernel, system utilities and other software.
    • The set of rules which governs the distribution of Linux kernel source code.
    • An operating system based on Linux but incompatible to the regular Linux kernel.
    • A set of changes to Linux which enable Linux to run on another processor architecture.
  6. Which package management tool is used in Red Hat-based Linux Systems?

    • portage
    • rpm
    • apt-get
    • dpkg
    • packagectl
  7. Which of the following programs is a graphical editor for vector graphics?

    • Python
    • NGINX
    • Samba
    • Inkscape
    • MySQL
  8. Where is the operating system of a Raspberry Pi stored?

    • On the master device attached to the Raspberry Pi’s IDE bus.
    • On a read only partition on the Raspberry Pi’s firmware, next to the BIOS.
    • On a removable SD card which is put into the Raspberry Pi.
    • On a Linux extension module connected to the Raspberry Pi’s GPIO pins.
    • On rewritable flash storage which is built into the Raspberry Pi.
  9. What is defined by a Free Software license?

    • Details of the technical documentation each contributor has to provide.
    • The programming languages which may be used to extend the licensed program.
    • A complete list of libraries required to compile the licensed software.
    • Limits on the purposes for which the licensed software may be used.
    • Conditions for modifying and distributing the licensed software.
  10. Why are web browser cookies considered dangerous?

    • Cookies support identification and tracking of users.
    • Cookies are always public and accessible to anyone on the internet.
    • Cookies consume significant amounts of storage and can exhaust disk space.
    • Cookies store critical data which is lost when a cookie is deleted.
    • Cookies can contain and execute viruses and malware.
  11. Which of the following are typical services offered by public cloud providers? (Choose three.)

    • Platform as a Service(PaaS)
    • Infrastructure as a Service(IaaS)
    • Internet as a Service(IaaS)
    • Graphics as a Service (GaaS)
    • Software as a Service (SaaS)
  12. Which of the following characters in a shell prompt indicates the shell is running with root privileges?

    • !
    • #
    • *
    • &
    • $
  13. Which of the following commands are used to get information on the proper use of ls? (Choose two.)

    • option ls
    • usage ls
    • manual ls
    • man ls
    • info ls
  14. What is true about a recursive directory listing?

    • It includes the content of sub-directories.
    • It includes the permissions of the directory listed.
    • It includes details of file system internals, such as inodes.
    • It includes ownership information for the files.
    • It includes a preview of content for each file in the directory.
  15. Running the command rm Downloads leads to the following error:

    rm: cannot remove ‘Downloads/’: Is a directory

    Which of the following commands can be used instead to remove Downloads, assuming Downloads is empty? (Choose two.)

    • undir Downloads
    • rmdir Downloads
    • dir –r Downloads
    • rem Downloads
    • rm –r Downloads
  16. Which of the following directories contains information, documentation and example configuration files for installed software packages?

    • /usr/share/doc/
    • /etc/defaults/
    • /var/info/
    • /doc/
    • /usr/examples/
  17. Which of the following commands adds the directory /new/dir/ to the PATH environment variable?

    • $PATH=/new/dir: $PATH
    • PATH=/new/dir: PATH
    • export PATH=/new/dir: PATH
    • export $PATH=/new/dir: $PATH
    • export PATH=/new/dir: $PATH
  18. A user is currently in the directory /home/user/Downloads/ and runs the command

    ls ../Documents/

    Assuming it exists, which directory’s content is displayed?

    • /home/user/Documents/
    • /home/user/Documents/Downloads/
    • /home/user/Downloads/Documents/
    • /Documents/
    • /home/Documents
  19. A directory contains the following three files:

    texts 1.txt
    texts 2.txt
    texts 3.csv

    Which command copies the two files ending in .txt to the /tmp/ directory?

    • cp ??.txt /tmp/
    • cp *.txt /tmp/
    • cp. \.txt /tmp/
    • cp ?.txt /tmp/
    • cp $?.txt /tmp/
  20. FILL BLANK

    When typing a long command line at the shell, what single character can be used to split a command across multiple lines?

    • \
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments