Date: Tue, 26 Jan 2016 12:36:30 +0100 From: Polytropon <freebsd@edvax.de> To: Arthur Chance <freebsd@qeng-ho.org> Cc: Murk Fletcher <murk.fletcher@gmail.com>, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: What's taking up all my disk space? Message-ID: <20160126123630.13113f67.freebsd@edvax.de> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 Jan 2016 11:29:00 +0000, Arthur Chance wrote: > On 26/01/2016 10:23, Anton Sayetsky wrote: > > 26 янв. 2016 г. 12:21 пользователь "Murk Fletcher" <murk.fletcher@gmail.com> > > написал: > >> > >> 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/proc > >> > >> 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. And in case you want a more detailed list: # ls -laFG -D "%Y-%m-%d %H:%M:%S" / | sort -r -g +4 | less The largest files will be on top. Use /var or /tmp instead of / when you want to have a listing for a specific subtree. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160126123630.13113f67.freebsd>