DEV Community

Cover image for As a dev why you should use the command line
Harshit paliwal
Harshit paliwal

Posted on

As a dev why you should use the command line

why you should use CLI over GUI

You should use the commans line because if you use it in public or with your nontech friends you look cool πŸ˜‚!!
CLI(command line interface) is faster than GUI(graphical user interface).
like if you want to move your CPP or py file and in this folder here in many more different files, in GUI you will do like ctrl + click select to those files and cut/move you do it like this right what if you want to select 100 CPP file in the folder of 1000 πŸ₯² it is going to be a real drag.

If you are using CLI the command line you can move files by just typing one line

$ mv Desktop/* .cpp Downloads/
Enter fullscreen mode Exit fullscreen mode

this is just a simple example with the command line we can do a lot of powerful stuff.

## How to get started
I want to help you to start with CLI here are some basic commands I use every time

Basic Commands

Use to see the path of the current working directory

$ pwd 
Enter fullscreen mode Exit fullscreen mode

To go inside the directory

$ cd project-name
Enter fullscreen mode Exit fullscreen mode

To view the content of the directory

$ ls
Enter fullscreen mode Exit fullscreen mode

For Copy the directory

$ cp File-name
Enter fullscreen mode Exit fullscreen mode

To create new directory

$ mkdir main-project
Enter fullscreen mode Exit fullscreen mode

To delete a directory

$ rmdir
Enter fullscreen mode Exit fullscreen mode

To create new blank file

$ touch index.html
Enter fullscreen mode Exit fullscreen mode

These are some main and basic commands.
start your Command-line journey.
I am glad if you find this post useful even a little bitπŸ₯³

Top comments (0)