![]() ![]() -v: To display the progress while creating the file.-c: Stand for create file (output tar.gz file).-z: Compress the desired file/directory using gzip.If your system uses GNU tar, you can easily use gzip (the GNU file compression program) in conjunction with tar to create compressed files with the command line following the next command syntax: tar -zcvf The most common use for tar is to simply combine a few files into a single file, for easy storage and distribution. TAR stands for tape archiving, the storing of entire file systems onto magnetic tape, which is one use for the command. ![]() Many modern Unix systems, such as Linux, use GNU tar, a version of tar produced by the Free Software Foundation. Lastly, now that we're running commands on our machine again, we can run scp to reconnect to the remote machine and pull the files back. tar -C output/ -xf -wildcards *.dat *.def Then, we'll extract the matching files to this folder we created (if you don't want them to be in a different folder remove the -C output/ option). ![]() You can skip this if you already know the folder they'll be in. # Keeps track of what state we're in (filename or content)ĭone 'mkdir output/ tar -C output/ -xf -wildcards *.dat *.def'įirst, we'll make a place to keep our outputted files.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |