-->

encrypt binary with 7z without filenames?

2019-06-13 15:35发布

问题:

I am wondering, i like 7z compression but how do i compress data only? i dont want a file in the archive with file info. Just raw data, how can i do this? it would also be nice if i can remove headers too but that isnt necessary.

回答1:

From man 7z:

-si Read data from StdIn (eg: tar cf - directory | 7z a -si directory.tar.7z)