Hello,
If you wish to compress and file or directory on your linux server. you can do it following simple commands.
1] Zip command
for directory compression you have to use following command.
For File compressHTML Code:server [~]##zip -r public_html.zip public_html
HTML Code:server [~]#zip filename1.zip filename1
2] tar.gz command
same command you can use for directory as well just replace file with directory.HTML Code:server [~]#tar -czvf filename.tar.gz filename






Reply With Quote

Bookmarks