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

Photo by Chris Ried on Unsplash

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.

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