LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 02: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, 02: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, 04:56 PM   #3
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2, 15.0
Posts: 635

Rep: Reputation: 154Reputation: 154
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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