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

Комментарии • 36

  • @kohinoorteamyogeshchhabra8255
    @kohinoorteamyogeshchhabra8255 Год назад +3

    Sir old is gold

  • @harispalegar6806
    @harispalegar6806 3 года назад +1

    very nice session sir, Thank you for the upload..

  • @imadmaruf6260
    @imadmaruf6260 3 года назад +1

    Thanks Sir ..very useful video 👍

  • @tameshchakraborty1994
    @tameshchakraborty1994 3 года назад +1

    amazing stuff again!

  • @Sambhavcoachingclasses
    @Sambhavcoachingclasses 4 года назад +1

    I am your first subscriber dost

    • @NehraClasses
      @NehraClasses  4 года назад

      Although you are not first but as important as first. Thanks for subscribing 🙏

  • @arunkumar-up3uo
    @arunkumar-up3uo 2 года назад +1

    How to zip log files which is older than 5 days on datewise(each day need one zip file)

    • @NehraClasses
      @NehraClasses  2 года назад +1

      please contact us on telegram.

  • @Yadav.150
    @Yadav.150 6 месяцев назад +2

    👍

  • @TechSolutionbdIT
    @TechSolutionbdIT Год назад +1

    Thanks sir

  • @Naveen_Bandari
    @Naveen_Bandari Год назад +1

    Hi,
    Is there any solution to find particular file from sub folder after unzip

  • @laxmin9293
    @laxmin9293 7 месяцев назад

    Can we gzip today logs

  • @lohee2
    @lohee2 3 года назад +1

    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

  • @avinashpunwatkar2312
    @avinashpunwatkar2312 Год назад +1

    How to unzip files with same extension at one time

  • @ajaykumar-qc1cd
    @ajaykumar-qc1cd 2 года назад +1

    Can we unzip the file to a different location than zip file's location?

  • @Spikeopbgmi
    @Spikeopbgmi 4 года назад +1

    Keep it 👍

  • @rejoicethomas5553
    @rejoicethomas5553 2 года назад +1

  • @WorldWorrier3273
    @WorldWorrier3273 2 года назад +1

    Does these cmd reduce file size or not? 🤔

  • @numanmaavia8575
    @numanmaavia8575 3 года назад +1

    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 года назад +1

      Please ping me on whatsapp at 9410219232

    • @numanmaavia8575
      @numanmaavia8575 3 года назад +1

      @@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

  • @gamezoope7047
    @gamezoope7047 Год назад

    Sir which app use use for it please confirm

  • @interestingvideos2233
    @interestingvideos2233 2 года назад +1

    Ek zip file unlock ho jayegi sir

  • @numanmaavia8575
    @numanmaavia8575 3 года назад +1

    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.