echo

  • gr8linux
  • Born
  • Born
  • gr8linux
  • Posts: 4

Post 3+ Months Ago

can anyone please tell me what is the internal working of echo command....... i mean how does it display anything we entered.....
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Posts: 481

Post 3+ Months Ago

Just about every programming language has some kind of text output function, such as printf in C. It's quite obvious that the echo command uses this to display the text you enter.
  • gr8linux
  • Born
  • Born
  • gr8linux
  • Posts: 4

Post 3+ Months Ago

casablanca wrote:
Just about every programming language has some kind of text output function, such as printf in C. It's quite obvious that the echo command uses this to display the text you enter.


thanx for ur response.
i m not looking for what does echo do, i wanna know how does it display..... what is the roll of shell, kernal etc. in this .........
  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Posts: 481

Post 3+ Months Ago

The shell basically reads user input and invokes some function based on the command. In case of "echo", it calls an output function such as printf, which in turn uses the kernel's services to print characters on the screen. The kernel itself uses device drivers (the display driver in this case) to communicate with the hardware.

Hope I answered your question.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 59 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.