Is it possible and how can I zip a symlink from a linux shell?
You can store symlinks as symlinks (as opposed to a copy of the file/directory they point to) using the
--symlinks parameter of the standard
foo is a directory containing symlinks:
zip --symlinks -r foo.zip foo/
rar a -ol foo.rar foo/
tar stores them as is by default.
tar czpvf foo.tgz foo/
Note that the symlink occupies almost no disk space by itself (just an inode). It's just a kind of pointer in the filesystem, as you probably know.