Skip to main content

ls

List directory contents.

Usage

ls [-l] [-a] [FILE]...

Options

OptionDescription
-lLong format: file type (d=directory, -=file), permissions, size (bytes), name
-aShow all files (including hidden files starting with .)

Notes

  • With no arguments, lists the current directory
  • Defaults to multi-column output (auto-adjusts to terminal width)

Examples

# List current directory
ls

# Long format listing
ls -l

# List all files
ls -la /kobj/device/