

c, -stdout write on standard output, keep original files unchanged Need more details - type "gzip -h" to get help! -a, -ascii ascii text convert end-of-line using local conventions Now simply type gzip followed by the file name with extension.Įxample for single file : gzip filename.txtĮxample for dir : tar cvf - myDirToCompress | gzip > myDirToCompress.gzip.


if the file is situated on the desktop: cd /Users/your-mac-user-name/Desktop/ Now browse to the location where the file or folder is presently using the cd command.Go to Spotlight Search and type Terminal and Open it,.If you want to gzip a file or a directory, you can do it by running a simple command using Terminal. Compress or uncompress FILEs (by default, compress FILES in-place).
