Timedora
Free Online Flashcard Deck

Unix File Metadata and Listings Free Online Flashcards

Study Unix File Metadata and Listings with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What does `ls -l` provide?

Back

`ls -l` displays a quick overview of file type, permissions, ownership, size, modification time, and name.

02
Front

Which command gives a detailed file-status report?

Back

`stat` provides a more detailed report of a file’s status information than a quick `ls -l` overview.

03
Front

What fields appear in a regular file’s `ls -l` listing?

Back

For a regular file, `ls -l` shows type and permissions, hard-link count, owner, group, size, modification time, and name.

04
Front

How does a long listing indicate a symbolic link’s target?

Back

A symbolic link’s name is followed by `->` and then the path of its target.

05
Front

How does `stat -L` differ from `stat` for a symbolic link on GNU/Linux?

Back

On GNU/Linux, `stat` normally reports the symbolic link itself; `stat -L` follows the link and reports its target.

06
Front

How do you inspect a directory itself with `ls`?

Back

Use `ls -ld reports` to inspect the directory object itself instead of listing its contents.

07
Front

What unit does `ls -l` normally use for file size?

Back

The size shown by `ls -l` is normally the file’s size in bytes.

08
Front

Which GNU `ls` option displays human-readable scaled sizes?

Back

GNU `ls -lh` displays file sizes in a human-readable scaled format.

09
Front

Why can a file’s logical size differ from its allocated disk space?

Back

Logical file size can differ from disk space allocated, for example with sparse files or because of filesystem allocation behavior.

10
Front

What does GNU `ls -n` request for owner and group fields?

Back

GNU `ls -n` requests numeric user and group IDs instead of account names.

11
Front

When might a long listing show numeric user and group IDs?

Back

If an account name cannot be resolved, or numeric output is requested, a listing may show user and group IDs instead.

12
Front

What do `-`, `d`, and `l` mean at the start of a mode string?

Back

The first character indicates object type: `-` for a regular file, `d` for a directory, and `l` for a symbolic link.