Librenix  
(Show all Scripting articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Scripting: Finding Large Files with biggest.sh

Up
vote
Down

Find the disk hogs on your system...
Biggest.sh searches a given file system and lists the biggest files it finds in size order biggest first displaying up to 500 lines of output. Five hundred lines of output may be a bit much, but biggest comes with a suite of options, one of which (-l) allows you to specify precisely how many lines you want returned. We do exactly that with our monitoring software. When a file system reaches alert level, we have the monitoring program call biggest.sh like this: biggest.sh -l 10 /usr. This returns the ten "biggest" files in /usr.
[Update: 18 April, 2005: A bug fix to biggest.sh is here. -Ed.]
 read more | mail this link | score:7383 | -Ray, April 12, 2005 (Updated: April 18, 2005)
More Sysadmin articles...

Abstract Art Prints by Ray Yeargin

admin headlines

Tutorial: Install a Streaming Audio Server with Icecast 2.3.3 on CentOS 6.3 x86_64 Linux

Tutorial: Redmine with SVN on cPanel/CentOS 5.6

Install Cinnamon 1.6 in Ubuntu 12.04 LTS

Cisco Netflow with Nagios XI

Using The Haraka Mail Server

Building Spice-Gtk-0.7 via Debian Unstable with GObject-introspection enabled

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin