โ† All Linux Flashcard Decks

File System Navigation Flashcards

7 cards from real Linux practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 File System Navigation flashcards as text
  1. What happens when you type `cd` with no arguments?

    Answer: Changes to the current user's home directory

    `cd` with no arguments is equivalent to `cd $HOME` and navigates to the user's home directory.

  2. Which directory in the Linux FHS contains device files such as `/dev/sda`?

    Answer: /dev

    `/dev` holds device files that represent hardware and virtual devices managed by the kernel.

  3. What is the purpose of the `$CDPATH` variable in bash?

    Answer: Defines a colon-separated list of directories searched by `cd`

    When set, `$CDPATH` causes `cd` to search listed directories if the given path isn't found relative to the current location.

  4. Which command lists only the names of files in the current directory, one per line, without extra details?

    Answer: ls -1

    `ls -1` (digit one) forces one entry per line, displaying only file names without size or permission details.

  5. Where are shared library files typically stored on a 64-bit Linux system?

    Answer: /lib64 or /usr/lib64

    64-bit shared libraries live in `/lib64` or `/usr/lib64`, separate from 32-bit libraries in `/lib` and `/usr/lib`.

  6. What does the glob pattern `ls /etc/*.conf` match?

    Answer: All files in /etc ending with .conf

    The `*` wildcard matches any string of characters, so `*.conf` matches all files ending with `.conf` in `/etc`.

  7. Which command efficiently moves to a deeply nested directory you visited two `pushd` operations ago?

    Answer: dirs -v then cd ~N

    `dirs -v` shows the directory stack with numbered indices, and `cd ~N` jumps directly to stack entry N.

File System Navigation Flashcards โ€” Linux Study Cards with Answers