What happens when you type “ls -l” in the shell?

We came across ls in a previous article when we explained “ What happens when you type ls *.c”. However in this article we’re going to explain what really happens when you type ls- l.

ls is a Unix-related systems command that lists the contents of a directory. The -l on the other hand is known as an option or flag. We can find multiple options for ls, too many to list in fact, however the l in particular will allow ls to list the contents of a directory in “long format”. Whereas “normal format” will only list the names of each file and…