CLI(Command Line Interface) has always been a prodigy to developers and to all who knows how to use it. In our last session of #dgplug, we all were told to write a short experience with CLI. I was introduced to CLI by my friend geekyshacklebolt at first. He was already using it at the time and wrote a short blog on it. So, I have started with his blog and as soon as I reached its end, my curiosity leads me to explore more and more. I started hunting for the topic on google and read many tutorials and gone through a lot of links. I started using it for my regular tasks. The very first thing I do when I start my computer is to press three magical keys on my keyboard which are Ctrl + Alt + T. This is the shortcut to open the terminal in Ubuntu.
As soon as I commanded over basic commands and functions which we can perform using CLI, I wrote an introductory blog on it. You can see that here. It was always nice using it. At that time, I was also working on my keyboarding speed. Well, once you get command on touch typing, using terminal becomes fascinating. I have learned a bit more and get to know about the use of Filters and wildcards which when used with regular expressions can make wonders in few seconds.
It’s true that it may be hard to use CLI for a beginner, but we’re not going to be the beginner always. We grow, do mistakes(sometimes blunder mistakes) but we learn from them. CLI always tempts you to get the best of it. There are a lot of options to do one thing and once you start using it, you try to explore it more and more. It doesn’t mean that if you are using CLI, you have to ditch GUI(Graphical User Interface). As I have said earlier also, choose the one which suits your job.
If I have to point out some major benefits of using CLI, then those would be:
- Faster working speed as it interacts directly with the shell.
- Use of shell scripts can make your regular tasks done in seconds.
- Aliases prove much beneficial for long commands and much useful for novices.
- They have a wonderful collection of man pages just write –help after a command and you would get all its uses and options.
- Every command has a number of command line options which shows the versatility of CLI.
- Use of Piping and Redirections can help you managing the outputs of different commands.
- Once you get familiar with CLI, you can configure different tools by yourself. The configuration files won’t be aliens for you then.
- There are shortcut keys available to ease your tasks. Features like tab completion and the ability of up-down keys to use the previous commands prove to be very helpful.
These are very few of the many. But as I said these are the major ones, which I have experienced. As everything has some minuses, CLI also have. Tasks like video editing, net surfing which requires the use of GUI can’t be done efficiently by CLI. But I feel that CLI hasn’t made for this. It has been made to do more complex tasks. Many of you might have a different point of view. Though we can all agree to disagree.
That’s all for now. If you have any view regarding this post, feel free to share your thoughts in the comment section below.
Be curious and keep learning!