![]() ![]() unar in Debian and derivatives, Fedora and derivatives, community/unarchiver in Arch Linux. Unar is available for macOS (along with its GUI application, The Unarchiver), Windows, and Linux it is packaged in many distributions, e.g. ![]() By default, the unzip command extracts the zip file into your current working directory. You can force the creation of a directory in all cases with the -d option: unar -d foo.zipĪlternatively, a function can do this with unzip: unzd() " if you want to extract the archive to a directory alongside it instead. To uncompress the tar.gz file and put resulted files in a different directory, say /tmp/archive, you need to add a -C option at the end of the command: tar xvzf -C /tmp/archive The -C option is used to specify a different directory other than the current working directory. The unzip command is used to extract zip files using the terminal. f: File, name of the tar file we want tar to work with. j: Bzip2, use bzip2 to decompress the tar file. ![]() v: Verbose, list the files as they are being extracted. tar.bz2 file were: -x: Extract, retrieve the files from of the tar file. First create an mount point directory, where you will going to mount the image as shown: sudo mkdir /mnt/iso Once directory has been created, you can easily mount file and verify its content by running following command. I use unar for this by default, if an archive contains more than one top-level file or directory, it creates a directory to store the extracted contents, named after the archive in the way you describe: unar foo.zip To be clear, the command line options we used with tar for the. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |