Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
KDE's "ark" as a command-line universal (un)archiver
Posted 07-28-2014 at 02:44 PM by the dsc
For some reason I was having issues with some zip files. "Unzip" wouldn't unzip them, but ark (and perhaps other GUI archivers) would.
Fortunately ark can be used as a command line tool as well, which can be better than needlessly opening the full GUI just to make something so trivial. You still can invoke just the dialog, anyway.
But in order to extract something, for example, one can just use:
ark -b file.zip -o ./extantfolder
Perhaps there's some "option" to make it auto-generate a containing folder, but I couldn't find it yet. By default it extracts on the current folder. File name collisions will be prompted with KDE's graphical file name collision dialog, but unfortunately it seems to not work right, that is, "rename all" won't work, you'd have to click "rename" and confirm for each. So it's better to create a folder and extract there while it doesn't get bug-fixed, if it will ever be.
That's how far my knowledge/usage was up to now, but I guess it will work with other archive types and also in the opposite direction. "Man ark".
Fortunately ark can be used as a command line tool as well, which can be better than needlessly opening the full GUI just to make something so trivial. You still can invoke just the dialog, anyway.
But in order to extract something, for example, one can just use:
ark -b file.zip -o ./extantfolder
Perhaps there's some "option" to make it auto-generate a containing folder, but I couldn't find it yet. By default it extracts on the current folder. File name collisions will be prompted with KDE's graphical file name collision dialog, but unfortunately it seems to not work right, that is, "rename all" won't work, you'd have to click "rename" and confirm for each. So it's better to create a folder and extract there while it doesn't get bug-fixed, if it will ever be.
That's how far my knowledge/usage was up to now, but I guess it will work with other archive types and also in the opposite direction. "Man ark".
Total Comments 0