Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
debian_common [2019/06/08 12:11]
Júne Park [Upgrade php 7.x]
debian_common [2019/06/24 00:12] (current)
Júne Park [Delete all files except for desired file types]
Line 330: Line 330:
 ---- ----
  
-==== Delete unnecessary files regularly ====  
-''​sudo crontab -e''​ Add command line to find & delete. e.g.) Delete all ''​.nfo''​ file in target directory and its sub-directories at 30 minutes past every 6 hours. ​ 
  
-<code bash> 
-  30 */6 * * * /​usr/​bin/​find /..((your path)).../ -name '​*.nfo'​ -exec rm -f {} \; 
-</​code>​ 
  
-Delete empty directory at 30 minutes past every 12 hours  
- 
-<code bash> 
-  30 */12 * * * /​usr/​bin/​find /..((your path)).../ -type d -empty -delete 
-</​code>​ 
- 
----- 
- 
-==== Delete all files except for desired file types ====  
- 
-<code bash> ​ 
- find . -type f ! -name '​*.mkv'​ -delete 
-</​code>  ​ 
- 
----- 
 ==== Disable power wireless off ====  ==== Disable power wireless off ==== 
  
  • debian_common.1559963469
  • Last modified: 2019/06/08 12:11
  • by Júne Park