Book Image

LPIC-1 Linux Professional Institute Certification Practice Tests: Exam 101-500 and Exam 102-500 - Second Edition

By : Steve Suehring
Book Image

LPIC-1 Linux Professional Institute Certification Practice Tests: Exam 101-500 and Exam 102-500 - Second Edition

By: Steve Suehring

Overview of this book

LPIC-1: Linux Professional Institute Certification Practice Tests is the must-have complement to the bestselling LPIC-1 Study Guide. Practice tests help you gain confidence and identify the areas in need of more attention. Ten full-length tests, covering the ten objective domains, and two additional 60-question practice exams contain 1000 practice questions, complete with answers and full explanations! Divided into two parts, this volume of practice tests covers Exams 101-500 and 102-500. Part I covers system architecture, Linux installation and Package management, GNU and Unix Commands, and devices, and Linux filesystems and filesystem hierarchy. Part II focuses on shells and shell scripting, user interfaces and desktops, administrative tasks, essential system services, networking, and security.
Table of Contents (10 chapters)

Chapter 5
Topic 105: Shells and Shell Scripting

THE FOLLOWING EXAM OBJECTIVES ARE COVERED IN THIS CHAPTER:

  • images  105.1 Customize and use the shell environment.
    • Key knowledge areas:
      • Set environment variables (e.g. PATH) at login or when spawning a new shell.
      • Write bash functions for frequently used sequences of commands.
      • Maintain skeleton directories for new user accounts.
      • Set command search path with the proper directory.
    • The following is a partial list of the used files, terms, and utilities:
      • .
      • source
      • /etc/bash.bashrc
      • /etc/profile
      • env
      • export
      • set
      • unset
      • ∼/.bash_profile
      • ∼/.bash_login
      • ∼/.profile
      • ∼/.bashrc
      • ∼/.bash_logout
      • function
      • alias
  • images105.2 Customize or write simple scripts.
    • Key knowledge areas:
      • Use standard sh syntax (loops, tests).
      • Use command substitution.
      • Test return values for success or failure or other information provided by a command.
      • Execute chained commands.
      • Perform conditional mailing to the superuser.
      • Correctly select the...