Those who want to extract the Tar file content in the same directory with some different folder name can use the given command. Extract Tar in the same directory but with renamed folder: tbz, bzip2 complains that it cannot guess the name of the original file, and uses the original name with. If the file does not end in one of the recognised endings. Extracting files from a tar file can be done using the tar command with the options -x, -v, and either -z (.gz) or -j (bz2) depending on the compression type. In the given screenshot you can see we didn’t have any folder named “ testfolder” under “/ opt” so the extraction command gave the error for the same. I think it is preferred to leave the - off. Which can also be replaced with the –directory option.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |