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-24-2010, 03:53 PM   #1
tubu_cuteguy
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
Question how to view the source code of different commands


hi
i want to see the source code of different commands .
how they are working ??
for ex why ls is listing all the files and directory .
what code is written for ls so that it is listing like this.
where the source code is kept by the os
pls help me out!!!!!!!!!!!!!!
 
Old 07-24-2010, 03:55 PM   #2
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
You probably won't find it installed on your system. The most common shell utilities are part of the "GNU coreutils" package, google for it, you can download the source...
 
Old 07-24-2010, 05:56 PM   #3
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37
Posts: 290

Rep: Reputation: 55
If it is Slackware you grab the 3rd CD (sources) and pkgtool to untar them.
Other distro have a web site with the source code packages, see GPL.
They end up in /usr/src directory.
Packages imported from other places usually end up in /usr/local/src.
 
  


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
How to view kernel source code MichaelBoz Linux - Newbie 2 11-16-2008 04:52 PM
How to view source code in LINUX? karthikg356 Linux - General 4 12-23-2007 09:37 AM
How to view source code in linux? karthikg356 Programming 2 12-23-2007 02:28 AM
how to view source code nick021 Linux - Newbie 4 02-13-2006 01:51 AM
source code for tree view ambitionless Programming 0 09-13-2004 10:39 AM


All times are GMT -5. The time now is 07:07 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