DEV Community

Cover image for COMMAND LINE BASICS
milky121
milky121

Posted on

COMMAND LINE BASICS

The black screen or window that appear on our system is the COMMAND LINE INTERFACE(CLI),where we are able to enter commands that our computer will run for us.
Working with it is a critical skill for us to learn as a developer.

_The command line is like our base of operations, from which we can launch other program and interact with them.If you will be entering the same command dozens of time, you'll quickly pick up the commands you needs the most.

~TEST DRIVE YOUR TERMINAL

*Open a terminal on your computer linux:open the program menu and search for "TERMINAL"
*you can also open 'TERMINAL'by pressing "CTRL+ALT+T"

   BEFORE THIS TAKE A LOOK HERE---
Enter fullscreen mode Exit fullscreen mode

$whoami.This is a terminal command because it begins with $.$ is saying"hey!Enter what follows in your terminal.
It means we must exclude $ when entering a command.In the above example, we would only enter "whoami"in our terminal.
Now try it out and make sure your terminal is open, type the command mentioned and press ENTER.

~WHY COMMAND LINE:

because the upcoming installations will require you to install many different program using the command line. As part of bigger picture,you may well be using command line on a daily basis as a software developer.

  Before diving into command line, let's know how to create a file.
Enter fullscreen mode Exit fullscreen mode

1.Open your terminal and enter 1S, 1S will show you the file and folder.

2.Create a file called"test.txt"by entering in terminal"touch test.txt".

3.Now enter 1S once again. You should see "test.txt"listed in the output.

~NOTABLE POINTS:

  1. You might have already noticed that copying and pasting inside the command line doesn't work.So when you are inside the command line use "CTRL+SHIFT+C" to copy and "CTRL+SHIFT+V" to paste.

2.You need to learn about TAB COMPLETION(is a common feature of command line interpreter, in which the program automatically fills in partially typed commands.
It allows the user to type the first few characters of a command, program or file name and press completion key i.e tab to fill in the rest of the item.The user then press'return' or 'enter' to run the command or open the file.
THANK YOU AND HAVE A NICE DAY...

Top comments (0)