by the following way we tar the folder presto-server-0.210 to file
tar -czvf presto-server-archive.tar.gz presto-server-0.210
so after we tar the folder , folder still exists
is it possible to use the tar or other approach and replace the folder to tar file , so folder will removed and instead of folder we create the tar file
if tar -czvf presto-server-archive.tar.gz presto-server-0.210; then rm -fr presto-server-0.210; fi
? – DopeGhoti Apr 2 '19 at 21:03rm -r
? – Kusalananda♦ Apr 2 '19 at 21:15