unpack multiple files at once using xargs

how to upack all tarball gunzips .tar.gz in a given directory at a time

ls *.tar.gz | xargs -t -I {} tar -zxvf  {}

*note: after the -t it is a -I as in -(capital)i

substitute your flavors at -zxvf and adjust file list at the ls command before the pipe

Leave a Reply