User Tools

Site Tools


cs:bash_useful
Return to Home page

Bash Useful Commands

  • Select all the regular files in the current directory greater that 10 Megabytes, compress them with the 7z algorithm, and remove the original files
find . -type f -size +10M -exec sh -c "echo {}; tar cfJ {}.txz {}; rm {}" \;

If you found any error, or if you want to partecipate to the editing of this wiki, please contact: admin [at] skenz.it

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: https://www.skenz.it/cs/bash_useful
/web/htdocs/www.skenz.it/home/data/pages/cs/bash_useful.txt · Last modified: 2024/04/08 22:34 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki
Privacy Policy