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 edward on 21-May-2019 05:31 am
Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. jacket manufacturer in bangladesh
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 21-May-2019 03:15 am
its very nice site dear people you may visit this site mens shirt manufacturers
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by wedding photography on 20-May-2019 11:10 pm
Type your comment...Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by wedding photography on 20-May-2019 11:09 pm
Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks wedding photography
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Sage 50 contact number on 20-May-2019 12:21 pm
Contact Sage customer service toll-free number and get instant answers to all the questions regarding Sage. Sage technical support can fix issues in real time. Call 1-844-313-4857 or complete all fields below to have a Sage expert contact you. Sage 50 Support number Sage 50 Support number Sage 50 Contact Number Sage 50 Support number Sage 50 Contact Number Sage 50 Contact Number Sage 50 support Number
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 19-May-2019 10:40 pm
Great post, thanks for the awesome blog post https://illustrationstyles.net/
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 19-May-2019 08:48 pm
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this as is one.. best airport transfers london
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 19-May-2019 03:49 am
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this as is one.. Airbnb Cleaning
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by cyberhero on 18-May-2019 09:09 pm
Great post, thanks for the awesome blog post Sage Technical Support Phone Number, Sage Tech Support
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 18-May-2019 08:37 am
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this as is one.. transcription website
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 18-May-2019 04:59 am
Great post, thanks for the awesome blog post. I’m having troubles subscribing to your blogs feed. pollution control equipment
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 18-May-2019 03:26 am
Great post, thanks for the awesome blog post. I’m having troubles subscribing to your blogs feed. learn more
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 17-May-2019 02:48 am
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this as is one.. techofist.com
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 16-May-2019 03:57 am
it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information salon nyc
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 16-May-2019 12:01 am
Great post, thanks for the awesome blog post. I’m having troubles subscribing to your blogs feed. schaumburg il hair salons
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 15-May-2019 09:22 pm
i felt very happy while reading this site. This was really very informative site for me. I really liked it. lexington hair salon
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 15-May-2019 04:17 am
it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information hair salon ottawa downtown
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 14-May-2019 09:01 pm
I gotta favorite this website it seems very helpful salon west linn
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 14-May-2019 03:51 am
I ’ve read some good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website spa vancouver wa
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 13-May-2019 09:31 pm
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. cosmetology schools in california los angeles
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 13-May-2019 09:10 pm
i felt very happy while reading this site. This was really very informative site for me. I really liked it. los angeles beauty college
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 13-May-2019 03:47 am
I gotta favorite this website it seems very helpful cosmetology school columbus
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 12-May-2019 07:27 pm
Hi there, I discovered your blog per Google bit searching for such kinda educational advise moreover your inform beholds very remarkable for me cosmetology school chapel hill
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 12-May-2019 04:35 am
Hi there, I discovered your blog per Google bit searching for such kinda educational advise moreover your inform beholds very remarkable for me cosmetology school indianapolis
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by edward on 12-May-2019 01:27 am
Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up., beauty school cincinnati
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by hfd on 05-May-2019 02:03 am
thanks for this usefull article, waiting for this article like this again. Distributor Kutus Kutus
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by hyderr on 04-May-2019 03:20 am
Thanks for the blog post buddy! Keep them coming... Tamba Waras
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by poppers on 02-May-2019 07:58 pm
Great information on the topic, im glad i came here. Just in case il drop some links if you are interested in purchasing poppers they are realy cheap and good quality at [url=https://www.popperpigs.com]popperpigs[/url] , you can [url=https://www.popperpigs.com]buy poppers online[/url] there. You can purchase the world famous [url=https://www.popperpigs.com/13-rush-poppers]Rush Poppers Online[/url] at the same adress. They are realy strong and cheap at this site. I think i need to mention [url=https://www.popperpigs.com/14-jungle-juice-poppers]Jungle Juice poppers[/url] as well , they are soo cheap in 25ml bottles. [url=https://www.popperpigs.com/24-blue-boy-poppers]Blue boy poppers[/url] is my absolute favarite thou.
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Poppers on 02-May-2019 07:56 pm
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by justcityplace on 02-May-2019 12:16 pm
Type your comment...Thanks for the post. It was very interesting. top free business listing sites in india free classified ads websites in india free business listing site list 2019 free classified sites in india for ad posting free business directory listing india free classified posting sites in india free business listing site in india free classifieds posting sites india free classified ads india list free classified in india free indian classified ads list of free business listing sites free classified ads india best free business listing sites free business profile listing sites free indian classified list free indian classified sites india free classified sites for india free classified sites in india 2019 india free classified ads sites free business listing sites in india free classified sites india free business profile listing sites in india free business listing sites free classifieds online india free business listing post free classified in india free classified websites india free listing my business free local business listing sites in india free business listing 2019 list of free business listing sites in india free business listing websites free business listing sites list in india top free business listing sites free business listing in india free indian classified websites list free business listing yellow pages free indian classified free business listing sites for india free classified ads sites india post free classified ads india free classified listing sites india free business listing online free business listing websites in india free india classified website best free classified in india
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Saibal on 29-Apr-2019 11:12 am
Type your comment...Thanks for sharing this... as1 as10 as100 as101 as102 as103 as104 as105 as106 as107 as108 as109 as11 as110 as111 as112 as113 as114 as115 as116 as117 as118 as119 as12 as120 as121 as122 as123 as124 as125 as126 as127 as128 as129 as13 as130 as131 as132 as133 as134 as135 as136 as137 as138 as139 as14 as140 as141 as142 as143 as144 as145 as146 as147 as148 as149 as15 as150 as151 as152 as153 as154 as155 as156 as157 as158 as159 as16 as160 as161 as162 as163 as164 as165 as166 as167 as168 as169 as17 as170 as171 as172 as173 as174 as175 as176 as177 as178 as179 as18 as180 as181 as182 as183 as184 as185 as186 as187 as188 as189 as19 as190 as191 as192 as193 as194 as195 as196 as197 as198 as199 as2 as20 as200 as201 as202 as203 as204 as205 as206 as207 as208 as209 as21 as210 as211 as212 as213 as214 as215 as216 as217 as218 as219 as22 as220 as221 as222 as223 as224 as225 as226 as227 as228 as229 as23 as230 as231 as232 as233 as234 as235 as236 as237 as238 as239 as24 as240 as241 as242 as243 as244 as245 as246 as247 as248 as249 as25 as250 as251 as252 as253 as254 as255 as256 as257 as258 as259 as26 as260 as261 as262 as263 as264 as265 as266 as267 as268 as269 as27 as270 as271 as272 as273 as274 as275 as276 as277 as278 as279 as28 as280 as281 as282 as283 as284 as285 as286 as287 as288 as289 as29 as290 as291 as292 as293 as294 as295 as296 as297 as298 as299 as3 as30 as300 as301 as302 as303 as304 as305 as306 as307 as308 as309 as31 as310 as311 as312 as313 as314 as315 as316 as317 as318 as319 as32 as320 as321 as322 as323 as324 as325 as326 as327 as328 as329 as33 as330 as34 as35 as36 as37 as38 as39 as4 as40 as41 as42 as43 as44 as45 as46 as47 as48 as49 as5 as50 as51 as52 as53 as54 as55 as56 as57 as58 as59 as6 as60 as61 as62 as63 as64 as65 as66 as67 as68 as69 as7 as70 as71 as72 as73 as74 as75 as76 as77 as78 as79 as8 as80 as81 as82 as83 as84 as85 as86 as87 as88 as89 as9 as90 as91 as92 as93 as94 as95 as96 as97 as98 as99
  • 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