Answers for "linux compress folder"

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
0

linux compress folder

tar -zcf archive-name.tar.gz foldername
Posted by: Guest on May-21-2021
1

how to put directory in archive bash

tar cf ostechnix.tar ostechnix/
# Here, c flag refers create new archive and f refers the file name.
Posted by: Guest on March-26-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language