User Tools

Site Tools

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]

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url:
/web/htdocs/ · Last modified: 2020/11/26 23:18 (external edit)