Does anyone know how I would zip up an entire directory's files one by one with one command? For instance. If the directory has 200 files how would I zip each one separately using ssh.
tar.gz is better for linux so, to compress tar -cvzf filename.tar.gz /home/path Code (markup): and to decompress tar -xvzf filename Code (markup):
zip is user friendly for a wider audience than tar/rar/etc. In any event, if you want to gzip each file individually rather than zip them. find . -type f -exec tar -cvzf '{}.gz' '{}' \; Code (markup):