Code2care : TechZone Apps & Tutorials

How to Gzip a file/directory on Mac OS X using Terminal Command

If you want to gzip a file or a directory, you can do it by running a simple command using Terminal.

Step 1 : Go to Spotlight Search and type Terminal and Open it,

Step 2 : Now browse to the location where the file or folder is present using cd command. (eg. if the file is situated on the desktop : cd /Users/your-mac-user-name/Desktop/

Step 3 : Now simply type gzip followed by the file name with extension.

    Example for single file : gzip filename.txt

    Example for dir : tar cvf - myDirToCompress | gzip > myDirToCompress.gzip

Warning : When you gzip compress file using gzip command on the Mac the original file is deleted!!


Posts related to mac.

1. How to hide files and folders on Mac OS X Walkthrough

2. Mac OS X Mavericks Offline Speech to Text Dictation Feature

3. Change Mouse Scrolling in Mac OS X (Mac Mini, Macbook Pro, Macbook Air)

4. Remove Applications from Startup Mac OS X

5. Your System has Mac OS X Version 10.10. Java from Oracle requires 10.7.3 or later error

6. How to Gzip a file directory on Mac OS X using Terminal Command

7. Turn on off volume change button sounds Mac OS X

8. How to enable Do Not Disturb mode for Notification Center in Mac OS X 10.10 Yosemite

9. Light-weight GIF Screen Capture application for Windows and Mac OS X systems

10. How to Rotate Android Emulator on Mac OSX Windows and Linux

11. Find the location of Spotlight searched file

12. How to take a screenshot on a mac ( print screen on a mac)

13. Java JRE Installation location Mac OS X 10.10 Yosemite

14. Use Hidden Emoji's on Mac OSX Mavericks

15. How to install Ubantu from USB Pendrive Stick

16. ADT quit unexpectedly error on Mac OSX Android Eclipse SDK

17. Mac OS X Stuck During Booting Gray Screen Logo and Spinner

18. Safari appends .html extension to files that are downloaded

19. How to See Hidden Folders and Files on Mac OS X

20. osascript wants to make changes while Android Studio Installation on Mac OS X


Popular tags
x 175
x 29
x 20
x 14
x 14
x 14
x 13
x 11

1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy

Code2care © 2012-17