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
Letzte ÜberarbeitungBeide Seiten der Revision
shell [24/10/2022 - 07:56] thommie4shell [01/01/2024 - 13:33] admin
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/]]
  
 [[http://www.linux-services.org/shell/|http://www.linux-services.org/shell/]] [[http://www.linux-services.org/shell/|http://www.linux-services.org/shell/]]
 +
 +===== GB keyboard =====
 +
 +{{  :kb_united_kingdom.svg  }}
  
 ===== Screen ===== ===== Screen =====
Zeile 46: 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.txt
  • Zuletzt geändert: 05/03/2024 - 10:52
  • von 127.0.0.1