User Tools

Site Tools


cs:bash_useful
Return to Home page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cs:bash_useful [2019/12/13 09:34] (current)
zioskenz created
Line 1: Line 1:
 +====== 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
 +<code bash>
 +find . -type f -size +10M -exec sh -c "echo {}; tar cfJ {}.txz {}; rm {}" \;
 +</​code>​
  

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?rev=1576226084&do=diff
/web/htdocs/www.skenz.it/home/data/pages/cs/bash_useful.txt ยท Last modified: 2019/12/13 09:34 by zioskenz

Privacy Policy