Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Dec 2018 10:09:27 +0000
From:      Norman Gray <norman.gray@glasgow.ac.uk>
To:        Paul Schmehl <pschmehl_lists@tx.rr.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Files in /
Message-ID:  <FADEF472-E4FC-4C41-9572-940A6DC3DA4C@glasgow.ac.uk>
In-Reply-To: <66B63BE11669F00AA754FE87@Pauls-MacBook-Pro.local>
References:  <66B63BE11669F00AA754FE87@Pauls-MacBook-Pro.local>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

Paul, hello.

On 4 Dec 2018, at 6:37, Paul Schmehl wrote:

> When I use ls -lsah /root, I get a completely different list of files.
>
> But neither of these utilities show 627M used in root. Why can't I see 
> what's using all this space in root? Am I using the wrong utilities to 
> view the files? Is it something else?

The confusion may arise from an incomplete understanding of the term 
'the root filesystem'.

That term refers to the filesystem starting at '/' (or, more precisely, 
the on-disk structure which is mounted at the root directory '/').  
That's distinct from '/root', which is merely a directory which is the 
home directory of the user called 'root', which lives under '/'.  
There's no real connection between these two uses of the word 'root', 
but now you come to mention it, I can see where confusion is possible.

As Michael says, there's other stuff in the root directory '/':

% ls -F /
COPYRIGHT	etc/		mnt/		root/		var/
bin/		home/		net/		sbin/		zroot/
boot/		lib/		pool/		sys@
dev/		libexec/	proc/		tmp/
entropy		media/		rescue/		usr/

There is more detail in 
<https://www.freebsd.org/doc/handbook/dirstructure.html>, and the 'Disk 
Organization' chapter it links to.

Best wishes,

Norman


-- 
Norman Gray  :  https://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?FADEF472-E4FC-4C41-9572-940A6DC3DA4C>