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
Next revisionBoth sides next revision
linux:commands [2020/01/21 18:12] – [Misc] tmadelinux:commands [2020/04/01 10:22] – [Misc] tmade
Line 33: Line 33:
   date +'%H%M%S%N'                   #Get date for a timestamp (e.g."104304330764740") with milliseconds at the end   date +'%H%M%S%N'                   #Get date for a timestamp (e.g."104304330764740") with milliseconds at the end
   du -a / | sort -n -r | head -n 30  #Find 30 biggest files in /   du -a / | sort -n -r | head -n 30  #Find 30 biggest files in /
-  du -mx / | sort -rn -k1 | head     #Stay on filesystem for mount "/"+  du -mx / | sort -rn -k1 | head                                                                                 #Stay on filesystem for mount "/" and show usage sorted by size   
 +  find -P /  -mindepth 1 -maxdepth 1 ! -fstype nfs  ! -type l | xargs  du -xsm |  awk '{print $1"\t"$2 ;s+=$1} END {print "SUM:\t"s}'                                      
 +  for i in /var/*; do echo $i; find $i |wc -l; done                                                              #count i-nodes in "/var"
   du -h  $(ls) > /root/size                                                                                      #Pipe each file in actual folder + cumulated filesize into file "size"   du -h  $(ls) > /root/size                                                                                      #Pipe each file in actual folder + cumulated filesize into file "size"
   du -h | sort -n > filesize                                                                                     #Pipe filesize incremental sorted into file "filesize"   du -h | sort -n > filesize                                                                                     #Pipe filesize incremental sorted into file "filesize"
linux/commands.txt · Last modified: 2024/01/31 14:02 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki