From owner-freebsd-questions@freebsd.org Tue Jan 26 11:46:19 2016 Return-Path: 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 ACD52A6E5C8 for ; Tue, 26 Jan 2016 11:46:19 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C0D2759 for ; Tue, 26 Jan 2016 11:46:18 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id u0QBk8UK061907 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 26 Jan 2016 12:46:08 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id u0QBk79C061904; Tue, 26 Jan 2016 12:46:08 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 26 Jan 2016 12:46:07 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Murk Fletcher cc: User Questions Subject: Re: What's taking up all my disk space? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2016 11:46:19 -0000 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: 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 ; 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 ; 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 ; 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: <56A7587C.8070003@qeng-ho.org> Date: Tue, 26 Jan 2016 12:47:14 +0100 Message-ID: Subject: Re: What's taking up all my disk space? From: Murk Fletcher To: Arthur Chance Cc: Anton Sayetsky , FreeBSD Questions 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 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. >