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:
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).