LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-30-2010, 09:22 AM   #1
sharee
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
What is the tar utility and how is it used in Linux?


What are the functions of the tar utility?
 
Old 04-30-2010, 09:29 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Refer the manpage functionality of "tar", basically its using for compress and uncompress the files
 
Old 04-30-2010, 09:34 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
basically its using for compress and uncompress purpose
@kirukan: That's not entirely correct.

Tar itself doesn't de/compress anything, it creates a container which holds the file(s)/dir(s) you want.

Modern versions have integrated de/compress utilities, like bzip/gzip/compress, so you can use compression but it is not tar's main function.

GNU Tar's official manual

Hope this clears things up.

Last edited by druuna; 04-30-2010 at 09:49 AM. Reason: Added tar manual
 
Old 04-30-2010, 09:55 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sharee View Post
What are the functions of the tar utility?
Seems like you're posting alot of "What is the history of", "what is the function of", etc., kinds of questions. Almost like they're homework....are they??

The man pages for the commands, as well as a Google search, can tell you these sorts of things.
 
Old 04-30-2010, 10:07 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Hi druuna, Thanks to correct myself. I had it in mind .gz with tar because mostly i am using tar(.tar.gz) for compress and hold files and directories, or extract source file.
 
Old 04-30-2010, 11:54 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by TB0ne View Post
Seems like you're posting alot of "What is the history of", "what is the function of", etc., kinds of questions. Almost like they're homework....are they??
Note quite the classic homework pattern-- see, eg, the OP's first post.

sharee;
Regardless of whether it is homework, some of your questions could be answered MUCH faster by Google. One the best ways to ask questions here is to tell us what you found on Google and then request clarification of some key point.
 
Old 04-30-2010, 01:43 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by pixellany View Post
Note quite the classic homework pattern-- see, eg, the OP's first post.
Well, the subject was:
Code:
What is the tar utility and how is it used in Linux?
Very much sounds like it's straight out of a textbook, or on a practice test. Took that in context with:
Code:
  1. What is the history of UNIX printing and how do you configure a printer on LInux?
  2. Can someone please explain the GNU Project in Layman's terms
  3. I want to know the History of Linux.
  4. Is CLI and GUI the only tools that can be used to add users and groups within Linux?
Just all seem like textbook type questions. Not accusing, mind you...but given the pattern, felt it best to ask.

Last edited by TB0ne; 04-30-2010 at 01:56 PM.
 
Old 04-30-2010, 02:17 PM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by TB0ne View Post
Just all seem like textbook type questions. Not accusing, mind you...but given the pattern, felt it best to ask.
There's a pattern to sharee's six threads. In each one, the language of the title is quite different from the language of the message and there has not yet been a second post from sharee in the thread. That's an unusual pattern.
 
Old 04-30-2010, 02:26 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by catkin View Post
That's an unusual pattern.
Yes and no---we have quite a few cases lately where "serial posters" start many new threads with no follow-up.

One was so egregious that we started discussing how to curtail such behavior.

The current control mechanism is that "serial posters" will eventually not get help from some portion of our membership.
 
Old 04-30-2010, 02:35 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
OK--I'm slow.

I just read another of sharee's posts, and I see the point. The title appears to be a cut and paste from the assignment, and the text is more ad-libbed.
 
  


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 can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
[SOLVED] tar utility Sayan Acharjee Linux - General 5 03-26-2010 01:06 AM
how to make a filename make list and feed it to the tar utility nass Slackware 9 09-25-2007 11:51 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM

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

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