Salmen Zouari
1 min readSep 16, 2019

What happens when you type ls *.c

It’s short for the word list [ls] (it’s a great practice to think about any command’s function and why the language’s inventor would name the command such). So by typing in [ls] and hitting [Enter], you get:

This is the result of ls, as we can see we have 2 files who end with “.c”

we want to list the files who ends with .c

we use “ls *.c”

We only get the files with the filename extensions “.c” (which are C programming language files).

Salmen Zouari
Salmen Zouari

No responses yet