Compress, Decompress, Zip & Unzip files in Linux || gzip, gunzip, bzip2, bunzip2 & tar Commands

  Рет қаралды 27,448

Nehra Classes

Nehra Classes

Күн бұрын

Files Compression, Decompression, Zipping & Unzipping in RHEL 8:
-----------------------------------------------------
Compress Using gzip and bzip2 utility:
gzip filename
bzip2 filename
Decompress Using gunzip and bunzip2 utility:
gunzip filename.gz
bunzip2 filename.gz2
View Compressed Files zipped by gzip and bzip2 Utility:
zcat filename.gz
bzcat filename.gz2
---------------------------------------------------------
TAR:
Zip several files into one using tar (Tape Archive) utility:
tar cf newname.tar file1 file2 file3
tar cf newname.zip file1 file2 file3
Zip and compress (using gzip) in tar utility:
tar czf newname.tar.gz file1 file2
Zip and compress (using bzip2) in tar utility:
tar cjf newname.tar.bz2 file1 file2 file3
Zip files with preserve permissions by tar utility:
tar cvpf newname.tar file1 file2 file3 file4
Unzip using tar utility:
tar xvf zipfilename.zip
tar xvf zipfilename.tar
tar xvf zipfilename.tar.gz
tar xvf zipfilename.tar.bz2
(where newname & zipfilename are used only for example, you can use different names as you wish).
Thanks for watching, please share and like.
===================================================
LVM Snapshot in RHEL:
• Session-30 | Logical V...
Reset Root Password in RHEL 8:
• Reset Forgotten Root U...
Logical Volume Management in RHEL 8:
• Logical Volume Managem...
Configure VNC in RHEL:
• Configure VNC (Virtual...
Create Swap File in RHEL 8:
• Create Swap File in Re...
====================================================
Social Media Links:
For Registration:👇
bit.ly/NehraCla...
To Follow Our Twitter Handle:👇
nehraclasses
To Follow Vikas Nehra's Twitter Handle:👇
ErNehraVikas
To Visit Our Facebook Page:👇
nehraclasses
To Our Visit Our Webpage:👇
bit.ly/NehraCla...
Join Us on Telegram App: 👇
t.me/NehraClasses
WhatsApp Us: 👇
bit.ly/2Kpqp5z
Contact Us:
Email: nehraclasses@gmail.com

Пікірлер: 37
@kohinoorteamyogeshchhabra8255
@kohinoorteamyogeshchhabra8255 Жыл бұрын
Sir old is gold
@poojasvibe
@poojasvibe 27 күн бұрын
Thankyou sir ❤
@harispalegar6806
@harispalegar6806 3 жыл бұрын
very nice session sir, Thank you for the upload..
@imadmaruf6260
@imadmaruf6260 3 жыл бұрын
Thanks Sir ..very useful video 👍
@NehraClasses
@NehraClasses 3 жыл бұрын
Thanks 👍
@Sambhavcoachingclasses
@Sambhavcoachingclasses 4 жыл бұрын
I am your first subscriber dost
@NehraClasses
@NehraClasses 4 жыл бұрын
Although you are not first but as important as first. Thanks for subscribing 🙏
@tameshchakraborty1994
@tameshchakraborty1994 3 жыл бұрын
amazing stuff again!
@TechSolutionbdIT
@TechSolutionbdIT Жыл бұрын
Thanks sir
@NehraClasses
@NehraClasses Жыл бұрын
All the best
@Yadav.150
@Yadav.150 8 ай бұрын
👍
@Naveen_Bandari
@Naveen_Bandari Жыл бұрын
Hi, Is there any solution to find particular file from sub folder after unzip
@NehraClasses
@NehraClasses Жыл бұрын
you can use find command.
@gamezoope7047
@gamezoope7047 Жыл бұрын
Sir which app use use for it please confirm
@NehraClasses
@NehraClasses Жыл бұрын
its not an app, linux OS
@WorldWorrier3273
@WorldWorrier3273 2 жыл бұрын
Does these cmd reduce file size or not? 🤔
@NehraClasses
@NehraClasses 2 жыл бұрын
yes, ofcourse
@ajaykumar-qc1cd
@ajaykumar-qc1cd 2 жыл бұрын
Can we unzip the file to a different location than zip file's location?
@NehraClasses
@NehraClasses 2 жыл бұрын
Yes
@ajaykumar-qc1cd
@ajaykumar-qc1cd 2 жыл бұрын
@@NehraClasses How? Can you please provide command?
@laxmin9293
@laxmin9293 9 ай бұрын
Can we gzip today logs
@lohee2
@lohee2 3 жыл бұрын
Can we compress live log file which is currently in use.
@NehraClasses
@NehraClasses 3 жыл бұрын
You have an active log file that you want to compress and backup as a new gzip file and zero out the original log file without restarting the rsyslog service. Resolution: # gzip -c /var/log/messages > /var/log/messages.gz ; echo " " > /var/log/messages
@arunkumar-up3uo
@arunkumar-up3uo 3 жыл бұрын
How to zip log files which is older than 5 days on datewise(each day need one zip file)
@NehraClasses
@NehraClasses 3 жыл бұрын
please contact us on telegram.
@rejoicethomas5553
@rejoicethomas5553 3 жыл бұрын
@interestingvideos2233
@interestingvideos2233 2 жыл бұрын
Ek zip file unlock ho jayegi sir
@NehraClasses
@NehraClasses 2 жыл бұрын
Yes
@Spikeopbgmi
@Spikeopbgmi 4 жыл бұрын
Keep it 👍
@avinashpunwatkar2312
@avinashpunwatkar2312 Жыл бұрын
How to unzip files with same extension at one time
@NehraClasses
@NehraClasses Жыл бұрын
You can use for loop
@numanmaavia8575
@numanmaavia8575 3 жыл бұрын
I subscribed your channel many days ago. but i'm unable to watch your this course . from session one i'm unable to watch your content. give access me to watch your course if you can. thanks. i also sent sms to you on facebook.
@NehraClasses
@NehraClasses 3 жыл бұрын
Please ping me on whatsapp at 9410219232
@numanmaavia8575
@numanmaavia8575 3 жыл бұрын
@@NehraClasses plz send me complete number em from pakistan .. you are not showing ehatsi on this number
@NehraClasses
@NehraClasses 3 жыл бұрын
Whatsapp +919410219232 Telegram: t.me/NehraClasses
@numanmaavia8575
@numanmaavia8575 3 жыл бұрын
i hope you willl provide me access. .
@NehraClasses
@NehraClasses 3 жыл бұрын
That is for members only, we are providing linux training tutorials just in ₹159 per month, for which other people charge about ₹ 15k - 20k And our live sessions are free for public, you can join the live class at 9pm ist. Membership charges are for accessing these tutorials at later time at your convenience.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 16 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 88 МЛН
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 11 МЛН
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 11 МЛН
Explaining File Compression Formats
15:26
ExplainingComputers
Рет қаралды 146 М.
Archiving & Compressing (Linux+ Objective 1.2.4)
23:44
Shawn Powers
Рет қаралды 6 М.
Archiving and Compression on Linux - Basic tar Commands
16:11
tutoriaLinux
Рет қаралды 64 М.
Linux Compression: tar, gzip, and zip Commands Explained
11:14
Schedule Future Tasks in Linux Using at Command and Crontab
18:21
Nehra Classes
Рет қаралды 8 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 16 МЛН