LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-07-2015, 03:33 PM   #1
LOfP@reddit
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, 05:27 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,510

Rep: Reputation: 2425Reputation: 2425Reputation: 2425Reputation: 2425Reputation: 2425Reputation: 2425Reputation: 2425Reputation: 2425Reputation: 2425Reputation: 2425Reputation: 2425
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. http://stackoverflow.com/questions/1...ions-mean-to-c
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 05:29 PM.
 
1 members found this post helpful.
  


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


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