← All LFCS Certification Flashcard Decks

General Practice Test Flashcards

7 cards from real LFCS Certification practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 General Practice Test flashcards as text
  1. Define Bash

    Answer: Most commonly used shell for Linux distros.

    Bash, or Bourne Again SHell, is correctly defined as the most commonly used shell for Linux distributions. It serves as a command-line interpreter, allowing users to execute commands, run scripts, and interact with the operating system. Its widespread adoption and rich feature set make it a fundamental tool for system administration and scripting in the Linux environment.

  2. Which find command line parameter would be used to limit the command to searching down a specific number of subdirectories in a nested directory structure?

    Answer: --maxdepth

    The `find` command line parameter used to limit the search depth to a specific number of subdirectories is `--maxdepth`. This parameter takes an integer value, instructing `find` not to descend more than that many levels below the starting directory. This is crucial for controlling the scope of a search, improving performance, and preventing `find` from traversing excessively deep or irrelevant parts of the filesystem.

  3. Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

    Answer: cut -d : -f 1,4 /etc/passwd

    The `cut` command is the correct utility to extract specific columns from a file. With the `/etc/passwd` file, fields are delimited by colons. The `-d :` option specifies the colon as the delimiter, and `-f 1,4` instructs `cut` to extract the first and fourth fields, which correspond to the username and primary group ID, respectively. This accurately fulfills the requirement to print a list of usernames and their primary groups.

  4. Which input must be given to ifconfig in order to turn on a network interface that was previously inactive?

    Answer: up

    To turn on a network interface that was previously inactive using `ifconfig`, the input `up` must be given. For example, `ifconfig eth0 up` activates the `eth0` interface. This command configures the interface to be operational, allowing it to send and receive network traffic, which is essential for network connectivity.

  5. Which environment variable among the following modifies or expands the list of directories containing shared libraries?

    Answer: LD_LIBRARY_PATH

    The environment variable that modifies or expands the list of directories containing shared libraries is `LD_LIBRARY_PATH`. This variable specifies a colon-separated list of directories that the dynamic linker should search for shared libraries before the standard system paths. It is commonly used to point applications to custom or non-standard library locations, especially during development or when using specific software versions.

  6. In which of the directories can you find man pages that are compliant with the FHS?

    Answer: /usr/share/man

    According to the Filesystem Hierarchy Standard (FHS), the `/usr/share/man` directory is the standard location for manual pages (man pages) on Linux systems. This directory typically contains subdirectories organized by man page section (e.g., `man1`, `man8`) and locale, providing a consistent and organized structure for system documentation.

  7. Which of the following commands moves and restarts the most recent shell task in the background?

    Answer: bg

    The `bg` command is used to move and restart the most recent shell task in the background. When a job is stopped (e.g., using Ctrl+Z), `bg` resumes its execution in the background, allowing the user to continue interacting with the shell. This is a fundamental command for job control in Unix-like operating systems.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. docs.linuxfoundation.org — Renewal, score release, exam format, passing score · verified Oct 2026
  2. training.linuxfoundation.org — Test delivery, eligibility, fees, registration deadline, time limit, score validity · verified Oct 2026