How to create,extract,compress tar files in linux ubuntu [ Explained ]
HTML-код
- Опубликовано: 21 авг 2024
- What are tar files in linux ?
The Linux “tar” stands for tape archive, which is used by large number of Linux/Unix system administrators to deal with tape drives backup. The tar command used to rip a collection of files and directories into highly compressed archive file commonly called tarball or tar, gzip and bzip in Linux. The tar is most widely used command to create compressed archive files and that can be moved easily from one disk to another disk or machine to machine.
Tar
---
Tar is used to create the archive of any folder or partition, so that huge data under various directories & files can be stored as single file. Tar is generally used to store the data on tape drives in production environment.
Creating a tarball :-
#tar -cvf etc.tar /etc {-c is used to create tar, -v is verbose and -f is file name. Here we are creating tar of /etc directory with name etc.tar}
#tar -tvf etc.tar {View data under any tar file}
#du -sh etc.tar {This command will show the size}
#tar -xvf etc.tar {Extracting etc.tar, you need to change your pwd, where u want to extract the tar}
===========================================================================
Zip
----
#gzip -v etc.tar {Used to compress the archive file}
#du -sh etc.tar.gz {Command will show the size after compression}
#gunzip -v etc.tar.gz {Uncompress the file}
Bzip2
-----
#bzip2 -v etc.tar.gz {Advanced compression utility}
#du -sh etc.tar.gz.bz2
#bunzip2 -v etc.tar.gz.bz2
--------------------------------------------------------------------------------------------------
Website Link :-
letslearntech.com
Ubuntu tutorials for beignners playlist :-
• Ubuntu tutorials for B...
--------------------------------------------------------------------------------------------------
Basic Terminal commands in linux : -
• Basic Terminal Command...
------------------------------------------------------------------------------------------------------
how to reset / recover password in ubuntu 16.04 (100 % working) :-
• how to reset / recover...
-----------------------------------------------------------------------------------------------------
How to complie and run c,c++ programs in linux ubuntu : -
• [ Running C,C++ Progra...
---------------------------------------------------------------------------------------------------
How to create bootable usb/pen drive in linux ubuntu :-
• How to create bootable...
--------------------------------------------------------------------------------------------------
how to create samba server in ubuntu linux : -
• How to configure samba...
----------------------------------------------------------------------------------------------------
How to install ubuntu linux in vmware : -
• How to install Ubuntu ...
-----------------------------------------------------------------------------------------------------
How to format usb drive in linux ubuntu :-
• How to Format USB driv...
-----------------------------------------------------------------------------------------------------------
Like us on Facebook :-
www.facebook.c...
---------------------------------------------------------------------------------------------------
tags : -
how to untar tar.gz file in linux extract tar file windows how to zip a directory in linux create tar.gz file linux how to tar a file in linux gzip command in linux tar compress folder tar.gz linux create tar file gzip linux gzip command in linux how to zip a directory in linux create gz file linux how to gzip a file in windows create tar.gz file linux gzip directory linux gzip multiple files how to tar a file in linux bzip2 command in linux with examples bzip2 compress directory bzip2 linux install bzip2 decompress bunzip2 command in linux bzip2 multiple files bzip2 keep original file bzip2 multiple files into onetar file linux winzip tar how to open tar.gz file in linux how to open tar.gz file in windows 10 how to extract tar gz file in windows command line 7zip tar extract tar file windows
spot on video, if your learnin linux this is plain and simple no messin about!! thanks for uploading bud
Thank you !! :)
i was able to create the file but for some reason it said "cannot stat no such file or directory"
awesome teacher, i have watched so many videos trying to understand the tar command but u nailed it. SAVED my life
thank you
struggled in the class with fedora linux today , this 9 min video helped me out
much easier then to read Lpic1 book
Very very very good explanation
one of best video which i seen. thanks bhau.
I got so lost in class with this, thank you!!
please how we can use the “Extract” command to find the positive answer of the solutions for
an equation
flawless class .....amazing undoubtedly
Thank you! It was perfect. A lecture where CSUN fails to teach
Thanks mate !! :-)
bash:cd/home/lorena/Desktop/:No such file or directory ,what should i do ?
how perfect you teach;; thanks
Thanks
thank you so much, you explained it really well
Perfect! 💯
Well done sir.....its helpful:-)
Thank you, your video is helpful for me 🙏
Thank you friend
your explanation was awesome sir, make scp ,rsync sir
thanks bro my assignment is due in an hour and only takes tar files
Why can't you make thorough full videos on every concept of rhel6
Especially on Ubuntu
Unlike other your videos are worthwhile
Tqu so much anna🙏
its very helpful...thanks sir...
Thank you sir....!
can i create the tar file from my home user directory ?
i mean is it necessary to go the location where the file is created..in your case it is the _Desktop_ .
If you don't want to go there you have to use the full path of the file/directory your wish to compress
thankz so much
Hi, is there a way to exclude some files while archiving a folder?
Thank you sooo much 🙏🙏🙏
Thanks bhai........helped a lot...
Hello boss I would like to know if are willing to teach me online I'm keenly interested in hear back from you
perfect
thanks bro
Thanks
great
♥️♥️♥️♥️
great video Very thorough. (Friendly advice: If you have a runny nose, you should mute your mike before you snort.)
Thanks for the feedback. I don't really remember as video is too old. May be some background noise. :-)
@@AndroidandTechSolutions Please don't give it another thought. It was a great teaching video.
@@mngator2 thanks :)
Great
nice bro
Jai techkey hackers🤙🏼💙😂
Dei
3:41
fackkk