User Tools

Site Tools


linux_befehle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux_befehle [2013/02/18 17:08] – external edit linux_befehle [2018/10/16 21:19] (current) – [Create md5 hash for each file] admin
Line 1: Line 1:
 ====== Linux Befehle / Programme benutzen ====== ====== Linux Befehle / Programme benutzen ======
  
 +===== Create md5 hash for each file =====
 +
 +  find ./deploy/ -name '*.zip' -type f ! -name \*.md5 | while read hash; do sha256sum $hash | awk '{print $1}' > $hash.md5; done
 ===== grep ===== ===== grep =====
  
Line 101: Line 104:
  
   wc -l `find ./pwm -name ".git" -prune -o -type f`   wc -l `find ./pwm -name ".git" -prune -o -type f`
 +  
 +===== Große Dateien finden =====
 +
 +  find / -type f -size +1000M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'
 +
 +
 +===== APT: Pakete zurückhalten =====
 +
 +Mit **apt-mark** kann man Pakete zurückhalten.
 +
 +**Paket zurückhalten:**
 +
 +  apt-mark hold package1 package2
 +  
 +**Zurückhalten aufheben**
 +
 +  apt-mark unhold package1 package2
 +
 +===== DD Monitor =====
 +
 +  dd if=/dev/zero | pv | dd of=/dev/disk1 bs=10m
 +
 +===== Create empty files with specific size =====
 +
 +Sometimes its useful to have different files with a certain size to test uploading to the web
 +
 +  dd if=/dev/zero of=output.dat  bs=1024  count=10240
 +
 +
linux_befehle.1361203728.txt.gz · Last modified: 2014/03/10 09:46 (external edit)