shell

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
shell [18/05/2023 - 14:30] thommie4shell [05/03/2024 - 10:52] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
 ====== Shell allgemein ====== ====== Shell allgemein ======
  
-http://www.gnu.org/software/bash/manual/bashref.html+[[http://www.gnu.org/software/bash/manual/bashref.html|http://www.gnu.org/software/bash/manual/bashref.html]]
  
 [[https://www.shellscript.sh/|https://www.shellscript.sh/]] [[https://www.shellscript.sh/|https://www.shellscript.sh/]]
Zeile 9: Zeile 9:
 ===== GB keyboard ===== ===== GB keyboard =====
  
-{{ :kb_united_kingdom.svg |}}+{{  :kb_united_kingdom.svg  }}
  
 ===== Screen ===== ===== Screen =====
Zeile 50: Zeile 50:
  
 Einfügen eines Passwort hashes Einfügen eines Passwort hashes
- 
 <code> <code>
-thommie@odysseus3:~> python -c "import crypt, getpass, pwd; \ + 
->          print crypt.crypt('[klartext]', '\$6\$SALTsalt\$')"+thommie@odysseus3:~> python -c "import crypt, getpass, pwd; \>          print crypt.crypt('[klartext]', '\$6\$SALTsalt\$')" 
 $6$SALTsalt$0[hashwert] $6$SALTsalt$0[hashwert]
 +
 </code> </code>
  
 ===== update-alternatives ===== ===== update-alternatives =====
  
-https://manpages.ubuntu.com/manpages/trusty/de/man8/update-alternatives.8.html+[[https://manpages.ubuntu.com/manpages/trusty/de/man8/update-alternatives.8.html|https://manpages.ubuntu.com/manpages/trusty/de/man8/update-alternatives.8.html]]
  
 ===== Diverses ===== ===== Diverses =====
  
 Random string erzeugen Random string erzeugen
- 
 <code> <code>
 +
 tr -dc A-Za-z0-9 </dev/urandom | head -c 25 ; echo '' tr -dc A-Za-z0-9 </dev/urandom | head -c 25 ; echo ''
 +
 </code> </code>
 +
 +===== Links =====
 +
 +''ln -s /Zieldatei /Referenz
 +
 +=====   Code snippets   =====
 +
 +==== sed ====
 +
 +replace "-d" with "-d "
 +<code>
 +
 + <font inherit/monospace;;inherit;;#000000background-color:#ffffff;>sed s/-d/'-d '/g domains3.txt> domains4.txt</font> 
 +</code>
 +
 +trim string and remove newlines
 +
 +<code>
 + <font inherit/monospace;;inherit;;#000000background-color:#ffffff;>tr --delete '\n' <domains2.csv> domains3.txt</font> 
 +</code>
 +
  
  • shell.1684420224.txt.gz
  • Zuletzt geändert: 05/03/2024 - 10:52
  • (Externe Bearbeitung)