Benutzer-Werkzeuge

Webseiten-Werkzeuge


commands-general-tools

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
commands-general-tools [2019/03/13 18:38]
alex [Conversion Stuff] file content character/byte occurences
commands-general-tools [2019/10/31 18:10] (aktuell)
alex [Network Stuff] reworked DNSSEC chasing
Zeile 117: Zeile 117:
 === verify DNSSEC chain of a domain === === verify DNSSEC chain of a domain ===
 <code bash> <code bash>
-## obtain ​the root keys first+## if you don't have the root keys yet, obtain them first 
 +unbound-anchor -a /​usr/​local/​etc/​unbound/​root.key 
 +## if the root key file is at the standard path of your unbound/​ldns installation,​ the "​-k"​ option can be omitted
 drill -S -k /​usr/​local/​etc/​unbound/​root.key kuehrmann.de drill -S -k /​usr/​local/​etc/​unbound/​root.key kuehrmann.de
-## if your resolver does not support DNSSEC use e.g. Quad9 +## if your resolver does not support DNSSECuse a public one, e.g. Hurricane Electric 
-drill -S -k /​usr/​local/​etc/​unbound/​root.key kuehrmann.de @9.9.9.9+drill -S -k /​usr/​local/​etc/​unbound/​root.key kuehrmann.de @74.82.42.42
 </​code>​ </​code>​
-[[https://​www.freebsd.org/​cgi/​man.cgi?​query=drill&​sektion=1| drill(1)]]+[[https://​www.freebsd.org/​cgi/​man.cgi?​query=drill&​sektion=1|drill(1)]] [[https://​www.freebsd.org/​cgi/​man.cgi?​query=unbound-anchor&​sektion=8|unbound-anchor(8)]]
  
 === check whether your DNS resolver discards invalid DNSSEC domains === === check whether your DNS resolver discards invalid DNSSEC domains ===
Zeile 165: Zeile 167:
 find /your/dir -name "​*.cpp"​ -print0 | xargs -0 wc -l find /your/dir -name "​*.cpp"​ -print0 | xargs -0 wc -l
 </​code>​ </​code>​
 +[[https://​www.freebsd.org/​cgi/​man.cgi?​query=find&​sektion=1|find(1)]] [[https://​www.freebsd.org/​cgi/​man.cgi?​query=xargs&​sektion=1|xargs(1)]]
  
 === check recursively for broken symlinks === === check recursively for broken symlinks ===
Zeile 170: Zeile 173:
 find /your/dir -type l ! -exec test -e {} \; -print find /your/dir -type l ! -exec test -e {} \; -print
 </​code>​ </​code>​
 +[[https://​www.freebsd.org/​cgi/​man.cgi?​query=find&​sektion=1|find(1)]]
  
 === delete recursively all files with a certain name (e.g. “.DS_Store”) === === delete recursively all files with a certain name (e.g. “.DS_Store”) ===
Zeile 175: Zeile 179:
 find /your/dir -type f -name .DS_Store -print -delete find /your/dir -type f -name .DS_Store -print -delete
 </​code>​ </​code>​
 +[[https://​www.freebsd.org/​cgi/​man.cgi?​query=find&​sektion=1|find(1)]]
  
 === create checksums of directory tree and verify them === === create checksums of directory tree and verify them ===
Zeile 186: Zeile 191:
 rhash -cr --crc-accept=sfv,​md5,​sha256 /​tmp/​directory/​ rhash -cr --crc-accept=sfv,​md5,​sha256 /​tmp/​directory/​
 </​code>​ </​code>​
-[[https://​www.freebsd.org/​cgi/​man.cgi?​query=rhash|man rhash]]+[[https://​www.freebsd.org/​cgi/​man.cgi?​query=rhash&​sektion=1|rhash(1)]]
  
 === create a file with specific timestamps === === create a file with specific timestamps ===
Zeile 195: Zeile 200:
 ## -t = timestamp - use [[CC]YY]MMDDhhmm[.ss] time format ## -t = timestamp - use [[CC]YY]MMDDhhmm[.ss] time format
 </​code>​ </​code>​
-[[https://​www.freebsd.org/​cgi/​man.cgi?​query=touch|man touch]]+[[https://​www.freebsd.org/​cgi/​man.cgi?​query=touch&​sektion=1|touch(1)]]
  
 === handle sparse files === === handle sparse files ===
Zeile 204: Zeile 209:
 dd if=inputSparse.ext of=outputSparse.ext bs=4096 conv=sparse dd if=inputSparse.ext of=outputSparse.ext bs=4096 conv=sparse
 </​code>​ </​code>​
-[[https://​www.freebsd.org/​cgi/​man.cgi?​query=truncate|man truncate]] [[https://​www.freebsd.org/​cgi/​man.cgi?​query=dd|man dd]]+[[https://​www.freebsd.org/​cgi/​man.cgi?​query=truncate&​sektion=1|truncate(1)]] [[https://​www.freebsd.org/​cgi/​man.cgi?​query=dd&​sektion=1|dd(1)]] 
 + 
 +=== create a 7-ZIP archive encrypted with a password === 
 + 
 +<code bash> 
 +7z a -p -mhe=on the_new_archive.7z -r dir_containing_stuff another_file.bin 
 +</​code>​ 
 +[[https://​www.freebsd.org/​cgi/​man.cgi?​query=7z&​sektion=1|7z(1)]] 
 ==== Disk and Partition Stuff ==== ==== Disk and Partition Stuff ====
  
commands-general-tools.1552498726.txt.gz · Zuletzt geändert: 2019/03/13 18:38 von alex