linux compress folder
# 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
3.33
3
tar cf ostechnix.tar ostechnix/
# Here, c flag refers create new archive and f refers the file name.
Thank you!
3
0
3.67
3
tar -czvf archive.tar.gz stuff
Thank you!
3
0
3.88
8
tar -zcf archive-name.tar.gz foldername
Thank you!
8
0
4.43
7
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Thank you!
7
0
Are there any code examples left?
New code examples in category Shell/Bash