Download your favorite Linux distribution at LQ ISO.
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 10-07-2015, 04:33 PM   #1
LQ Newbie
Registered: Aug 2015
Location: Visakhapatnam,India
Distribution: Ubuntu 14.04 LTS
Posts: 11
Blog Entries: 1

Rep: Reputation: Disabled
Reading source code of programs like TAR.

So,I was really intrigued by the jobs that tar can do, and how efficiently it does it.
So I went on to download the source code.The moment I extracted the .gz I was overwhelmed by the number of files in there.
How am I supposed to read the source code for such a program.
Do I read the headers first or what?
Old 10-07-2015, 06:27 PM   #2
Registered: Mar 2008
Posts: 17,195

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
When you get sources you generally get a lot of files. Some or most could be readable by some means. In some tarballs you may get pre-compiled bits and pieces.
It also may have some legal files like who made it and how one can use it and copy it. Other files may be notes on how to make it. Some sources may need many many other programs to get it working and may also need many other packages to assist the final program. Every once in a while one can use a wysiwyg or graphic type of building app.

So, let me first say, what are you really trying to do? Do you want to make the program or look at editing the features?

To answer your question. Sort the 1000 or so files into extension ending sort. Search online for what each extension may mean. Generally this will be common. For example.
In those groups you will find out how to use them. Some may have no meaning on your build too.

On that link you will notice too that the language of the tar will have to be known too.

Last edited by jefro; 10-07-2015 at 06:29 PM.
1 members found this post helpful.


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
[SOLVED] Source Code Reading daer119 Linux - Newbie 6 01-26-2012 04:55 PM
source code for reading data through com port rs232 applee Programming 2 03-03-2007 08:55 AM
some questions encounted during reading the source code qqrilxk Linux - Security 1 12-08-2004 10:23 PM
My TAR - ed source code isnt the same when I unTAR it LaoNiu Linux - Newbie 2 12-06-2004 02:58 PM
reading kernel source code eshwar_ind Programming 4 06-02-2004 04:18 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 AM.

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