Intro. 2 Command Line Interfaces: Data Link University College
Intro. 2 Command Line Interfaces: Data Link University College
Intro. 2 Command Line Interfaces: Data Link University College
A CLI (command line interface) is a user interface to a computer's operating system or an application in which the user responds to a visual prompt by typing in a command on a specified line, receives a response back from the system, and then enters another command, and so forth.
The MS-DOS Prompt application in a Windows operating system is an example of the provision of a command line interface.
Today, most users prefer the graphical user interface (GUI) offered by Windows, Mac OS, BeOS, and others. Typically, most of today's UNIX-based systems offer both a command line interface and a graphical user interface.
Below is a table to help illustrate the major advantages and disadvantages of each of the interfaces.
NOTE:
Although it appears that a command line wins this comparison, it is not meant to be a suggestion to stop using a GUI such as Windows and only use a command line. It is more beneficial for a computer user to learn and understand both a GUI and CLI and know the strengths and weaknesses of each interface.
Types of Processing
Serial Processing
The job is processed at the time when it is submitted.
Batch Processing
The similar jobs are bunched together and are kept for processing at an later time.
7/9/2012
Introduction to Computers
MS-DOS Overview
MS-DOS is an acronym for MicroSoft Disk Operating System It is a CUI based operating system. It provides user with a command prompt (generally called as C:\) where various command could be typed. When one operates in the DOS environment, one interacts with the command interpreter, which interprets the commands given by user. It provides an environment for execution of various application programs like MS-Word, MODBANKER, ISBS etc.
When one types commands to a computer, one is conversing with the operating system's command interpreter.
For example, to copy a file called file.txt from the 31/2" floppy drive to the hard drive, one could type C:\> copy a:\file.txt c:\ The word "copy" is a DOS command which causes files to be copied from one location to another
Directory
A collection of files is directory (in DOS) or folder (in Windows) It is analogous to the Office Folder which contains various documents. A directory/folder eases the management of related files/ documents, like the various circulars related to personnel could be placed in a directory called personnel and all the circulars related to loans could be placed in a directory called loans.
Filenames in DOS?
The filename can contain alphabets and numbers. It cannot contain any special character other than underscore (_) and also no spaces.
The drive which contains the root is specified at the head of the
path, separated from the root by a colon (':')
7/9/2012
Introduction to Computers
15
C:\> edit <filename> This will open a editor window where the contents of file can be seen. These contents could also be edited here and on saving, the contents of file will change.
type: Displays the content of a file. C:\> type <filename> This will display the contents of file on the computer. The contents of file could only be viewed but could not 17 be changed, as in the case of edit.
QUIZ
What is command to create directory? C:\>MD <<dir-name>>
QUIZ
What is the maximum length of name in DOS? First Name- 8 characters, Last characters. file Name- 3
QUIZ
What is the command in DOS to see the contents of the file? C:\> Type<<File Name>>