Compress, Decompress, Zip & Unzip files in Linux || gzip, gunzip, bzip2, bunzip2 & tar Commands
HTML-код
- Опубликовано: 21 авг 2024
- 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
Sir old is gold
very nice session sir, Thank you for the upload..
Thanks Sir ..very useful video 👍
Thanks 👍
amazing stuff again!
I am your first subscriber dost
Although you are not first but as important as first. Thanks for subscribing 🙏
How to zip log files which is older than 5 days on datewise(each day need one zip file)
please contact us on telegram.
👍
Thanks sir
All the best
Hi,
Is there any solution to find particular file from sub folder after unzip
you can use find command.
Can we gzip today logs
Can we compress live log file which is currently in use.
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
How to unzip files with same extension at one time
You can use for loop
Can we unzip the file to a different location than zip file's location?
Yes
@@NehraClasses How? Can you please provide command?
Keep it 👍
❤
Does these cmd reduce file size or not? 🤔
yes, ofcourse
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.
Please ping me on whatsapp at 9410219232
@@NehraClasses plz send me complete number em from pakistan .. you are not showing ehatsi on this number
Whatsapp +919410219232
Telegram:
t.me/NehraClasses
Sir which app use use for it please confirm
its not an app, linux OS
Ek zip file unlock ho jayegi sir
Yes
i hope you willl provide me access. .
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.