Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-24-2010, 02:53 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 2

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

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
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
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2
Posts: 316

Rep: Reputation: 76
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.


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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 PM.

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