WSU logo


College of Engineering & CS
Wright State University
Dayton, Ohio 45435-0001

CEG 333: Introduction to Unix

Prabhaker Mateti

Listing Files


The ls command has many options to control the format and amount of information shown about files. ls -lisa is a good command for showing all information available. Here's what it does:

Option Effect
-i Show the i-numbers of files
-s Show the size of files rounded up to block size (defaults units are kilobytes)
-a Show all files. Normally files whose names begin with a dot, the so-called dotfiles, are hidden.
-l List extended information. The columns, from right to left, are:
  1. file type: "-" for a normal file, "d" for a directory, etc.
  2. permissions
  3. number of hard links to the file
  4. owner
  5. group
  6. size
  7. modification timestamp
  8. filename