![]() Tar -xf archive.tar # Extract all files from archive.tar. Tar -tvf archive.tar # List all files in archive.tar verbosely. Tar -cf archive.tar foo bar # Create archive.tar from files foo and bar. Restore individual files from the archive. GNU 'tar' saves many files together into a single tape or disk archive, and can When you run su with the –help option, you’ll see the help text below: Usage: tar. Remember to always use the -f option to tell the command you’re working with a file archive. That should list the content of the archive. This options list all files in archive.tar verbosely. If you want to list the content of an archived file compressed with tar.xz, you use the -t or –list command options. ![]() The command above will extract the archive file into /remote/directory directory or folder. If you want to extract a tar file into another directory, simply run it with the -C option. The command above will extract the archive file into the current working directory. To extract a tar archive file compressed with xz compression algorithm, you run the command below: tar.xz file of the private content.īelow are some examples of how to run and use the tar on Ubuntu Linux. Use the -t or -list to list the content of an archiveīefore creating or extracting tar.xz files, you must first install xz-utils.Īfter installing the utility, you can begin creating. Use the -v or –verbose to verbosely list files being processed Use the -f or –file to specify the use of archive file to extract Use the -x or –extract or –get to extract files from an archive with the name of the archived file you wan to extract.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |