![]() Home/vivek/projects/myhellowebapp/hellowebapp.working/ ![]() One can list the contents of a tar or tar.gz file using the tar command: Next verify newly created tar.gz file in Linux using the ls command:Įxample outputs: -rw-r-r- 1 vivek vivek 59262 Nov 3 11:08 To create in the current working directory, run: # Create a tar.gz file from all pdf (".pdf") files $ tar -czvf /path/to/dir1 dir2 file1 file2 ![]() The syntax for the tar command is as follows: Sample outputs from the ls command: total 8ĭrwxr-xr-x 2 vivek vivek 4096 Oct 30 22:30 helloworldĭrwxr-xr-x 4 vivek vivek 4096 Oct 30 13:16 myhellowebapp Say you want to create tar.gz file named for directory called $HOME/projects/: Linux create tar.gz file with tar command Let us see all commands and options in details.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |