Paolo Redaelli personal blog

Author: Paolo Redaelli

It’s worth

Xz may had had a huge trust-related security issue but its performance is still very desiderable: paolo@DietPi:~/Scaricati$ wget –mirror it.aleteia.org paolo@DietPi:~/Scaricati$ du -sch it.aleteia.org/; time tar -acf ~/archivio/data/Documenti/it.aleteia.org.tar.xz it.aleteia.org/; du -h ~/archivio/data/Documenti/it.aleteia.org.tar.xz<br>37G it.aleteia.org/<br>37G totale real 614m8,594s<br>user 469m26,287s<br>sys 15m33,329s<br>1,6G /home/paolo/archivio/data/Documenti/it.aleteia.org.tar.xz This humble Raspberry Pi 3 may be aging and slow but it’s still useful.

Password Card Generator – Raphael

Password Card Generator. This website allows you to generate customized password cards in the spirit of Qwertycards.com. If you like the concept, please buy a card from their website. Generate a new card. Pick the characters you want to use. numbers lower case upper case symbols space other.

Clone it!

The different extended pattern matching operators are listed below, where pattern-list is a list containing one or more filenames, separated using the | character:

  1. *(pattern-list) – matches zero or more occurrences of the specified patterns
  2. ?(pattern-list) – matches zero or one occurrence of the specified patterns
  3. +(pattern-list) – matches one or more occurrences of the specified patterns
  4. @(pattern-list) – matches one of the specified patterns
  5. !(pattern-list) – matches anything except one of the given patterns

To use them, enable the extglob shell option as follows:

# shopt -s extglob

1. To delete all files in a directory except filename, type the command below:

$ rm -v !("filename")
Delete All Files Except One File in Linux

2. To delete all files with the exception of filename1 and filename2:

$ rm -v !("filename1"|"filename2") 
Source: 3 Ways to Delete All Files in a Directory Except One or Few Files with Extensions