# Linux Commands

<p id="bkmrk-"><strong>Basics</strong></p>
<table id="bkmrk-ctrl%2Bd-log-out-ctrl%2B" style="height: 2777px; width: 107.407407%;" cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>Ctrl+Shift+T&nbsp;</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Terminal Öffnen</p>
</td>
<td style="height: 140px; width: 24.103832%;" rowspan="4">
<p><br></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p>
<br>
<p>&nbsp; &nbsp;<strong>Steuerung Terminal</strong></p>
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>Ctrl+C&nbsp;</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Abrechen / neue Befehlszeile</p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>Ctrl+D</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Log out</p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p>Ctrl+L</p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p>Verlauf löschen</p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>cd ..</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Ordner zurück &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;⬅️ 📁</p>
</td>
<td style="width: 24.103832%; height: 35px;"><br></td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>cd ~</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>in home wechseln &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;➡️ 🏠</p>
</td>
<td style="width: 24.103832%; height: 35px;"><br></td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>touch</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Datei erstellen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;➕ 📄</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr>
<td style="width: 33.003708%;">
<p>mkdir</p>
</td>
<td style="width: 43.016069%;">
<p>Ordner erstellen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ➕ 📁</p>
</td>
<td style="width: 24.103832%;">
<p><br></p>
</td>
</tr>
<tr>
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>rm -r<span class="Apple-converted-space">&nbsp;</span></p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Löschen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ❌ 📄</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr>
<td style="width: 33.003708%;">
<p><br></p>
</td>
<td style="width: 43.016069%;">
<p><br></p>
</td>
<td style="width: 24.103832%;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>ls</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Liste anzeigen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 📁+📄</p>
</td>
<td style="height: 219px; width: 24.103832%;" rowspan="5">
<p><br></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;👀</p>
<p><strong>&nbsp; &nbsp; &nbsp; &nbsp; Anzeigen mit LS</strong></p>
<br>
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p>ls -l /home</p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p>anzeigen aller /home Ordner &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /🏠 /🏠</p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p>ls -l&nbsp;</p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p>Inhalt &nbsp;anzeigen. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;🔐 👤 👥 📄</p>
</td>
</tr>
<tr style="height: 79px;">
<td style="width: 33.003708%; height: 79px;">
<p>ls -la<span class="Apple-converted-space">&nbsp;</span></p>
<p><span class="Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></p>
<p><span class="Apple-converted-space">(optional -h = KB, MB)</span></p>
</td>
<td style="width: 43.016069%; height: 79px;">
<p>Inhalt &nbsp;anzeigen. &nbsp; &nbsp; &nbsp;</p>
<p data-pm-slice="1 1 []">(Rechte,User,Group,Größe,Datum+versteckte) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; . &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 👻 🔐 👤 👥 &nbsp;📄</p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p>tree</p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p>tree struktur anzeigen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 🌳└──</p>
</td>
<td style="height: 127px; width: 24.103832%;" rowspan="3">
<p><br></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 👀</p>
<p><strong>&nbsp; &nbsp; &nbsp;Anzeigen Struktur</strong></p>
<br>
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p>tree -L 1</p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p>Zeigt erstes unter level an &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 🌳├──</p>
</td>
</tr>
<tr style="height: 57px;">
<td style="width: 33.003708%; height: 57px;">
<p>tree -pug</p>
</td>
<td style="width: 43.016069%; height: 57px;">
<p>&nbsp;tree mit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 🌳</p>
<p>-pug(<strong>Zugriffsrecht, User, Gruppe</strong>) 🔐,👤,👥</p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>getent passwd</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Alle user anzeigen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 👤👤👤</p>
</td>
<td style="height: 127px; width: 24.103832%;" rowspan="3">
<p><br></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;👀</p>
<p>&nbsp;<strong>Anzeigen User &amp; Group</strong></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>getent group</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Gruppe anzeigen<span class="Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;👥👥👥</span></p>
</td>
</tr>
<tr style="height: 57px;">
<td style="width: 33.003708%; height: 57px;">
<p># getent shadow<span class="Apple-converted-space">&nbsp;</span></p>
</td>
<td style="width: 43.016069%; height: 57px;">
<p>Passwort-Hashes anzeigen</p>
<p>Sudo oder aus Root &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #️⃣ 🔑</p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 79px;">
<td style="width: 33.003708%; height: 79px;" valign="top">
<p># useradd -m -s /bin/bash</p>
<p>user</p>
</td>
<td style="width: 43.016069%; height: 79px;" valign="top">
<p>Benutzer erstellen + Home + Bash. &nbsp; &nbsp; &nbsp;➕ 👤🏠</p>
<p>&nbsp;&amp; (erstellt Standart Hauptgruppe mit user Namen)</p>
</td>
<td style="height: 321px; width: 24.103832%;" rowspan="7">
<p><br></p>
<p><br></p>
<p><strong>&nbsp; Benutzer &amp; </strong></p>
<p><strong>&nbsp; Gruppen erstellen</strong></p>
<p><strong>&nbsp; </strong></p>
<p>&nbsp;</p>
<p><strong>&nbsp;</strong> -g Hauptgruppe</p>
<p>&nbsp; -G Nebengruppe&nbsp;</p>
<p>&nbsp; (alleinstehend ersetzt alle bisherigen nebengrupen)</p>
<p>&nbsp; -aG Nebengruppe adden</p>
<p><strong>&nbsp; &nbsp;&nbsp;</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</td>
</tr>
<tr style="height: 57px;">
<td style="width: 33.003708%; height: 57px;">
<p># useradd -m -s /bin/bash</p>
<p>-g HAUPT -G NEBENGRUPPE user</p>
</td>
<td style="width: 43.016069%; height: 57px;">
<p>Benutzer erstellen + Home + Bash &nbsp; &nbsp; &nbsp;➕ 👤🏠</p>
<p>+HauptG +NebenG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 👥 (👥)</p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 45px;">
<td style="width: 33.003708%; height: 45px;" valign="top">
<p># groupadd groupName</p>
</td>
<td style="width: 43.016069%; height: 45px;" valign="top">
<p>neue Gruppe erstellen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 👥 ✅</p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p># usermod -aG NebenGruppe user</p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p>User zur Nebengruppe hinzufügen. &nbsp; 👤→👥</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p># groupmod -n neuerName alterName</p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p>Gruppe umbenennen. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;👥 <span class="Apple-converted-space">🔄Name</span></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 57px;">
<td style="width: 33.003708%; height: 57px;">
<p># chgrp -R gruppe /...</p>
</td>
<td style="width: 43.016069%; height: 57px;">
<p>Gruppe ändern + ALLE Daten &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 👥 + 📄</p>
</td>
<td style="width: 24.103832%; height: 57px;">
<p><strong data-start="1871" data-end="1898">-R = Rekursiv &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (Alle Dateien)</strong></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p># usermod -s /bin/bash user</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Bash nachträglich hinzufügen</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>{ }</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Kaskadieren</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>cp</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Kopie</p>
</td>
<td style="height: 123px; width: 24.103832%;" rowspan="2">
<p><strong>kopieren oder &nbsp; &nbsp; verschieben</strong></p>
<p><br></p>
<p>&nbsp;Bsp. &nbsp;mv OldName NewName</p>
</td>
</tr>
<tr style="height: 88px;">
<td style="width: 33.003708%; height: 88px;" valign="top">
<p>mv</p>
</td>
<td style="width: 43.016069%; height: 88px;" valign="top">
<p>Verschiebt o. benennt Dateien</p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p><span class="Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>getent passwd</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Alle user anzeigen</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>getent group</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Gruppe anzeigen<span class="Apple-converted-space">&nbsp;</span></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p># passwd user</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Passwort zuweisen</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>su - user</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Nutzer wechseln</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p># chown user:group /home/OldUser</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Besitzer übergeben &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 🫴 &nbsp; &nbsp; &nbsp; 👤👥 &nbsp;🏠</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p># chgrp group datei</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Ändert nur gruppe &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;🔄.... &nbsp; &nbsp; &nbsp; &nbsp;👥 ➝ 📄</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p># chown user:group dateiname</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Ändert besitzer &amp; gruppe. &nbsp; &nbsp; &nbsp;🔄.... &nbsp;👤👥 ➝ 📄</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p># usermod -l oldUser newUser</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Ändern des namen<span class="Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;👤🔄Name</span></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p><br></p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p><br></p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 35px;">
<td style="width: 33.003708%; height: 35px;" valign="top">
<p>fdisk -L</p>
</td>
<td style="width: 43.016069%; height: 35px;" valign="top">
<p>Zeigt alle festplatten und formate an</p>
</td>
<td style="width: 24.103832%; height: 35px;">
<p><br></p>
</td>
</tr>
<tr style="height: 57px;">
<td style="width: 33.003708%; height: 57px;" valign="top">
<p>crontab -e</p>
</td>
<td style="width: 43.016069%; height: 57px;" valign="top">
<p>Um zeitlich gesteuerte dinge zu starten</p>
</td>
<td style="width: 24.103832%; height: 57px;">
<p><br></p>
</td>
</tr>
</tbody>
</table>
<p id="bkmrk-%23-%3D-sudo"># = sudo</p>

