Interaction with Non-Living

Command Line Interface (CLI)

Kartik Dogra
2 min readJun 6, 2021

A command line interface or CLI is a method to interact with the computer with the help of textual lines. In layman’s terms, the user types a command and computer prompt character in response to that.

CLI (ubuntu)

In the 1960s, CLI was used intensively.

Back then, people had only a keyboard as an input device and the computer screen could only display text information. The operating systems like MS-DOS used the CLI as the standard user interface.

Common and Popular CLI

  • Windows (DOS): C:\>
  • OS X (bash shell): My-iMac:/ me$
  • Linux (bash shell): [root@myserver /]#

Advantages of a command line interface

  • If you know the commands, a CLI can be a lot faster and efficient than any other type of interface. It can also handle repetitive tasks easily.
  • A CLI requires less memory to use in comparison to other interfaces. It also does not use as much CPU processing time as other interfaces.
  • A CLI doesn’t require Windows and a low-resolution monitor can be used. Meaning, it needs fewer resources, yet is highly precise.

Basic CLI Commands

There are hundreds of different commands available in a command line. The set of commands may vary dramatically between operating systems or applications.

ls List the directory (folder).

cd .. Move one level up (one folder) in the file system.

cp Copy a file to another folder.

mv Move a file to another folder.

mkdir Creates a new directory (folder).

rmdir Remove a directory (folder).

clear Clears the CLI window.

exit Closes the CLI window.

History and Detail Information On CLI

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Kartik Dogra
Kartik Dogra

Written by Kartik Dogra

0 Followers

Passionate about designs and making things better for the world.

No responses yet

Write a response