Get a life or get a job as I see there is absolutely no reason to discourage new users simply because you are ignorant or lack the skills required to have an even primitive knowledge of the same system that runs most of world’s webservers and 99% of the world’s fastest supercomputers. deb file and double-click it seriously I don’t think you’ve ever had the privillage of using a unix system or linux system for that matter. □ Was this helpful? Please add a comment to show your appreciation or feedback ↓ Support the nixCraft with a PayPal donation if you use Adblock □Īctually it is supported and additional archieve formats can be added with ease to the linux system many users prefer the terminal, why you may ask because it is power which cannot be met by any GUI tool which is the case on almost every operating system. Join the nixCraft community via RSS Feed, Email Newsletter or follow on Twitter. He wrote more than 7k+ posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source. See tar(1) command man page for more information: Please note that you can also open GUI tools simply typing the following xdg-open command on Linux or open command on macOS/Mac OS X: tar.gz archives on Linux and Unix-like systems using the GUI and CLI tools. rw-r-r- root/root 571 20:13 etc/usb_nfįig.03: Linux GUI Extract Files From an Archive. You can also extract some sub-directory: $ tar -xvf foo.-rw-r-r- root/root 2981 03:24 etc/nf $ tar -xjvf 2 docs/bar.txt Extract a Single Directory from a TarballĮxtract a folder, called docs, from an archive: $ tar -xvf foo.tar docs You can also specify a path to the file: $ tar -xvf foo.tar docs/bar.txt List the contents of a tar.bz2 file: $ tar -jtvf tar.bz2 OptionĬool Tip: There is no more need to remember all these -xvf, -xvzf, -xvif keys! This awesome bash function permits to extract any archive type with the single extract command! Read more → Extract a Single File from a TarballĮxtract a file bar.txt, from an archive: $ tar -xvf foo.tar bar.txt List the contents of a tar.gz file: $ tar -ztvf List the contents of a tar file: $ tar -tvf foo.tar Sometimes it is needed just to check the contents of a tarball without unpacking it.įor example, it goes without saying, that it is inadvisable to untar the whole large archive if you need for example to extract only a dingle file or a directory from it.Īnd of course this is possible with the Linux tar command, but firstly you need to check what is there inside the tarball without unpacking it. List the Contents of a tar, tar.gz, tar.bz2 Files File extensionĬool Tip: No more wasted time! Download from the web and untar in one step from the Linux command line! Read more → Untar tar, tar.gz, tar.bx2 FilesĮxtract and uncompress a tar.gz file: $ tar -xvzf Įxtract and uncompress a tar.bz2 file: $ tar -xvjf 2 Optionĭecompress the contents of the compressed archive created by gzip program ( tar.gz)ĭecompress the contents of the compressed archive created by bzip2 program ( tar.bz2) You will learn how to list the contents of a tar archive without unpacking it and how to extract only a single file or a single directory. The following article will help you to extract (unpack) and uncompress (untar) – tar, tar.gz and tar.bz2 files from the Linux command line. Most of the Linux files that can be downloaded from the Internet are compressed with a tar, tar.gz and tar.bz2 compression formats and it is important to know how to extract such files.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |