Question
The shell or command line interpreter is the fundamental user interface to an operating system, each interactive user can send commands to the OS and
The shell or command line interpreter is the fundamental user interface to an operating system, each interactive user can send commands to the OS and by which the OS can respond to the user. The command line is a sequence of ASCII text words delimited by whitespace. The first word in the command line is either the name of a built-in command or the pathname of an executable file. The remaining words are command-line arguments. If the first word is a built-in command, the shell immediately executes the command in the current process. Otherwise, the word is assumed to be the pathname of an executable program. In this case, the shell forks a child process, then loads and runs the program in the context of the child. The child processes created as a result of interpreting a single command line are known collectively.
The new shell should supports:
user commands, such as ls ,date,ls –l –a,
commands with I/O re-direction ,ex : ls –l > a.txt
commands with a single pipe ,ex : who | wc –l
Like all Linux shells, your shell executes a loop. It
prints the shell prompt,
reads the command line (terminated with NULL)
Parses the command line and create its arguments.
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
Solution The shell also known as the command line interpreter is a user interface that allows users ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started