![]() Excluding Specific files from being compressed ![]() In order to display a list of the content of a tar archive file, you would just need to run the command below with the option t : Tar -czvf home/dir1 home/dir1 home/dir3 home/dir4/singlefile.mp3 Listing the content of a tar archive file To compress the directories home/dir1, home/dir1, home/dir3 and home/dir4/singlefile.mp3, just issue the command below : The tar command can be used to compress multiple single files or multiple directories or a mix of both since in Linux, a directory is also a file.You would just need to provide the list of directories or files in cascade as shown in the example below : Compressing multiple directories or files
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |