Select Page

ABIOLA RASP – Raspberries for African School Projects

Wie können wir helfen?

< Alle Themen
Print

Compress a file with the .gz extension

no-823 au-03

.gz Format

.gz is the file extension for gzip files (GNU zip, an open source file compression program). It contains a compressed collection of one or more files and is commonly used on Unix operating systems for file compression.

Compressing

gzip command can be used to compressed a file with the .gz extension.

1) A txt file that wil be compressed.

2) Run below command

gzip note.txt

After run the command, note.txt dissappears and note.txt.gz occures.

Extracting

You must use -d parameter tp extraxt file which is .gz extension.

1) This the gzip file that we want to extract.

2) Run below command.

gzip -d note.txt.gz

This article is a component of the “Linux Introduction” course from the ABIOLA online Academy.

Please refer: https://academy.abiola.ngo/courses/linux-introduction/?lang=en

Inhaltsverzeichnis