Tag Archives: command

Find and delete

Find files and directories containning your search terms, and delete them witout confirmation and recursively. No matter if they are not empty.

 bash | 
 
 copy code |
?

1
find . -name "search_terms" -exec rm -rf {} \;

Download a Web Site with wget

Wget is a tool to download websites from cli. How to download an entire site could be acomplished with the following example:

 bash | 
 
 copy code |
?

01
wget \
02
     --recursive \
03
     --no-clobber \
04
     --page-requisites \
05
     --html-extension \
06
     --convert-links \
07
     --restrict-file-names=windows \
08
     --domains demosite.org \
09
     --no-parent \
10
         www.demosite.org/html/

Split and join files

How to split a file in chunks and how to put them back together.

 bash | 
 
 copy code |
?

01
### SPLIT LONG:
02
split --bytes=5m --suffix-length=2 --numeric-suffixes image.iso image.iso.part_
03
split --verbose --bytes=5m --suffix-length=2 --numeric-suffixes image.iso image.iso.part_
04
05
06
### SPLIT SHORT:
07
split -b 5m -a 2 -d image.iso image.iso.part_
08
09
10
split --verbose -b 5m -a 2 -d image.iso image.iso.part_
11