November 22, 2024, 03:52:18 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: HOW SHELL INTERACTS WHEN A COMMAND IS FIRED?  (Read 9553 times)

Offline radhika789

  • Linux Noob !
  • *
  • Posts: 9
HOW SHELL INTERACTS WHEN A COMMAND IS FIRED?
« on: August 08, 2009, 02:55:24 PM »
HOW SHELL INTERACTS WHEN A COMMAND IS FIRED?

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: HOW SHELL INTERACTS WHEN A COMMAND IS FIRED?
« Reply #1 on: September 02, 2009, 05:16:56 AM »
The user can't directly access the h/w so there is something called kernel in OS which have direct access to h/w and the shell is something which passes the command to kernel and kernel interects with H/w.

Shell acts as command interpreter i.e it converts the command  which is in high level lang i.e ( like ls, date ) into bits and bytes  and passes to the kernel which inturns give the results in bits or bytes(low level or m/c level)  and passes to shell which in turns converts to high level and display to user

User-----------shell ------------------kernel---------------h/w