|
||||||
| Linux General Any questions that are not covered by other forums go here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I needed to do this earlier and just learned so I thought I would share:
# du -ha /var | sort -n -r | head -n 10 -a : Include all files, not just directories (du command) -h : Human readable format, display data in 1K, 2G (du command) -n : Numeric sort (sort command) -r : Reverse the result of comparisons (sort command) -n 10 : Display 10 largest file. If you want 20 largest file replace 10 with 20. (head command) |
| Sponsored Links |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ell Ubuntu to Fix File System Errors Automatically at Boot | Onur | Linux General | 0 | 08-27-2007 02:12 AM |
| tar entire directory | Prog | Linux General | 3 | 07-20-2007 06:37 PM |
| Directory index forbidden by rule | Wanch | Linux Networking | 1 | 06-22-2007 11:23 PM |
| Move an entire directory | C3P0 | Linux General | 1 | 03-22-2007 05:55 PM |