Skip to main content

Compress File Into Zip Format In Linux Using Terminal

- Launch Terminal

- Check if "tar" package was installed in your system if not Please installed it before proceed next step

- Type the following command in Terminal

tar  -czvf  filename.zip  /pathfordirectory

-c : Create an Archive

-z : Compress an Archive with Zip File Format ( Can Also Format as tar.gz )

-v : This is an Optional. It displays the process of Archive in Terminal. It's also Called as "Verbose".

-f : Allows to Specify File Name for the Archive 

Comments