Linux – How to zip directory excluding symbolic links and the files they point to

fileslinuxsymlinkzip

I have a directory with files, subdirectories and symlinks

How to zip only files and folders from that directory without symlinks or files referred to by the symlink?

Best Answer

use 'zip -y' option it copies the link as is, instead of the complete file.

Related Question