LinuxQuestions.org
Help answer threads with 0 replies.
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 11-10-2007, 04:20 PM   #1
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
Source code for GNU utils?


hi, do you happen to know where can I find the source code for stuff like : the cp command? or any other commands such as mv or grep, etc?

I just want to see how these stuff were implemented, which is fascinating !

Thanks
 
Old 11-10-2007, 04:30 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Did you not think about going to the GNU website? cp, mv and friends are part of GNU Coreutils and grep, is well, GNU grep. Try googling to find a project's homepage and you'll be able to download the source from there.
 
Old 11-10-2007, 04:34 PM   #3
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Thanks, I've seen it only after I posted.


Thanks anyways./
 
Old 11-10-2007, 04:59 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
On a debian-based distro, you can do it like this:
  1. Make sure the source repositories are enabled in your /etc/apt/sources.list
  2. Find out which package provides the program in question:
    Code:
    dpkg -S $(which mv)
  3. Install source:
    Code:
    apt-get source packagename
 
Old 11-11-2007, 01:19 PM   #5
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
I couldn't find the sources for other stuff I was looking like ps,
I'd be happy if you could guide me which package to look for the ps code, since I can't find it
 
Old 11-11-2007, 01:40 PM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
procps. Looking at man pages usually helps, too .
 
Old 11-11-2007, 01:43 PM   #7
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
Quote:
Originally Posted by itz2000 View Post
I'd be happy if you could guide me which package to look for the ps code, since I can't find it
Dude, just use your package manager (supposing you use one). It will be able to tell you what files belong to which package (matthewg42 gave some instructions for dpkg-based distros). Incidentally, on most linux distros, ps comes from the procps package.
 
  


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
GNU global source code tagging system doesnot work on cygwin! tuxfood Linux - Software 0 06-28-2006 05:50 AM
LXer: Speed your code with the GNU Profiler LXer Syndicated Linux News 0 04-04-2006 09:21 PM
GNU utils on Solaris d1s4st3r Solaris / OpenSolaris 4 09-09-2004 04:48 PM
what is GNU/Linux Source Code tivo 5.1 software for? rjwright Linux - Software 2 12-10-2003 01:04 PM
Releasing source code into GNU TexasDex Linux - Software 1 04-16-2003 05:39 PM


All times are GMT -5. The time now is 08:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration