![]() ![]() Approach 2: Unzip Using the gunzip Command Tar -xvzf softmaker-freeoffice-2021-1062-amd64.tgzīy removing one of the flags responsible for the extraction of the file, you will get a list of files present inside the. tgz without extracting the file you can use the following command: tar -tzf. Example 3: List the Files Without Unzipping tgz folder, and learned how to unzip files in a location of your choice. With this you have now extracted the files, got a list of files in a. In this example, the following command will be used with the file name and folder location: tar -xvzf softmaker-freeoffice-2021-1062-amd64.tgz -C /home/linux-user/Downloads/ After the file name and its extension -C is used for the directory name with a path for the destination folder. tar function with -xvzf options for list, decompression, and extraction of the files. If you are also looking for a method to save the unzipped files in a special location of your choice, then use the following command: tar -xvzf. ![]() Example 2: Unzip Files in a Specific Directory The information on unzipped files is shown in the output results of the command. In this example, the file name was copied and added to the command: tar -xvzf softmaker-freeoffice-2021-1062-amd64.tgzīy running the above command, you have unzipped the files from the. If you don’t know the exact file name, you can copy it from your ls output and paste it into your command. Use this command to get the list of files in the current directory: lsĪs we can see, the file is in the home directory from here, you can move on to the next step and unzip the file using this command along with the file name. The file name is necessary and will be used in Unzipping the file. tgz file of Softmaker-free office-2021 is used. z – Flag stands for decompression of the files.v – Flag is for verbose, or creating a list of extracted files.x – Flag is used to extract the zipped files.In this command -xvzf flags are used, and these flags pass commands to the. As it covers a wide range of compression and decompression mechanisms such as bzip2, Izip, Izma, gzip, compress, xz, and Izop. The most common method of decompressing a file on Linux is the. However, the commands used here are same for all the distributions. Note: For this particular tutorial, we will use the Ubuntu 22.04. This article will cover two methods of unzipping the. This is a widely used format as it saves a lot of space and bandwidth while installing downloading and installing the packages. Tar creates an archive for your files by combining multiple files. The tar is a default utility that comes with your Linux, and files compressed using the tar utility are tagged with. tgz file, then you don’t have to worry this guide will teach you ways of unzipping the file. If you are new to Linux or recently encountered the problem of unzipping the. This is a variation of zipped files most open-source packages use this format to zip their files. The files will be extracted in the current folder (most of the times in a folder with the name 'file-1.0').If you are using open-source packages, then sooner or later, you will encounter the.In x mode, changes directoriy after opening the archive but before extracting entries from the archive. In c and r mode, this changes the directory before adding the following files. (what is next after the f is the archive file) v = verbose (optional) the files with relative locations will be displayed.x = eXtract, this indicated an extraction c = create to create ).tar xf file.tar - to uncompressed tar file (.tar) tar xC /var/tmp -f file.tar - to uncompress tar file (.tar) to another directory tar.gz) tar xjf 2 - to uncompress a bzip2 tar file (.tbz or. Tar xzf - to uncompress a gzip tar file (.tgz or. The program, tar, will uncompress both types and extract the files from archive. Generally that are compressed using gzip or bzip2. Tar file can come compressed or uncompressed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |