macOS two useful commands

Hello readers,

Today, we are going to learn how to use two commands to count coding file lines.

First of all, open a terminal window.

Choose a file of your own, one on a directory, can be a c++ file under a c++ project folder.

Now, we are going to choose main.cpp

As you see, you can see 173 lines. If it shows less or greater good.

Now, type cloc . then you will see a detailed image like mine.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

19 + fourteen =

coder by Gleentech
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.