![]() ![]() ![]() To install the command line utility do: sudo apt-get install p7zip-full. When it opens, run the command (s) below: sudo apt-get install p7zip. Hopefully this will help someone.Ī little warning - explodeFile also deletes the ziped file, you can of course change that by commenting out the last line. Make sure that 7zip is installed, if not, just press Ctrl + Alt + T on your keyboard to open Terminal. bashrc I believe) you can drop the whole source statement. If you're storing the functions in a file loaded on non-interactive shells (e.g. Note the which is needed if you're storing this in a file that is not read for a non-interactive shell as I happened to be. Note that you do need to provide the '.zip' extension. To extract the files from a ZIP file, use the unzip command, and provide the name of the ZIP file. My scenario is slightly different as I basically just wanted to fully explode a jar, along with all jars contained within it, so I wrote the following bash functions: function explode "' \ How to Unzip a ZIP File With the unzip Command. In the case of my foo.tar file, I could extract /home/foo/bar by saying: tar -xvf foo.tar home/foo/bar Note: no leading slash So no, the way you posted isnt (necessarily) the correct way to do it. Of course I can extract the archive into my current directory and then move it using mv but Id like to do this in one shot and not shuffle directories and files around. I have a war archive named Binaries.war which is within an ear archive named Portal.ear. I realise this is very old, but it was among the first hits on Google when I was looking for a solution to something similar, so I'll post what I did here. If you need to extract a particular folder, have a look at whats in the tar file: tar -tvf foo.tar And note the exact filename. I am creating a Python script within which I am executing UNIX system commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |