CLI: Difference between revisions

From Computer Science Wiki
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
A command-line interface or command language interpreter (CLI), also known as command-line user interface, console user interface, and character user interface (CUI), is a means of interacting with a computer program where the user (or client) issues commands to the program in the form of successive lines of text (command lines).<ref>https://en.wikipedia.org/wiki/Command-line_interface</ref>
A command-line interface or command language interpreter (CLI), also known as command-line user interface, console user interface, and character user interface (CUI), is a means of interacting with a computer program where the user (or client) issues commands to the program in the form of successive lines of text (command lines).<ref>https://en.wikipedia.org/wiki/Command-line_interface</ref>


We interact with a command line interpreter via a terminal. A terminal window allows the user access to a text terminal and all its applications such as command-line interfaces (CLI) and text user interface (TUI) applications. These may be running either on the same machine or on a different one via telnet, ssh, or dial-up. On Unix-like operating systems, it is common to have one or more terminal windows connected to the local machine.<ref>https://en.wikipedia.org/wiki/Terminal_emulator</ref>


== Command line ==


== Command line ==
The command line interface is an interface to your operating system. Using a command line interface, you can look create, read, update and delete files. You can run programs, and you can manage and view important parts of your operating system.
 
As opposed to a graphical user interface ([[GUI]]) a command line is '''less abstract'''. The command line abstracts file system, but less so than a GUI.  The command line interface is sparse, not very visual, but "more true" in my opinion. I prefer the command line because it removes one layer of abstraction from my work.
 
Every programmer or computer scientist should have skill and knowledge related to using the command line in order to  '''get stuff done'''.
 
An advantage to using the command line<ref>http://www.bbc.co.uk/education/guides/ztcdtfr/revision/2</ref>:


The command line interface, as opposed to a graphical user interface ([[GUI]]) is '''less abstract'''. The command line interface is sparse, not very visual, but "more true" in my opinion. I prefer the command line because it removes one layer of abstraction from my work.
* a faster way to get tasks done
* it is more flexible than a GUI
* it uses less memory


[[Media:Davechild linux-command-line.pdf | Please click here for an excellent "cheat sheet" for command line ]]<ref>https://www.cheatography.com/davechild/cheat-sheets/linux-command-line/ licensed under create commons</ref>. For an interactive version of the same document [https://www.cheatography.com/davechild/cheat-sheets/linux-command-line/ please click here]
[[Media:Davechild linux-command-line.pdf | Please click here for an excellent "cheat sheet" for command line ]]<ref>https://www.cheatography.com/davechild/cheat-sheets/linux-command-line/ licensed under create commons</ref>. For an interactive version of the same document [https://www.cheatography.com/davechild/cheat-sheets/linux-command-line/ please click here]
Line 16: Line 26:


[[Category:command line]]
[[Category:command line]]
[[Category:basic

Latest revision as of 07:27, 13 September 2021

Command line interface[1]


A command-line interface or command language interpreter (CLI), also known as command-line user interface, console user interface, and character user interface (CUI), is a means of interacting with a computer program where the user (or client) issues commands to the program in the form of successive lines of text (command lines).[2]

We interact with a command line interpreter via a terminal. A terminal window allows the user access to a text terminal and all its applications such as command-line interfaces (CLI) and text user interface (TUI) applications. These may be running either on the same machine or on a different one via telnet, ssh, or dial-up. On Unix-like operating systems, it is common to have one or more terminal windows connected to the local machine.[3]

Command line

The command line interface is an interface to your operating system. Using a command line interface, you can look create, read, update and delete files. You can run programs, and you can manage and view important parts of your operating system.

As opposed to a graphical user interface (GUI) a command line is less abstract. The command line abstracts file system, but less so than a GUI. The command line interface is sparse, not very visual, but "more true" in my opinion. I prefer the command line because it removes one layer of abstraction from my work.

Every programmer or computer scientist should have skill and knowledge related to using the command line in order to get stuff done.

An advantage to using the command line[4]:

  • a faster way to get tasks done
  • it is more flexible than a GUI
  • it uses less memory

Please click here for an excellent "cheat sheet" for command line [5]. For an interactive version of the same document please click here

References