A brief explanation about ls command (listing files with extension .c)

First of all we should understand the ls command, this is used to list directory contents in linux. For example list the content of the current directory and you should see something like this:

Now you must learn that * is used in Linux as a wild card that is to say it can be used to express any value, so if you want to list all files with the extension .c the wild card will made you it easily using the command ls *.c which list only the files that have .c extension in the current directory:

In future posts we will review other topics that could interesting for the people with basic knowledge about programming, Linux, or something related areas.



Systems Engineer with a huge experience working on IT infrastructure projects and passionate about software development, AR/VR, Big Data, and Machine Learning.

Love podcasts or audiobooks? Learn on the go with our new app.

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