Is there a way (preferrable via GUI, but may be via command line) to extract a zip file and delete the zip after extracted, all in a single command?
(I remember I saw someone doing something like this in the command line one day)
Is there a way (preferrable via GUI, but may be via command line) to extract a zip file and delete the zip after extracted, all in a single command?
(I remember I saw someone doing something like this in the command line one day)
For a GUI I'd say the easiest way is a nautilus script. The main line of which would be:
It works in bash/dash just as easy. In nautilus the whole thing would look like this:
You could simply write a bash script. It will look something like this:
where $1 is the argument with a value of your zip file's filename. Then alias unzip command in ~/.bashrc file to run this script. And after typing in terminal:
you will get:
It's pretty easy through a shell command:
unzip <filename>.zip && rm <filename>.zip
Perhaps, if you're using nautilus, you could create a relevant
nautilus-action
in order to automate the command through a GUI selection.