- #OPEN RAR FILE USING HJSPLIT ARCHIVE#
- #OPEN RAR FILE USING HJSPLIT FULL#
- #OPEN RAR FILE USING HJSPLIT ZIP#
#OPEN RAR FILE USING HJSPLIT ZIP#
Like Zip files, these files need to be extracted. RAR files can be split into multi-volume archives when dealing with large file sets. RAR files are compressed files created by the WinRAR archiver. In order for the resulting multi-zip-archive to be extracted, a tool that supports aa segmentetd archives is needed, like file-roller in Linux and 7-Zip in Windows.- Rated 5 stars by CNET What is a RAR file extension? Rm applied to the my_archive.zip file will only leave us with the desired multi-segment archive.
#OPEN RAR FILE USING HJSPLIT ARCHIVE#
Would give something like split.zipaa, split.zipab, split.zipac., and without it the output will be named x followed by the aa fragment-suffixes: xaa, xab, xac., etc there is a split option -d to use numeric suffixes instead of alphabetic, but that gives an error (because apparently the extractor expects a standard ZIP multi-segment archive when it sees a numeric suffix - as suggested in a private chat by Stephen Kitt Split.zip is a specification that is not needed it is the custom name of the final multi-file archive, it b 20m stands for the size of the separate archive parts created by split as indicated here %F can be used in a Thunar custom action in order to compress multiple files as zip alternatively, %f is to be used for selection of just one file My_archive.zip is the custom name of the not-yet-split archive the split command will be applied to it and then the former will be removed with rm
#OPEN RAR FILE USING HJSPLIT FULL#
j stands for an option for zip to "junk the path": unlike a terminal command containing the full path of the to-be-archived file(s), a context menu command that uses %F for selected files would add to the archive a folder-in-folder structure unless -j is used (source: create zip - ignore directory structure) (That is to be applied to one or more selected files, but not to directories to apply to directories, the zip -r option is needed: zip -r -j my_archive.zip %F & split -b 20m my_archive.zip split.zip & rm my_archive.zip
So, I have tested with Thunar and a custom action with these three commands connected by &: zip -j my_archive.zip %F & split -b 20m my_archive.zip split.zip & rm my_archive.zip
The idea is to add to the context menu of the file manager an entry that, with just one click, would (I have tested the GUI and I found it extremely slow, while for the context-menu purpose the GUI is not needed.) Sending a such multi-segment archive to somebody that doesn't know this is pointless.Īs already suggested in the main answer, another way is to zip the file and then split the one-file archive with split (or the hjsplit GUI). Alternative formats can be used though, namely rar and 7z.Īlso, only some tools can extract from multi-segment-zip-files, such as the ones discussed here: on that, see the end-note to this answer.Īs the question specifically addresses the issue of handling archiving from the context menu of the file manager, I looked into some commands that could achieve the given purpose even for zip files: such commands, if successful, could then be easily added to the file manager as context menu entries.Ĭonsidering the zip tool, multi-segment archives can be created directly with a command like zip my_archive.zip -r -s 20971519 (more details under this question), but these are not at all useful because they are not ready to be extracted (need a supplementary zip -s 0 command to create a large 1-file extractable archive - as described here) and this limitation cannot be avoided. This is a complementary answer to the main one.Īs already stated in the main answer, only some archiving tools support splitting, and the main GUI doesn't seem able to create multi-segment archives in zip format. Considering the specific case of multi-segment ZIP files,