Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2016 12:46:07 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Murk Fletcher <murk.fletcher@gmail.com>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: What's taking up all my disk space?
Message-ID:  <alpine.BSF.2.20.1601261244210.18683@mail.fig.ol.no>
In-Reply-To: <CAH=3fONyAy6CA8kGHzyWiiFGk-qA5=fdQVLjoE20dk9OY-OkrQ@mail.gmail.com>
References:  <CAH=3fONyAy6CA8kGHzyWiiFGk-qA5=fdQVLjoE20dk9OY-OkrQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 Jan 2016 11:21+0100, Murk Fletcher wrote:

> Maybe there's a way to use `du` to show all files larger than 1GB and then
> pass it on to some other command to sort them by size?

Have a look at sysutils/ncdu for a ncurses-based du utility.

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-questions@freebsd.org  Tue Jan 26 11:47:16 2016
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 085EAA6E670
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Tue, 26 Jan 2016 11:47:16 +0000 (UTC)
 (envelope-from murk.fletcher@gmail.com)
Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com
 [IPv6:2a00:1450:400c:c09::22a])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 94C32820
 for <freebsd-questions@freebsd.org>; Tue, 26 Jan 2016 11:47:15 +0000 (UTC)
 (envelope-from murk.fletcher@gmail.com)
Received: by mail-wm0-x22a.google.com with SMTP id r129so100665398wmr.0
 for <freebsd-questions@freebsd.org>; Tue, 26 Jan 2016 03:47:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type;
 bh=eWzWtumgRIHeUltxTESvLBJLgX7H7nzd+Tfw+/rS+fY=;
 b=A3bo49A0FdUyD2yAtQHHZ8CyqpKFS5quwkIhNAKHSXS3PLis0TavwA3mh2ZVAC2VHk
 nxBeEHA94Pt86qmAwFgIOIUocUbsa55VIJ7D4hAqPvBj7mlBeHF8imCNoXIFtcEwfwOA
 OW5+0wrD9ioUV8aFE/QTvvJ6TT4V4gBlTrulf4ppdPSBZPjzfajNCfMqyir1Va6tsitj
 yf03yytSPh4tPfd9xZpBfv7auiRjvRUEloxKN5AcuwFzenZB0i9F/4E3b+ECBuDh4Pkg
 +dpo5k84p+i3xn/i0MKv6FKK/riBjt5VppKKB2+D1MoTY7V907ifS3XvQnNYFs9Qmz98
 1wGQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to:cc:content-type;
 bh=eWzWtumgRIHeUltxTESvLBJLgX7H7nzd+Tfw+/rS+fY=;
 b=Sc73cRL1C7Jb4qaTpEL+7dw/wV1kDHfIi1Q9W9lwbLgQWX6C9NZ93ECaiEtq2PCltt
 En2y7wn7vgPQjW4eQ3EkPrqCn1+NoRJGHWNWYLQZDtJq3MaxyWbMDnrPLLdfCYzBzNK2
 tePFS43vKeRZpY2AB7Nvc9DWyte2kGW10WksgXde4nofSsq1pIvxemFGeBAi3/U7N3EK
 YnffC/qWIIt4wxuvbumTWe7prZLOF4SMPc0F/CSIouyBg1lRquOl2t5/8E3fw9vjf/xT
 TouSf9LGBfRx37kTzwLx4Bd3rJacTDTQKZkCddm0cJartuIGrz6YMd+oJa11RS4qjGGe
 YPTQ==
X-Gm-Message-State: AG10YOTIl62iQpSVcmsXxPZ5Qoz61+Cz/0NR51BxRyujvInKN601m3wXhmNwpuygcmyixhmt46jUpM8aELCPHQ==
MIME-Version: 1.0
X-Received: by 10.194.103.131 with SMTP id fw3mr26367234wjb.55.1453808834190; 
 Tue, 26 Jan 2016 03:47:14 -0800 (PST)
Received: by 10.194.23.9 with HTTP; Tue, 26 Jan 2016 03:47:14 -0800 (PST)
In-Reply-To: <56A7587C.8070003@qeng-ho.org>
References: <CAH=3fONyAy6CA8kGHzyWiiFGk-qA5=fdQVLjoE20dk9OY-OkrQ@mail.gmail.com>
 <CAA2O=b9qoUshYDbohBryKt5s1ixuSOc-XhT-sJb-Gm5aL506bg@mail.gmail.com>
 <56A7587C.8070003@qeng-ho.org>
Date: Tue, 26 Jan 2016 12:47:14 +0100
Message-ID: <CAH=3fOO19U=kMHYpLPBpQXZE5-7edtR_Sh2Gg5GD2X7ACqQzTA@mail.gmail.com>
Subject: Re: What's taking up all my disk space?
From: Murk Fletcher <murk.fletcher@gmail.com>
To: Arthur Chance <freebsd@qeng-ho.org>
Cc: Anton Sayetsky <vsasjason@gmail.com>,
 FreeBSD Questions <freebsd-questions@freebsd.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.20
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Jan 2016 11:47:16 -0000

> du -sh /* | sort -rh

Now _that_ is a thing of beauty. This one goes straight to my notes.

Cheers!

On Tue, Jan 26, 2016 at 12:29 PM, Arthur Chance <freebsd@qeng-ho.org> wrote=
:

> On 26/01/2016 10:23, Anton Sayetsky wrote:
>
>> 26 =D1=8F=D0=BD=D0=B2. 2016 =D0=B3. 12:21 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=
=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Murk Fletcher" <
>> murk.fletcher@gmail.com>
>> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:
>>
>>>
>>> Hi!
>>>
>>> Woke up to a nasty surprise this morning:
>>>
>>> /: write failed, filesystem is full
>>> # df -h
>>> Filesystem         Size    Used   Avail Capacity  Mounted on
>>> /dev/gpt/rootfs     38G     35G   -7.4M   100%    /
>>> devfs              1.0K    1.0K      0B   100%    /dev
>>> fdescfs            1.0K    1.0K      0B   100%    /dev/fd
>>> linprocfs          4.0K    4.0K      0B   100%    /usr/compat/linux/pro=
c
>>>
>>> I have no idea why this is because I'm only using my FreeBSD VPS to run=
 a
>>> small Rails app in `/usr/home/`:
>>>
>>> # du -sh /usr/home
>>> 8.6G    /usr/home
>>> # du -sh /usr/
>>>   12G    /usr/
>>> # du -sh /
>>>   34G    /
>>>
>>> Maybe there's a way to use `du` to show all files larger than 1GB and
>>> then
>>> pass it on to some other command to sort them by size?
>>>
>> Try "du -sh /*" first.
>>
>
> There aren't so many sub-directories in / that it's difficult to spot the
> largest but
>
> du -sh /* | sort -rh
>
> will order the list from largest to smallest. Very useful (possibly with
> head added to the pipeline) if you've got a lot of subdirectories.
>
> --
> Moore's Law of Mad Science: Every eighteen months, the minimum IQ
> necessary to destroy the world drops by one point.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1601261244210.18683>