UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 2482d28c authored by Gregory Shrewsbury's avatar Gregory Shrewsbury
Browse files

Update compression.sh

parent 67b57eac
Branches patch-5
No related merge requests found
......@@ -22,13 +22,13 @@ about_7z () {
reset
echo -e "${BRed} --- .7z ---"
echo -e "${BGreen} 7-Zip is a file archiver with the highest compression ratio and supports ZIP, CAB, ARJ, GZIP, BZIP2, TAR, CPIO, RPM and DEB formats.
Common syntax is ${BPurple} <7z ${BRed}c ${BPurple}[file name>] for create,${BGreen} and ${BPurple} <7z ${BRed}x ${BPurple}[file name]> for extract."
Common syntax is ${BPurple} <7z ${BRed}a ${BPurple}[file name>].7z /path/to/folder /path/to/file for createing an archive,${BGreen} and ${BPurple} <7z ${BRed}e ${BPurple}[file name].7z> for extract."
}
about_gzip () {
reset
echo -e "${BRed} --- .gzip ---"
echo -e "${BGreen} gzip works with gzip (".gz") files, not zip (".zip") files. For zip files, you need to use the unzip command.
Common syntax is ${BPurple} <gzip [option] [filename]> to create and <gzip ${BRed}–d ${BPurple}[filename]> to ${BRed}decompress."
Common syntax is ${BPurple} <gzip [option] [filename]> to create a file and <gzip ${BRed}–d ${BPurple}[filename]> to ${BRed}decompress."
}
about_bzip2 () {
reset
......@@ -39,8 +39,8 @@ echo -e "${BGreen} bzip2 is a proprietary free compression algorithm and it foll
about_tar () {
reset
echo -e "${BRed} --- .tar ---"
echo -e "${BGreen} Or tape archives aka tarballs are used when compressing multiple files or directories. They can then also be compressed or zipped into a gzip file. This type of file will end in a .tar.gzor .tgz file extension. Gzip is most often used to compress text files, Tar archives, and web pages.
Common syntax is ${BPurple} <tar ${BRed}-c${BPurple}vf [new file name] [files you want to add to tar file]> to ${BRed}create ${BPurple}tar file. <tar ${BRed}-x${BPurple}vf [file name to decompress] to ${BRed}decompress ${BPurple}a tar."
echo -e "${BGreen} Or tape archives aka tarballs are used when compressing multiple files or directories. They can then also be compressed or zipped into a gzip file. This type of file will end in a .tar.gz or .tgz file extension. Gzip is most often used to compress text files, Tar archives, and web pages.
Common syntax is ${BPurple} <tar ${BRed}-c${BPurple}vf [new file name.tar.gz] /path/to/directory> to ${BRed}create ${BPurple}tar file. <tar ${BRed}-x${BPurple}vf [file name to decompress] to ${BRed}decompress ${BPurple}a tar."
}
mainMenu () {
reset
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment