The ls command lists directory contents. It is one of the most commonly used commands in a Linux environment. ls is similar to dir in a Windows environment.

Finding What Shell You Are Using

You can use the ls program along with the flag -l (use the long list format) to determine what shell program you are using (bash, dash, Bourne, e.t.c).

Type the following command:

If I was running bash, the program will output something like this: