linux compress folder 1

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

Here is what the above code is Doing:
1. tar = tar command
2. -z = gzip
3. -c = create
4. -v = verbose
5. -f = file
6. my-filename.tar.gz = name of the tar file
7. my-folder-name = name of the folder to be compressed

Similar Posts