Unzip tar file linux5/6/2023 ![]() Just run the command shown in the attached screenshot on the Linux terminal. ![]() The option “x” is used for extraction, “-v” is used to display in ascending order, and “-f” is used to perform the extraction forcefully. For that, you need to make use of the “tar” command with the “-xvf” option and the name of a “tar” file while we are currently located at the “Downloads” folder. Just run the command shown in the attached screenshot on the Linux terminal.īefore looking at extracting the single from the “tar” bundle, you need to know how to extract the whole “tar” file at once. One of these “tar” files is just downloaded from the web. You can see that we currently have 2 “tar” files. Now, list all the files and folders of the “Downloads” directory using the “ls” command. It will directly take you within the “Downloads” directory as per the output in the image below. To extract the “tar” file, we must move into the “Downloads” folder first using the “cd” command of Ubuntu 20.04. And the downloaded file is located in the Downloads directory. Within the terminal shell, we have been located at the home directory of the Ubuntu 20.04 system. You can find your tar file in the Downloads directory. The processing bar as “100%” in the below image will show you that the file has been successfully downloaded. It will probably take 5 minutes to complete the download process. The system will start downloading your cmake tar file as per the below processing output. After the information gathering, it will start downloading. The Ubuntu 20.04 system has started to get information regarding the “cmake” tar file from its website. Use the sudo rights to download this “tar” file, as shown in the attached photo. This path will be used on the shell within the “wget” command to download it. We use the web path for the “tar” file to be downloaded. We want to download a cmake application “tar” file on our Downloads folder. ![]() Without any tar zip file, we will not be able to perform our article. Now, it’s time to download some tar zip files on our Ubuntu 20.04 system. Your system and its packages will be upgraded. The process will be started, and system utilities will be upgraded. Tap “Y” to continue the process in no more than seconds. It will show you the memory space required to complete this upgrade process. This process will start by asking you to make sure that you want to upgrade your system. Try out the “apt” command followed by the “upgrade” keyword along with the utilization of “sudo” rights. Just run the command shown in the attached screenshot on the Linux terminal.Īfter the system has been updated, you may upgrade your system in some cases. The command and its processing are shown below. The system will get updated in a few seconds. Write your password and press the Enter key to continue. The password for the sudo account will be asked after the execution. For this, we will be using the “update” command with the utilization of the “apt” package on the shell instruction area. Let’s get started by updating our system first. Have you ever tried to extract one single file from the “tar” file? If not, and you are looking for the extraction of a single file from the “tar” in Linux, then this article is meant for you. You have performed the unzipping of a whole “zip” file on GUI. The compressed file is converted into a “tar.gz” extension within Linux or Unix-like systems. Within Windows, the compressed file is said to be the “zip” file. You may have heard about the files or folders compression.
0 Comments
Leave a Reply. |