clear, whoami, pwd, df, du, passwd, ls, cd, cp, rm, cat pgrep, pkill - look up or signal processes based on name and other attributes sleep pausiert ausführenden Prozess, sleep 5[s|m|h|d] sleep 10, pausiert 10 sec inxi -D /dev/sda (Hardware info) lshw (Hardware info) ls ls -l --time-style=long-iso rpi-issue ls -ld tmp (DIR "tmp" im akt. DIR anzeigen) ls -dp * | grep / (zeigt alle DIRs an, hängt / dran) ls -al /dev/disk/by-uuid (zeigt alle disk-devices an) ls --group-directories-first -1 (sortiert erst DIRs, listet untereinander in je 1 Zeile) ls -1 -R -s -h single lines, recursive, size, human readable du -d 1 -h -c -b -s listet alle DIRs 1 Ebene tief und menschenlesbarer Größe (-h), Summe am Ende (count) in bytes, Subdirs nicht einzeln anzeigen ncdu -r ncurses basiertes du, read-only invoked find find . -path ./src/emacs -prune -o -print find . -path "./sr*sc" find . -type f -iname '*r.ts' -print0 find . -type f -mtime -21 -printf '%TY-%Tm-%Td %TT %p\n' | sort -r find . -type f -mtime -360 -printf '%AY-%Am-%Ad %AT %p\n' | sort -r fdfind fdfind vlc fdfind --changed-within 10d -E index.html hddtemp /dev/sda (Temperature of HD) smartctl -a /dev/sdc (HD Info + Status) uname -r (Kernel release) tune2fs tune2fs -L rootfs-1 /dev/sdd2 (nachträglich label setzen) tune2fs -l /dev/sda5 (alles anzeigen) tune2fs -U UUID /dev/sdax (UUID ändern) lsblk lsblk -f testdisk + photorec (TestDisk checks the partition and boot sectors of your disks. It is very useful in forensics, recovering lost partitions. Photorec recovers lost pictures from digital camera memory or even Hard Disks, also other files.) hdparm hdparm Festplatten-Operationen, -Einstellungen Spin-down etc udevadm udevadm info --query=property --name=sda1 alien (Mit Alien können Sie LSB-, Red-Hat-, Stampede- und Slackware-Pakete in Debian-Pakete konvertieren, die mit dpkg installiert werden können.) ccencrypt ccencrypt a123, ccdecrypt a123 ccrypt Sichere Verschlüsselung und Entschlüsselung von Dateien und Streams pwgen (Passwort generieren z.B. mit Sonderzeichen: pwgen -B -N 1 -y 12 -> z.B. Pa4aiChe+ush ! Achtung, DIR-Name ohne *? etc. ! sicher (ohne Sonderzeichen): pwgen -c -B -N 1 -s 12 -> z.B. dIALwcyW2hzo ) touch touch -t [[CC]YY]MMDDhhmm[.ss] (Datei Datum/Zeit aendern) e.g. touch -t 201105192024 aaa e.g. touch -r oldfile newfile (Zeit von oldfile verwenden) xcalib zur Farbanpassung eines Bildschirms service, systemctl service mdm stop, systemctl stop mdm, systemctl status mdm systemctl enable NAME_DER_UNIT_DATEI systemctl disable NAME_DER_UNIT_DATE ping ping -c3 gho.eu netstat -an alle aktiven und nicht aktiven Socketverbindungen netstat -rn Kernel-IP-Routentabelle route Kernel-IP-Routentabelle (netstat -rn) traceroute tracks the route packets taken from an IP network on their way to a given host. ifconfig Konfiguration einer Netzwerkskarte (netstat -i) ifconfig ifconfig eth1 down | up pkexec Execute a command as another user pkexec rsync -r -t -p -o -g -v --progress -l -H -s /media/sdb2/DATA/Eigene_Bilder /media/sdc5/ shred shred -fuvz... DATEI... Achtung !!! bei ext3 etc journal ! wipe wipe -rq verzeichnis das gesamte Verzeichnis shreddern tee Umleitung in Datei und Konsole genisoimage genisoimage -o ./GOOD_BYE_LENIN_D1P.iso ./GOOD_BYE_LENIN_D1P (ähnlich mkisofs) vsftpd »Very Secure FTP Daemon« ping ping -c 3 leolulu.info.gf X -configure ??? aticonfig aticonfig [OPTION] ... Parses an existing X-Server configuration file and modifies it to operate with AMD products. ip link show iw shows ip cat /sys/class/net/eno1/speed shows speed of device eno1 connectors iwconfig iw list iwlist iwlist wlan3 scan | grep 'Frequency:2.4' | uniq -c iwlist chan (iftop Überwachen Traffic Echtzeit) wpa_cli wpa_cli -i wlan0 reconfigure wpa_cli -i wlan1 status nmap nmap -A -T4 some.ip, nmap -v -A some.ip (intense scan) nmap -v -iR 10000 -PN -p 80 (Choose random targets) nmap -v -sP 192.168.0.0/16 10.0.0.0/8 nmap -sn 192.168.2.0/24 (ping scan) Zenmap Zenmap is the official cross-platform GUI for the Nmap Security Scanner. dialog ls | dialog --progressbox "List DIR" 20 50 lsof list open files; sudo lsof /var/cache/apt/archives/lock pidof pidof (process number) blkid blkid -o list -w /dev/null lsblk lsblk -o name,uuid,fstype,mountpoint,label,siz TiMidity TiMidity beep beep, Ton über Lautsprecher tail tail -f -n 20 filezilla.log (das Ende einer Datei anzeigen) watch watch 'dmesg | tail' (periodisch prg aufrufen) youtube-dl YouTube-Video herunterladen: youtube-dl <'Video-URL'> printenv printenv | grep PATH (alle envir list the processes called sshd AND owned by rootvars anzeigen) e2fsck fsck.vfat -r -t /dev/sdX dosfsck -w -a -t (-v -r -l) /dev/sdc1) btrfs btrfs check --progress /dev/ xfs_check, xfs_repair /dev/sdd3 mkdosfs, mkfs.fat, mkfs.msdos, mkfs.vfat dosfsck, fsck.fat, fsck.msdos, fsck.vfat fatlabel, dosfslabel mount.exfat mount Dateisystem exfat mkexfatfs, mkfs.exfat exfatfsck, fsck.exfat exfatlabel extundelete extundelete --after $(date -d "-1440 min" +..) --restore-all /dev/sdc5 gvfs-mount gvfs-mount -d /dev/sda7 (»/dev/sda7« wurde unter »/media/gerd/Rescue« eingehängt) update-rc.d update-rc.d vdr defaults (update-rc.d [-n] disable|enable [S|2|3|4|5]) ( Die Datei "vdr" in den Autostart eintragen als Root ) pgrep, pkill pgrep -u root sshd (list the processes called sshd AND owned by root) pdfunite pdfunite dokument1.pdf dokument2.pdf dokumentN.pdf Ausgabedokument.pdf (in: poppler-utils) bootinfoscript viele Infos zu GRUB, Partitionen etc in /root/RESULTS.txt ldd ldd /usr/bin/skype, output all libs and all missing libs xev shows keycodes fuser ~ -m /dev/sda1 (zeigt Prozesse die die angegebenen Dateien, Sockets oder Dateisysteme benutzen. gsettings lsmod shows modules 7za 7za a -tzip -pMY_SECRET -mem=AES256 secure.zip doc.pdf doc2.pdf doc3.pdf 7za e secure.zip tar tar -c -j|--bzip2 --checkpoint --index-file=DATEI -f tar -c -z|--gzip|--gunzip --checkpoint --index-file=DATEI -f kpartx kpartx -a image.img, man findet dann unter /dev/mapper/ ein Blockdevice für jede enthaltene Partition. mount -v /dev/mapper/loop0p7 /media/sdc7 umount -v /media/sdc7 kpartx -d image.img udisks2 Daemon: Schnittstelle zu blockorientierten Geräten, udisksctl für Kommandozeile swapon swapon -v /dev/sdb9 (bei lfd. system swap mounten) mkfs uniq sort ls1.txt | uniq | less (report or omit repeated lines) (https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#s-recover-status) comm compares two sorted files line-by-line, lines unique to FILE1, unique to FILE2, in both nice nice -n 10 prg (weniger priorität), nice -n -10 prg (mehr priorität), default: 0 /usr/bin/time /usr/bin/time -f "\t%E real,\t%U user,\t%S sys" ls -Fs scp scp [-12346BCpqrv] [-c cipher] [-F] [-i identity_file] [-l] [-o] [-P] [-S] [[user@]host1:]file1 ... [[user@]host2:]file2 (-C compression, -p Preserves m-/a-times, modes) scp Ausg19.xls gerd@172.16.2.103:/home/gerd/Ausg19-old.xls scp loadkeys de dt. keyboard sha256sum sha256sum passwd -Sa zeigt Status aller user bei SAMBA adduser / deluser useradd usermod usermod -aG vboxsf robert (add robert to group vboxsf) usermod -G root,testgroup1 testuser (reduce the groups of testuser to root,testgroup1) groupadd gpasswd gpasswd -d testuser root (Removing user testuser from group root) pdbedit -L lists all samba users in tbd smbpasswd user fuer SAMBA anlegen, smbpasswd -a peter od Eine eindeutige Darstellung der DATEI, auf Standardausgabe ausgeben echo 'è' | od -t x1c bluetoothctl bluetooth einrichten, quit zum Verlassen exiftran exiftran -a -p -o MyJpegRotated.jpg MyJpeg.jpg (dreht Bilder gemaess Exif-Info, erneuert Info) rm -r löscht Ordner und Unter-Ordner (incl. Dateien) rmdir löscht leere Ordner stat Status: Größe, Blöcke, Zugriffszeit etc. Zugr.: gelesen, Modif.: Änd.Dateiinhalt, Geänd.: Metadaten (z.B. Dateirechte) dd dd bs=4M if=aaa.iso of=/dev/sdX conv=fdatasync status=progress mp3splt Audio-Dateien schneiden, ohne dass sie neu kodiert werden müssen (s.a. mp3splt-gtk (universe, grafische Oberfläche) ) mp3wrap verlustfreies Zusammenführen von MP3-Dateien ohne erneutes Kodieren (Komprimieren) streamripper MP3- oder OGG/Vorbis-Streams aufnehmen und direkt auf der Festplatte speichern journalctl journalctl -b -S "2012-10-30 18:17:16" (boot messages since this date, -U before this date) journalctl -f -e (follow, go to end) lsattr, chmod, chattr, getfacl, setfacl info coreutils: (fold, fmt, shred, tail, stat, truncate, df, du, cat, sum, wc, chmod, printf, tee, dirname date, nice, kill, sleep etc) fold -s > file-01 Text-Datei an spaces umbrechen, 80 Zeichen max. truncate -s 100M bodhi-install.tgz html2text html2text -width from STDIN to STDOUT, or from f3write test flash card by writing, F3 ist ein einfaches Tool, das die Kapazität und Leistung von SSD's oder Flash-Karten testet, um zu sehen, ob diese den angegebene ! formatiert die Karte ! free Speicherbelegung yt-dlp Einfacher Download eines ARD‑Videos: yt-dlp "URL-aus-der-ARD-Mediathek" ---------------------------------------------------------------------------- https://wiki.ubuntuusers.de/Shell/Befehlsübersicht/ https://wiki.ubuntuusers.de/Shell/Anwendungen/ ---------------------------------------------------------------------------- Wichtige Prgs mit GUI ===================== dconf-editor DConf ist eine einfache Schlüssel-/Wert-Datenbank, die zur Speicherung der Einstellungen von Arbeitsumgebungen entwickelt wurde. Dieses Paket enthält einen grafischen Editor. Info in /proc ============= /proc/self/mounts /proc/self/net/arp /proc/version