| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| linux:befehle [2023/11/13 01:21] – gsys | linux:befehle [2025/09/04 14:07] (current) – gsys |
|---|
| |
| ^ Befehl ^ Funktion ^ | ^ Befehl ^ Funktion ^ |
| | |wget --user="username" --password="password" https://example.com/file.iso | Download File with htaccess auth | |
| | | stat -c %w / | get OS install date and time | |
| | unzip file.zip -d /path/to/folder | unzip file to folder | | | unzip file.zip -d /path/to/folder | unzip file to folder | |
| | md5sum <filename> | generate md5 sum of file | | | md5sum <filename> | generate md5 sum of file | |
| | ''sudo grep -sIr --exclude-dir={dev,proc,run,sys} "example.com" /'' | search system for string example.com | | | sha256sum <filename> | generate sha256 sum of file | |
| | | %% sudo grep -sIr --exclude-dir={dev,proc,run,sys} "example.com" / %% | search system for string example.com | |
| | watch -n 10 -d sudo cat /opt/traefik-prod/app/data/acme.json | Alle 10 sek. sudo befehl ausführen (Vollbildausgabe) | | | watch -n 10 -d sudo cat /opt/traefik-prod/app/data/acme.json | Alle 10 sek. sudo befehl ausführen (Vollbildausgabe) | |
| | timedatectl set-timezone Europe/Berlin | Zeitzone setzen | | | timedatectl set-timezone Europe/Berlin | Zeitzone setzen | |
| | rndc flush | Clear Bind DNS-Cache | | | rndc flush | Clear Bind DNS-Cache | |
| | rndc reload | Reload Bind | | | rndc reload | Reload Bind | |
| | ''journalctl --since "2022-01-20 10:00:00" --until "2022-01-20 12:00:00" | grep squid'' | Abfrage des Journals ab Uhrzeit bis Uhrzeit von Dienst squid | | | %% journalctl -u squid --since "2022-01-20 10:00:00" --until "2022-01-20 12:00:00" %% | Abfrage des Journals ab Uhrzeit bis Uhrzeit von Dienst squid | |
| |cat /sys/class/net/eth0/speed | get network card speed for eth0 | | |cat /sys/class/net/eth0/speed | get network card speed for eth0 | |
| |lscpu | CPU Info | | |lscpu | CPU Info | |
| | ''lsof|grep SchulkonsoleW7'' | Zeigt offene Verbindung zu Dateien mit "SchulkonsoleW7" im Namen bzw. Pfad | | | ''lsof|grep SchulkonsoleW7'' | Zeigt offene Verbindung zu Dateien mit "SchulkonsoleW7" im Namen bzw. Pfad | |
| | du -sh [verzeichnis] |Zeigt die Größe eines Ordners an "menschenlesbar"| | | du -sh [verzeichnis] |Zeigt die Größe eines Ordners an "menschenlesbar"| |
| | | tar -tf archiv.tar.gz |Zeigt Inhalt des Archivs an | |
| | tar -zcvf archiv.tar.gz [verzeichnis] |Erstellt einen komprimierten Ordner | | | tar -zcvf archiv.tar.gz [verzeichnis] |Erstellt einen komprimierten Ordner | |
| | tar -zxvf archiv.tar.gz |Entpackt das Archiv | | | tar -zxvf archiv.tar.gz |Entpackt das Archiv | |