changehaa.blogg.se

Zip files mac terminal
Zip files mac terminal













synchronous synchronous output (safer if system crashes, but slower) S, -suffix=SUF use suffix SUF on compressed files r, -recursive operate recursively on directories N, -name save or restore the original name and timestamp n, -no-name do not save or restore the original name and timestamp k, -keep keep (don't delete) input files f, -force force overwrite of output file and compress links

zip files mac terminal

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.
  • zip files mac terminal

  • 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.

    zip files mac terminal

    Compress or uncompress FILEs (by default, compress FILES in-place).















    Zip files mac terminal