List Directory

ls (list)

To list the contents of the home directory type

% ls

The ls command lists the contents of your current working directory. If there are no files in the current working directory, then the UNIX prompt will be returned. The ls command does not list hidden directories. Hidden directories have names preceded by a dot(.) In order to display hidden files the ls command is used with an option a

% ls-a

Options are used to modify the behaviour of a command.