CHMOD EINSTELLUNGEN:

- **Löschen hängt vom Ordner ab, nicht von der Datei**  
  → benötigt: `w + x` auf dem Ordner

- **Ordnerrechte ≠ Dateirechte**  
  → Datei: `r=lesen`, `w=ändern`, `x=ausführen`  
  → Ordner: `r=sehen`, `w=erstellen/löschen`, `x=betreten`

- **`x` ist Pflicht für Zugriff**  
  → ohne `x`: kein `cd`, kein Öffnen, egal was sonst gesetzt ist

- **`r` ohne `x`**  
  → sehen eingeschränkt möglich, aber nicht nutzen

- **`x` ohne `r`**  
  → betreten möglich, aber kein `ls` (Blindzugriff)

- **`w` ohne `x`**  
  → praktisch nutzlos (kein Zugriff auf den Ordner)

- **Verschieben (`mv`)**  
  → benötigt `w + x` auf Quell- UND Zielordner

- **Datei löschen ohne Dateirechte möglich**  
  → wenn Ordner `w + x` hat

- **root ignoriert Rechte weitgehend**  
  → kann fast alles unabhängig von Permissions

- **`chmod 777`**  
  → funktioniert immer, aber unsicher (jeder darf alles)

- **Sticky Bit (`t`) z. B. `/tmp`**  
  → alle dürfen schreiben, aber nur eigene Dateien löschen


