LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2009, 03:17 AM   #1
mohit_parihar
LQ Newbie
 
Registered: Nov 2009
Posts: 28

Rep: Reputation: 15
information related to echo command


can anyone tell me how does echo command work internally, i mean hows it display the text we entered, which libraries or files it uses.
 
Old 12-01-2009, 03:42 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by mohit_parihar View Post
can anyone tell me how does echo command work internally, i mean hows it display the text we entered, which libraries or files it uses.
Code:
ldd `which echo`
or

Code:
strace echo
might tell you this
 
Old 12-01-2009, 07:06 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
However you should first try this


Code:
$ type echo
echo is a shell builtin
Because as shown, most shells have echo implemented as a builtin, so the binary living in your hd is never really used. In that case, it's the source of your shell what you should be looking at.+
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
more information about echo command shuchi Linux - Newbie 9 04-18-2009 06:15 AM
I'm looking for information about KIDS ( Maybe related to QoS) adioshun Linux - Software 1 08-02-2007 12:10 PM
How to echo/tail process information davimint Linux - Newbie 1 12-15-2006 02:04 PM
Information related to RAW partition RajaRC Red Hat 4 11-06-2003 10:18 PM
Information related to RAW partition RajaRC Linux - General 1 09-26-2003 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration