Days
Hours
Minutes
Seconds

Super Black Friday Sale!

0
No products in the cart.
  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9663
    blankabctest483
    Member

    If I run in CMD

    dir /od

    I get sorted files by length. But now, do anyone know what is a command to get the 50 largest file?

    Thank you so much for help.

    Branka

    #9664
    blankabctest483
    Member

    This combined command could satisfy you.

    du -a /od | sort -n -r | head -n 50
    

    du

    --all  -a                 (Write size for all files)
    

    sort

    --numeric-sort  -n  (Compare string numerical value)
    --reverse  -r                      (Reverse results)
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.