Answers for "tar a directory linux"

5

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
Posted by: Guest on May-20-2020
12

tar a directory linux

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Posted by: Guest on March-11-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language