LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices

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.
Rate this Entry

KDE's "ark" as a command-line universal (un)archiver

Posted 07-28-2014 at 03:44 PM by the dsc
Tags ark, zip

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".
Posted in Uncategorized
Views 186 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration