How to display all the files with “.c” extension within your current directory in Unix

Frank Spacy
1 min readSep 16, 2019

--

I’ve created a new folder named “me” and within it I’ve put some files with different extensions and a single directory.

To see all different files and directories you have in your current directory, simply type “ls” in the terminal. As you can see above in the picture there are different extensions like “.c .js .md”. And when I typed “ls *.c” it showed all of the files with the extension “.c” with “*” stands for all everything in the folder.

You can read about it more in the ls manual page.

--

--

No responses yet