Shell/Bash: tar a directory linux Example

By

Shell/Bash Example: This is the "tar a directory linux" Example. compiled from many sources on the internet by SimpleTutorials.org

tar a directory linux

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

gzip folder with tar

# gzip my-folder-name
#
# flags:
# 	z = filter the archive through gzip
# 	c = create a new archive
# 	v = verbosely list files processed
# 	f = use archive file or device ARCHIVE
#
# Example:
tar -zcvf my-filename.tar.gz my-folder-name

tar directory

tar -czvf archive.tar.gz stuff

tar a directory linux

tar a directory linux



* Summary: This "tar a directory linux" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others