Yoyman Manuel Castellar Miranda
2 min readFeb 5, 2020

¿What happens when you type ls *.c?

This blog is about ls command in linux. The idea is explain how it works and we other navigations options exist.

Before to explain the command ls *.c is necessary to explain what is ls.

ls means “List files and Directories”. If you want to see what are the files or directories you have in your directory, just type “ls” and Enter.

The files will be showed in alphabetical order

In this picture we can see the result when “ls” is typed.
The correct structure for ls is

“*” character means match any characters in a filename so if we type “ls *” we will see a similar result.

Now, ¿What happens when you type ls *.c?, when you type “ls *.c” you are saying that you want to see all the files, where their extension are “c”.

you can see the filename and their extension

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response