Which command displays a long listing for the directory named reports itself, rather than listing the directory’s contents?
Linux File Metadata with `ls` and `stat` Online Quiz Questions
Use this free practice quiz with 20 questions to review Linux File Metadata with `ls` and `stat`, test your knowledge, and prepare for your next test or exam.
Select all statements that accurately describe using ls or stat to inspect file metadata.
- A
ls -lprovides a quick overview of file metadata. - B
statprovides a more detailed report of file status information. - C
GNU
ls -lhdisplays file size in a human-readable scaled format. - D
ls -lnormally reports the disk space allocated to a file, not its logical size. - E
A directory’s displayed size in
ls -lis the total size of everything inside it.
In an ls -l listing, a directory’s displayed size is the total size of everything stored inside that directory.
- A
True
- B
False
Which GNU ls option requests that ownership be shown as numeric user and group IDs?
The size shown for a file by ls -l is normally expressed in .
What information does ls -l show for a regular file, and which command can provide a more detailed report of file status?
On GNU/Linux, which command follows the symbolic link latest to inspect its target?
- A
statalways follows a symbolic link to its target. - B
ls -ldfollows a symbolic link and displays the target’s metadata. - C
On GNU/Linux,
stat -L latestfollows the symbolic linklatestto its target. - D
A symbolic link’s target is shown as the file’s modification time.
Select all statements that accurately describe ownership and size information in a long listing.
- A
Owner and group columns may show account names or numeric IDs.
- B
Owner and group columns show which permissions the file grants.
- C
The size in
ls -lis normally the file’s size in bytes. - D
A file’s logical size can differ from the disk space allocated to it.
- E
GNU
ls -lhrequests numeric user and group IDs.
Which command displays a long listing whose default timestamp is normally a file’s modification time?
In a regular file’s ls -l listing, one field gives the file’s , and another gives its .
Which command displays information about the reports directory itself rather than listing the directory’s contents?
- A
ls -l reports - B
ls -ld reports - C
stat -L reports - D
ls -n reports
Which GNU ls command requests numeric user and group IDs instead of account names?
A user needs to access a known entry by path inside a directory. Which directory permission is required for that traversal?
- A
Read permission, but not search permission
- B
Write permission, but not search permission
- C
Search permission, even if read permission is absent
- D
No directory permission, if the file itself is readable
GNU ls -n requests numeric user and group IDs in the listing.
- A
True
- B
False
On GNU/Linux, what option makes stat follow a symbolic link to its target?
Which command is described as providing a more detailed report of a file’s status information?
- A
stat notes.txt - B
ls -l notes.txt - C
ls -ld notes.txt - D
ls -n notes.txt
In what unit does ls -l normally show a file’s size?
How does a symbolic link appear in an ls -l listing?
- A
The link name is followed by the target in parentheses.
- B
The link name is followed by
->and its target. - C
The target is shown before the link name, separated by a colon.
- D
The link’s target is not displayed in a long listing.
For a regular file, which set of fields does a typical ls -l listing show?
- A
Type and permissions, owner, group, size, access time, and name
- B
Type and permissions, hard-link count, owner, group, size, modification time, and name
- C
Type and permissions, owner, group, allocated disk space, creation time, and name
- D
Type and permissions, hard-link count, owner, group, size, status-change time, and name
On GNU/Linux, what is the difference between running stat latest and stat -L latest when latest is a symbolic link?
- A
statfollows the link to its target by default, andstat -Lreports the link itself. - B
Both
statandstat -Lreport only the symbolic link itself. - C
statnormally reports the symbolic link itself, whilestat -Lfollows it to the target. - D
Both
statandstat -Lfollow the link to its target.
Related study packs and tools
3 Airway, Respiration, and Ventilation
Review EMT airway assessment, breathing mechanics, airway management, ventilation support, and priorities for common respiratory emergencies.
3 Airway, Respiration, and Ventilation
Learn how to assess airway and breathing, distinguish ventilation from oxygenation and respiration, provide appropriate support, and recognize common respiratory emergencies.
4 Cardiology and Resuscitation
Review cardiac assessment and emergencies, adult and pediatric CPR, AED use, and special resuscitation priorities for EMTs.
4 Cardiology and Resuscitation
A medium-difficulty quiz on EMT cardiovascular assessment, cardiac emergencies, CPR, AED use, and special resuscitation considerations.
4 Cardiology and Resuscitation
Learn how EMTs assess cardiac emergencies, recognize poor perfusion, and provide prompt care for cardiac arrest and other resuscitation situations.
6 Medical Emergencies
Review EMT priorities and key recognition and care principles for neurologic, metabolic, respiratory, toxicologic, behavioral, and environmental emergencies.
6 Medical Emergencies
A medium-difficulty quiz on recognizing and responding to medical emergencies within EMT scope and local protocols.
6 Medical Emergencies
Learn how EMTs approach medical emergencies, recognize time-sensitive conditions, provide care within their scope and local protocols, and arrange appropriate transport.
7 Obstetrics, Gynecology, and Pediatric Emergencies
A medium-difficulty quiz on practical assessment, treatment, and transport decisions in obstetric, gynecologic, neonatal, and pediatric emergencies.
8 EMS Operations
A medium-difficulty quiz on applying EMT operational principles to scene safety, communication, incident management, patient rights, and coordinated care.
9 Comprehensive EMT Practice Scenarios and Review
Review EMT exam domains and the priorities, interventions, and responsibilities that guide safe care in common emergency scenarios.
9 Comprehensive EMT Practice Scenarios and Review
Practice applying EMT scene safety, assessment, intervention, transport, and operational principles to realistic situations.