User Tools

Site Tools


linux_befehle

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux_befehle [2014/03/10 09:46] – [Gesamtanzahl der Codezeilen] adminlinux_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 104: Line 107:
 ===== Große Dateien finden ===== ===== Große Dateien finden =====
  
-  find / -type f -size +1000M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }' +  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.1394441207.txt.gz · Last modified: 2014/03/10 09:46 by admin