Command Line Interpreter

186 views 17 slides Jan 17, 2023
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

Command Line Interpreter


Slide Content

Command Line Interpreter Dr. Amar Nath

Command Line Interpreter (CLI) Command interpreter is a special system program that act an interface between user and Operating system (OS). It receives the instruction from the user and transfer them to OS. After receiving the instruction from the command line interface, OS get the thing done.

CLI Some command line interpreter are based on text like MS-DOS, Unix shell, and Linux . Some command line interpreter (CLI) are GUI based lime Mac, Android, and Window etc. Commands received by CLI makes the OS to do process creation, process management, I/O management, memory (main and secondary) management, file management , protection and networking.

Internal and external DOS Commands DOS Commands are instructions to perform tasks on files and directories very useful to Windows users. DOS commands are case insensitive . DOS Commands are divided into 2 types: Internal Commands These are for performing basic operations on files and directories and they do not need any external file support. External Commands These external commands are for performing advanced tasks and they do need some external file support as they are not stored in  COMMAND.COM

Most Commonly Used Internal DOS Commands

Create a new file

Delete a file

Creating/remove a Folder/Directory

The autoexec.bat and the config.sys were files created for  MS-DOS  and  Windows 3.x  to load device and operating system files to properly run.  However, with newer versions of Windows are no longer needed

How to edit the files The auotexec.bat and the config.sys are edited by the MS-DOS command file  edit . To edit these files, type  edit c:\autoexec.bat  to edit the autoexec.bat file, or  edit c:\config.sys  to edit the config.sys file

Batch file: Creating a batch file to automate repetitive tasks is easy

Linux and Unix UNIX The Unix OS works on CLI (Command Line Interface), but recently, there have been developments for GUI on Unix systems. Linux  is a family of open-source Unix-like  operating systems  based on the  Linux  kernel, an  operating system  kernel first released on September 17, 1991 Linux is a Unix clone, behaves like Unix Example: ubuntu, Red Hat

Utilities Shell Kernel Hardware User UNIX Shell A Unix shell is a command-line interpreter or shell that provides a command line user interface for Unix-like operating systems. UNIX Shell is CLI that allow multiple users to do multiple tasks. Unix is a multi-user OS. User

A  Shell  provides you with an interface to the Unix system. It gathers input from you and executes programs based on that input. When a program finishes executing, it displays that program's output. Shell is an environment in which we can run our commands, programs, and shell scripts. Unix / Linux - What is Shells?

$date Thu Jun 25 08:30:19 MST 2009 Shell Types In Unix, there are two major types of shells − Bourne shell  − If you are using a Bourne -type shell, the  $  character is the default prompt. C shell  − If you are using a C-type shell, the % character is the default prompt.

DOS is a single tasking, single user and is CLI based OS whereas Windows is a multitasking, multiuser and GUI based OS . What is the difference between MS-DOS and Windows?
Tags