Kolam Ayer MakersLinux Foundations

Command: ls

Use

ls
ls -la ~

What It Does

ls lists directory entries.

Useful Options

Long Listing

ls -l ~/src/pages

The first column shows file type and permissions. The owner and group columns matter on a shared server.

Watch Out

ls output is for humans. Scripts should usually use explicit paths, find, or shell globs instead of parsing decorative ls output.

Docs Pointers