Skip to main content

Linux command: ls - list directory contents

Illustrated: Phone book

ls - list directory contents

ls [OPTION]... [FILE]...

Commonly used options

  • l: long
  • a: all
  • S: sort by size
  • t: sort by last modified timestamp
  • r: sort reversed
  • R: recursive
  • F: append indicator (one of */=>@|) to entries