Photo by Anas Alshanti on Unsplash

How to list all .c files in your current directory

The command ls *.c will list all files with the extension of .c in the current directory that you are in (does not include subdirectories). How does it work though? The rest of this blog will explain some concepts of ls and how to find any file extensions in the current directory you are in.

The code at the top "ls -l”, lists all the files in the current directory in long format.

Software Engineer living in Tokyo | Linux | Cats | | |

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store