Timedora
Free Online Flashcard Deck

Linux Paths, Commands, and Storage Free Online Flashcards

Study Linux Paths, Commands, and Storage with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

How do absolute and relative Linux paths differ?

Back

An absolute path begins with `/`; a relative path is interpreted from the current directory.

02
Front

What does `find ~/Documents -type f -name '*.pdf'` select?

Back

`find` searches directory trees; `-type f` selects regular files and `-name '*.pdf'` filters by name. Quoting the wildcard prevents shell expansion.

03
Front

Which command estimates a directory tree’s space usage?

Back

`du -sh directory` estimates space used by a directory tree and summarizes it in a human-readable unit.

04
Front

How can you identify the mount containing `/home`?

Back

`findmnt --target /home` identifies the mounted filesystem containing `/home`, or its nearest containing mount.

05
Front

What does `mkdir -p` do when parent directories are missing?

Back

`mkdir -p work/2026/april` creates the directory and any missing parent directories.

06
Front

Which commands print a short file or browse a longer one?

Back

`cat` prints a short file; `less` lets you browse a longer file.

07
Front

How do you display the last 20 lines of a file?

Back

`tail -n 20 file` displays the last 20 lines of a file.

08
Front

What does `df -h /path` report?

Back

`df -h` reports used and available space on mounted filesystems. `df -h /path` checks the filesystem containing that path.

09
Front

How does `mv` rename an item versus move it?

Back

`mv oldname newname` renames a file or directory; `mv file directory/` moves it into a directory.

10
Front

What does `lsblk -f` show, and what does listing a device not prove?

Back

`lsblk -f` lists block devices and their filesystems, labels, and UUIDs; a listed device is not necessarily mounted.

11
Front

Why quote a wildcard pattern passed to `find`?

Back

Quote a wildcard pattern, such as `'*.pdf'`, so the shell passes it to `find` instead of expanding it first.

12
Front

What do `pwd`, `cd ..`, and `cd` do?

Back

`pwd` prints the current working directory. `cd ..` moves up one level, while `cd` returns to your home directory.