LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2007, 02:30 AM   #1
restitutor
LQ Newbie
 
Registered: Jul 2007
Location: Serbia
Distribution: openSUSE 10.2
Posts: 3

Rep: Reputation: 0
Where can I find bin files sources


I suppose scripts and programs that come with linux are mostly written in C.
Can I find those source files somewhere to see how they work?
BTW I'm talking about scripts like echo, cat,...
Thanks!
 
Old 07-16-2007, 02:34 AM   #2
St.Jimmy
Member
 
Registered: Jun 2006
Location: Boaz,Alabama
Distribution: Ubuntu 10.10 / Windows 7 Pro 64-Bit / Snow Leopard 10.6.4 64-Bit
Posts: 152

Rep: Reputation: 30
/bin
.................................................
 
Old 07-16-2007, 09:07 AM   #3
restitutor
LQ Newbie
 
Registered: Jul 2007
Location: Serbia
Distribution: openSUSE 10.2
Posts: 3

Original Poster
Rep: Reputation: 0
That's where executables are, I want to see the sources of those...
 
Old 07-16-2007, 01:02 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
echo is part of bash, and cat probably is too, so you'll need to look at the source for bash, which you can find in many places, including here:

ftp://ftp.gnu.org/gnu/bash/
 
Old 07-16-2007, 04:30 PM   #5
jakykong
Member
 
Registered: Apr 2006
Location: Washington
Distribution: Debian Gnu/Linux Lenny on AMD64x2 (32-bit mode), an AMD Sempron 64 laptop, debian, 32bit
Posts: 101

Rep: Reputation: 15
Quote:
Originally Posted by tredegar
echo is part of bash, and cat probably is too, so you'll need to look at the source for bash, which you can find in many places, including here:

ftp://ftp.gnu.org/gnu/bash/
At least for me (running debian), neither echo OR cat are part of bash.

Where you can find the source code depends entirely on what program you're trying to find it for.
Echo and cat are (at least on debian) part of the coreutils package, who's source can be found at ftp://alpha.gnu.org/gnu/coreutils.

This package also includes things like grep and less (and more).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09:30 PM
can't find kernel sources Avatar Debian 3 09-12-2005 01:36 PM
/bin/... commands sources puishor Linux - General 2 06-23-2005 08:40 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 11:42 PM
where to find xroot sources keex Linux - Software 0 10-20-2003 11:27 AM


All times are GMT -5. The time now is 06:28 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration