$
学ぶ Linux ハンドブック
ja
XP:0
クエスト 3Detailer
+130 XP

Listing Detailed Information

このクエストの対話型ターミナルを起動する→インストール不要 • ブラウザ上で完全動作

概念と概要

A standard ls lists only the names of files, giving you no indication of how large they are, who owns them, or when they were last modified. In Linux, we inspect detailed file metadata using the long listing option:

- The -l (long) option shows permissions, link counts, file owner, group, exact size in bytes, and last modification date.
- The -h (human-readable) option, when combined with -l as ls -lh, translates raw byte counts into intuitive units like K (kilobytes), M (megabytes), and G (gigabytes).

Let's inspect file details. First, run ls -l to see the full permissions, owners, and byte sizes of files in your directory. Then, run ls -lh to view the file sizes in human-readable units.

コマンド構文リファレンス

Command / SyntaxDescription
ls -lList files in detailed long format
ls -lhList files in human-readable long format (K, M, G)

検証目標

  • ○
    Run the "ls -l" command
  • ○
    Run the "ls -lh" command

クエスト完了への準備はできましたか? 3?