I want to write a java program which will tar and zip folder in linux machine.
currently we are doing manually in linux and I want it to automate using java program.
currently we are doing in terminal as below.
tar -czvf /nas/test/Rakesh.tar.gz /nas/testNew/demo/*
in above we are creating Rakesh.tar.gz by adding all files from /nas/testNew/demo
4