XMPP JavaScript Library

Working with tar in Linux

Linux, Sachin Puri, 2011-08-20 16:54:37

Create a tar file (compress a folder using tar in Linux)

$ tar -cvf <tar-file-name.tar.gz> <full-path-to-folder>

Create a tar file using gzip compression (compress a folder using tar in Linux)

$ tar -zcvf <tar-file-name.tar.gz> <full-path-to-folder>

Example :-

$ tar -zcvf myfoldertar.gz /home/user1/myfolder

List contents of a tar File

$ tar -tvf <filename.tar>

List contents of a tar.gz File

$ tar -ztvf <filename.tar.gz>

List contents of a tar.bz2 File

$ tar -jtvf <filename.tar.bz2>

Extract specific files from tar

$ tar -xvf <tar-file-name>

Extract specific files from tar

$ tar -xvf <tar-file-name> <path-to-file-or-folder>

c :: List the contents

t :: List the contents

v :: Verbose

f :: Filename

z :: Filter archive using gzip

j :: Filter arvhive using bz2

Add Your Comment
   
    Yes! I want to receive all comments by email

  by Barsa Patel on 25-Mar-2019 03:14 pm
Type your comment...Thank you for sharing your knowledge and experience with me. body to body massage in south delhi
erotic massage in malviya nagar delhi
body massage centre in malviya nagar
body massage cetner in malviya nagar
body with body massage in delhi
b2b massage in malviya nagar
body to body massage centre in malviya nagar
body to body massage in faridabad
full body to body massage in delhi
tantra massage in malviya nagar
body massage center in south delhi
body on body massage in delhi
body massage in new delhi
body massage parlour in delhi
female to male body to body massage in delhi
body to body massage in delhi
erotic massage in malviya nagar
full body massage in malviya nagar
massage center in delhi
full body massage centre in delhi
massage centre in malviya nagar
full body massage centres in malviya nagar
massage in delhi
body to body massage in malviya nagar delhi
massage parlour in malviya nagar
body massage cetner in delhi
massage in malviya nagar
body with body massage in south delhi
b 2 b massage in malviya nagar
body massage in by female in malviya nagar
best body massage parlour in malviya nagar
best spa deals in malviya nagar
body massage center in new delhi
best body massage in malviya nagar
full body massage in south delhi
spa in malviya nagar
full body to body massage centres in malviya nagar
body to body massage in malviya nagar
full body to body massage in malviya nagar
nuru massage in malviya nagar
body massage parlours in malviya nagar
full body to body massage parlours in malviya nagar
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Arjun Singh on 19-Mar-2019 05:33 pm
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Deepti on 15-Mar-2019 04:01 pm
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by 코인카지노 on 11-Mar-2019 09:38 pm
Nice knowledge gaining article. This post is really the best on this valuable topic. 코인카지노
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Geetanjali on 11-Mar-2019 11:36 am
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Haider ali on 09-Mar-2019 01:17 pm
This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… Kids lifestyle and fashion
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by seo on 09-Mar-2019 01:10 am
Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure i will check out more posts. This site seems to get a good amount of visitors. Men lifestyle and fashion Women lifestyle and fashion Kids lifestyle and fashion Online shopping site Safe online shopping site
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Haider ali on 09-Mar-2019 01:00 am
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. Crisis Prevention Intervention Certification Online Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. Crisis Prevention Intervention Course Online
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by hy on 08-Mar-2019 01:50 am
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. 2019 Top auto Approved Social Bookmarking sites List Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. free instant approval social bookmarking sites
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by SEO cheeta on 05-Mar-2019 11:45 pm
Im no expert, but I believe you just made an excellent point. You certainly fully understand what youre speaking about, and I can truly get behind that. Industrial automation products supplier
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Anna Sally on 05-Mar-2019 10:21 pm
Type your comment...Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. locksmith Castle Rock CO
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Adam Curtis on 03-Mar-2019 02:01 am
If you are looking for more information about flat rate locksmith Las Vegas check that right away. photo booth rental LA
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Samsung S10 on 02-Mar-2019 02:02 pm
Absolutely unique and excellent content that you have shared above. It was very useful for me. Thanks a lot.
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by hyder ali on 28-Feb-2019 01:05 pm
If you are looking for more information about flat rate locksmith Las Vegas check that right away. INVISALIGN
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by rent a car Málaga on 25-Feb-2019 01:36 am
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. rent a car Málaga
  • Reply
  •  0 Like
  •  0 Dislike
  • Report