snipt

Ctrl+h for KB shortcuts

Bash

remove files over certain size

find . -type f -size +5M -exec rm {} +  
https://snipt.net/embed/2ebd7cbc09208ecef4937a77ce4bf20b/
/raw/2ebd7cbc09208ecef4937a77ce4bf20b/
2ebd7cbc09208ecef4937a77ce4bf20b
bash
Bash
1
2019-07-07T18:29:02
True
False
False
/api/public/snipt/39150/
remove-files-over-certain-size
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>find . -type f -size +5M -exec rm <span class="o">{}</span> + </span></pre></div> </td></tr></table>
bash, server

Bash

reload apache

service apache2 reload
https://snipt.net/embed/31ffcf43635e27af6690761fd6a786f2/
/raw/31ffcf43635e27af6690761fd6a786f2/
31ffcf43635e27af6690761fd6a786f2
bash
Bash
1
2019-07-12T17:03:31
True
False
False
/api/public/snipt/34169/
reload-apache
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>service apache2 reload </span></pre></div> </td></tr></table>
apache, reload, server