MugUp logoMugUp
HomeBrowseAboutBlog
LoginSign Up
MugUp

Plan your day, study, read, write and track your habits in one app.

Follow MugUp

Product

  • Features
  • Compare
  • Free Tools
  • Deck Library
  • MugUp for Discord

Community

  • Blog
  • Changelog
  • Feature Requests
  • Deck Requests

Company

  • Home
  • About
  • Contact

© 2026 MugUp. All rights reserved.

Terms of ServicePrivacy PolicyCookie Policy
  1. Browse decks
  2. Linux and the Command Line for Engineers
  3. The Filesystem: Hierarchy, Paths and Links
Public deck

Linux and the Command Line for Engineers

The Linux that cloud, DevOps and security engineers use every day on a modern systemd and bash system: files and permissions, processes and services, shell scripts, text tools, disks and finding performance problems.

Engineering
AShared by Alex Chen
0PlaySign in to clone

You’re reading a free preview. Sign up to see every topic and question — and to play this deck as games.

See the whole deck

The Filesystem: Hierarchy, Paths and Links

Where things live on a Linux system, how absolute and relative paths work, and how inodes, hard links and symbolic links relate to each other.

Play topicBack to deck

Content

40 total questions

MCQ: 10
Fill-in: 8
Flashcards: 12
Pair match: 10
The Filesystem: Hierarchy, Paths and Links – Flashcards
Flashcards

Card #1

What is an inode?

Card #2

Where is a file's name actually stored?

Card #3

What is a hard link?

9 more questions in this game

Showing 3 of 12. Sign up free to see the rest.

Sign up freeLog in
The Filesystem: Hierarchy, Paths and Links – MCQ
Multiple Choice Questions
  1. 1. On Linux, `ln /data/report.csv ~/report.csv` fails with "Invalid cross-device link". /data is a separate disk. Why?

    • Hard links can only be created by root when the target sits under a mount point
    • A hard link names an inode number, and those only mean something inside one filesystem
    • The home directory is mounted read-only for links unless you pass the -f option
    • ln refuses to link a file into a different directory unless you add the -r option
  2. 2. Which of these can't you create a hard link to on Linux, even as root?

    • A file you own, from another directory on the same filesystem
    • A regular file that already has three other hard links
    • An empty file you created a moment ago with touch
    • A directory
  3. 3. A file has two hard links: notes.txt and backup/notes.txt. You run `rm notes.txt`. What happens to the data?

    • It stays readable through backup/notes.txt, and the link count drops from 2 to 1
    • It is deleted, and backup/notes.txt becomes a broken link that points to nothing
    • It is moved to backup/notes.txt, which becomes the original and gets a new inode
    • rm refuses to run, because a file with two links must be removed with unlink
7 more questions in this game

Showing 3 of 10. Sign up free to see the rest.

Sign up freeLog in
The Filesystem: Hierarchy, Paths and Links – Fill-in-the-blank
Fill in the Blank
  1. 1. The ___ command prints a file's inode number, size, permissions and its access, modify and change times.

    Answer:stat

    Hint: A four-letter command, short for status.

  2. 2. `cd ___` switches back to the directory you were in before your last cd.

    Answer:-

    Hint: A single punctuation mark, the one flags start with.

  3. 3. To list files including hidden ones, whose names start with a dot, run `ls ___`.

    Answer:-aalso: a, -A, -la

    Hint: One flag, for all.

5 more questions in this game

Showing 3 of 8. Sign up free to see the rest.

Sign up freeLog in
The Filesystem: Hierarchy, Paths and Links – Pair match
Pair Match
/home↔Personal directories of regular users
/root↔Home directory of the root user
/dev↔Device files such as disks and terminals
7 more questions in this game

Showing 3 of 10. Sign up free to see the rest.

Sign up freeLog in