--

**Linux Prompt (Befehlszeile) – komplett kompakt**

**Grundaufbau**  
`user@hostname:pfad$`  
oder als Admin:  
`root@hostname:pfad#`

**Bestandteile**

- `user` → aktueller Benutzer  
  - `user` = normaler Benutzer  
  - `root` = Administrator

- `hostname` → Rechner- oder Systemname  
  - z. B. `server`, `NASSI`, `raspberrypi`, `container`

- `pfad` → aktueller Ordner  
  - `~` = Home-Verzeichnis von `user` = `/home/user`  
  - `/` = Root-Verzeichnis, also die oberste Ebene des Systems  
  - `/etc`, `/var/log`, `/tmp` = absolute Pfade  
  - `..` = eine Ebene zurück

- `$` / `#` → Rechte-Stufe  
  - `$` = normaler Benutzer  
  - `#` = root / Admin

**Beispiele**

`user@server:~$`  
→ Benutzer `user`, Host `server`, im Home-Verzeichnis, normale Rechte

`root@server:~#`  
→ Benutzer `root`, Host `server`, im Home-Verzeichnis von root (`/root`), volle Rechte

`user@server:/home/user/projects$`  
→ Benutzer `user`, Host `server`, im Ordner `/home/user/projects`, normale Rechte

`root@server:/etc#`  
→ Benutzer `root`, Host `server`, im Ordner `/etc`, volle Rechte

`user@NASSI:/var/log$`  
→ Benutzer `user`, Host `NASSI`, im Log-Verzeichnis `/var/log`, normale Rechte

`root@container:/app#`  
→ Benutzer `root`, Host `container`, im Ordner `/app`, volle Rechte

`user@raspberrypi:~$`  
→ Benutzer `user`, Host `raspberrypi`, im Home-Verzeichnis, normale Rechte

`~/projects $`  
→ verkürzter Prompt, nur Pfad sichtbar, aktueller Ordner ist `projects` im Home-Verzeichnis

`$`  
→ minimaler Prompt, keine Infos zu Benutzer, Host oder Pfad sichtbar

`user@server:/tmp$`  
→ Benutzer `user`, Host `server`, im temporären Ordner `/tmp`

`user@server:/$`  
→ Benutzer `user`, Host `server`, im Root-Verzeichnis `/`

**Wichtige Bedeutungen**

- `~` = Home-Verzeichnis des aktuellen Benutzers  
- `/` = oberste Ebene des gesamten Systems  
- `..` = ein Verzeichnis zurück  
- `user@host` = zeigt, **wer** du bist und **auf welchem System** du bist  
- `pfad` = zeigt, **wo** du dich gerade befindest  
- `$` oder `#` = zeigt, **mit welchen Rechten** du arbeitest

**Typische Prüfungsfallen**

- `#` bedeutet nicht Kommentar im Prompt, sondern **root-Rechte**
- `~` ist **nicht** dasselbe wie `/`
  - `~` = Benutzerbereich
  - `/` = gesamtes System
- Der Hostname ist wichtig, weil du damit erkennst, auf welchem Gerät du gerade arbeitest
- Ein Prompt mit `$` ist deutlich ungefährlicher als ein Prompt mit `#`

**Merksatz**

`user@host = WER und WO`  
`pfad = an welcher Stelle im System`  
`$ / # = wie viele Rechte du hast`