Home/vivek/projects/myhellowebapp/hellowebapp.working/collection/admin.py Home/vivek/projects/myhellowebapp/hellowebapp.working/collection/models.py Home/vivek/projects/myhellowebapp/hellowebapp.working/collection/ Home/vivek/projects/myhellowebapp/hellowebapp.working/manage.py Home/vivek/projects/myhellowebapp/hellowebapp.working/db.sqlite3 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. Verify tar.gz file using the ls command and tar command.Run tar command to create an archived named for given directory name by running: tar -czvf directory.The procedure to create a tar.gz file on Linux is as follows: How to create tar.gz file in Linux using command line Each tarball stores data along with additional information such as: The tar command first offered in the seventh edition of unix v7 in January 1979.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |