It's worth noting that everything in this article also works on the Windows Subsystem for Linux, which allows you to install the Bash shell inside of Windows 10 or Windows 11, although there are other ways to open tar.gz files on Windows as well. You just need to use the appropriate tar command line options. Open the terminal and use the cd command to change directories to the directory where the mongodb-linux-x8664-2.6.3.tgz file is located and the run the following command: tar xzf mongodb-linux-x8664-2.6.3.tgz The above command will extract the contents of the mongodb-linux-x8664-2.6.3.tgz archive while preserving the archive's hierarchical. ![]() ![]() bz2 extension suffix indicates that the archive has been compressed, using either the gzipĬompression algorithm. The tar command will work happily with both types of file, so it doesn't matter which compression method was used-and it should be available everywhere you have a Bash shell. Someone somewhere is probably still using tar with tape. Forty years later we are still using the tar command to extract tar files on to our hard drives. Tar files date all the way back to 1979 when the tar command was created to allow system administrators to archive files onto tape. Portion of the file extension stands for tape archive, and is the reason that both of these file types are called tar files. The tar command will work happily with both types of file, so it doesn't matter which compression method was used-and it should be available everywhere you have a Bash shell. ![]() If you want to untar in a different directory then use option -C (specified directory). For example, the below command will untar the file publichtml-14-09-12.tar in the present working directory. Extension is uncompressed, but those will be very rare. bz2 extension suffix indicates that the archive has been compressed, using either the gzip or bzip2 compression algorithm. To untar or extract a tar file, just issue the following command using option x (extract).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |