Which command quickly finds files larger than 1 gigabyte and prints their path and size in kilobytes?

Prepare for the Google Data Center Technician Exam. Use our interactive quiz featuring flashcards and multiple choice questions with hints and explanations. Get exam-ready today!

Multiple Choice

Which command quickly finds files larger than 1 gigabyte and prints their path and size in kilobytes?

Explanation:
Locating large files efficiently comes from using find to filter by size and formatting the output to show both the path and a numeric size. The command starts at the filesystem root and only considers regular files, then narrows to those bigger than 1 gigabyte. The printf part prints the full path and the size in kilobytes, which is exactly what you want to see: path plus size in KB. Suppressing permission errors keeps the list clean, since many system areas are restricted. Finally, sorting by the second field orders the results by size, making the largest files easy to spot. This combination is correct because it directly targets files larger than 1G, prints both the file path and a precise size in kilobytes, hides permission-denied messages to avoid noise, and sorts the output for quick review. Other approaches either don’t filter by size, don’t show both path and size, or rely on disk-usage tools that don’t report per-file sizes in a consistent, parseable way.

Locating large files efficiently comes from using find to filter by size and formatting the output to show both the path and a numeric size. The command starts at the filesystem root and only considers regular files, then narrows to those bigger than 1 gigabyte. The printf part prints the full path and the size in kilobytes, which is exactly what you want to see: path plus size in KB. Suppressing permission errors keeps the list clean, since many system areas are restricted. Finally, sorting by the second field orders the results by size, making the largest files easy to spot.

This combination is correct because it directly targets files larger than 1G, prints both the file path and a precise size in kilobytes, hides permission-denied messages to avoid noise, and sorts the output for quick review. Other approaches either don’t filter by size, don’t show both path and size, or rely on disk-usage tools that don’t report per-file sizes in a consistent, parseable way.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy