Pacific-Design.com

    
Home Index

1. Bash

2. Large Files

Bash / Large Files /

List Large Files


$ find . -type f -size +1G

.bashrc function


function large()
{
  clear
  if [ "$1" != "" ]; then
    sudo find . -type f -size +$1k -exec ls -lh {} \; | awk '{ print $5 "\t" $8 }'
  else
    sudo find . -type f -size +1000000k -exec ls -lh {} \; | awk '{ print $5 "\t" $8 }'
  fi
}