unix question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex79
    Confirmed User
    • Jun 2002
    • 996

    #1

    unix question

    how do i list only files/folders bigger than 10MB?
  • HorseShit
    Too lazy to set a custom title
    • Dec 2004
    • 17513

    #2
    you would have to pipe wc through ls but there is really no point

    ls -alS

    will put the largest ones first which would probably do the trick

    Comment

    • pussyserver - BANNED FOR LIFE
      So Fucking Banned
      • Oct 2005
      • 5133

      #3
      ls -ual

      that is ya answer

      Comment

      • alex79
        Confirmed User
        • Jun 2002
        • 996

        #4
        Originally posted by pussyserver
        ls -ual

        that is ya answer

        is not working

        Comment

        • Superterrorizer
          Confirmed User
          • Sep 2003
          • 509

          #5
          Originally posted by alex79
          how do i list only files/folders bigger than 10MB?
          man find

          Comment

          • the alchemist
            Confirmed User
            • Dec 2004
            • 3271

            #6
            hmmm i'd do:

            du -s -k * | sort -n

            hope that helps.
            264 349 400

            Comment

            • mayon
              Confirmed User
              • Jul 2005
              • 196

              #7
              find / -size =2192k -printf "Size: %kK\tPath: %p\n"
              that will look for 2.2MB file

              find / -size =10240k -printf "Size: %kK\tPath: %p\n"
              that will look for 10MB file

              * that will also show you the location of such file(s).

              pretty cool? now check my sig,

              icq 250976254 | featuring High Def sites that convert!

              Comment

              Working...