ctrl-g = Suche beenden
ls -l | grep "^d"
file -i *
Konvertieren mit iconv
tar cfvz [ARCHIV].tar.gz [VERZEICHNIS/DATEI] <[VERZEICHNIS/DATEI]>
tar xfvj [ARCHIV].bz2
tar xfvz [ARCHIV].tgz
unzip [ARCHIV].zip
fdisk -l
mount /dev/sdc1 /mnt/backup
mount -t ntfs-3g /dev/sdc1 /mnt/backup -o force
mount -t vfat /dev/sdc1 /mnt/backup -o uid=1000,gid=1000,utf8,dmask=027,fmask=137
find . -name 'Thumbs.db' -exec shred -f -v -u -z {} \;
find /usr/local/data/daten -name 'Thumbs.db' -exec rm {} \;
dd if=/dev/zero of=/dev/sda bs=16065
wipe -qk /dev/sda
find . -name '*.doc' -type f -mtime -1
Mit Aktion:
find /usr/local/data/daten/xy -name 'Thumbs.db' -exec rm {} \;
find . -name 'Thumbs.db' | xargs rm -f
find /var/data/db -name '*.M??' -exec ln -s {} /var/lib/mysql/newdb/ \;
find /home/music -name '*.flv' -exec mplayer -vc null -vo null -dumpaudio -dumpfile {}.mp3 {} \;
Grosse Dateien:ls -lahS $(find / -type f -size +10000k)
Zählen:
find . -type f | wc -l
mount -t vboxsf -o uid=1000,gid=1000 share /media/sf_share
mount -t cifs /// -o username=benutzer,password="geheim" /media/backup
Sichern eine Partition als Image:
dd if=/dev/root | pv | gzip --best >/media/backup/image.gz
Wiederherstellen einer Partition aus einem Sicherungs-Image:
gunzip -c /media/backup/image.gz | pv | dd of=/dev/root
rsync -r -z -c --progress /var/data/daten /mnt/backup/
du -sch /var
df -hT
du -h --max-depth 1 ./ | sort -h
ln -s /quelle /ziel
useradd -d /home/testuser -m testuser
adduser --disabled-login teamspeak
passwd testuser
smbpasswd -a testuser
netstat -nlp
screen -r
Screen verlassen, Anwendung läuft weiter
Ctrl-a d
Übersicht Befehler:
Ctrl-a c | Create new window (shell) |
Ctrl-a k | Kill the current window |
Ctrl-a w | List all windows (the current window is marked with "*") |
Ctrl-a 0-9 | Go to a window numbered 0-9 |
Ctrl-a n | Go to the next window |
Ctrl-a Ctrl-a | Toggle between the current and previous window |
Ctrl-a [ | Start copy mode |
Ctrl-a ] | Paste copied text |
Ctrl-a ? | Help (display a list of commands) |
Ctrl-a Ctrl-\ | Quit screen |
Ctrl-a D (Shift-d) | Power detach and logout |
Ctrl-a d | Detach but keep shell window open |
dpkg -l | more
youtube-dl -U
MP3 aus Video
youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 --batch-file='/home/irgendwer/youtube-dl.txt'
youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 -ci https://www.youtube.com/watch?list=XXXXXXXXXXXXXXXXXXX
Bestes mp4 Video:youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' url