Peter Kjellström wrote:
As an addition to what others have already said. You'll also miss
things "hidden under mounts". That is, if you had 5G in /var/log on the
root file system and then mounted a different device on /var/log, then
that 5G would still be there but invisible.
What I usually do
On Mon, Jun 29, 2020 at 1:23 PM Michael Hennebry <
henne...@web.cs.ndsu.nodak.edu> wrote:
>
> Though rather unlikely, it is possible that none of /*
> are in the same filesystem as / ,
> hence the need for / rather than /* .
as /dev, /proc, and /sys are mounted on nearly every linux system, and
On Mon, 29 Jun 2020, Pete Biggs wrote:
# du -sh /*
Use 'du -xh --max-depth=1 /' it will clean up your output and show you
only things on the root partition.
Note the reason for -x .
-x is equivalent to --one-file-system .
It says that when searching from a directory,
include only descenda
On Mon, 29 Jun 2020 15:21:12 +0530
Sachchidanand Upadhyay via CentOS wrote:
> Hi,
>
> While checking with df -h, it's showing the used space is 94% on
> root (/). If checked with du -sh, it's not showing the used space.
>
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> devtmpfs 7.8G
>
> # du -sh /*
Use 'du -xh --max-depth=1 /' it will clean up your output and show you
only things on the root partition.
And as someone else said, deleted but open files are not removed until
the file handle is closed. This is used by some applications to "hide"
totally temporary files. Do 'l
Hi Sachchidanand,
On Unix-like operating systems, if a process has a file open, and you
delete the file, it will not be removed from disk immediately. That will
only happen when the process closes the file descriptor, or exits.
People new to Unix-like operating systems often don't know this.
Hi,
While checking with df -h, it's showing the used space is 94% on root (/). If
checked with du -sh, it's not showing the used space.
# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 7.8G 857M 7.0G 11% /run
tmpfs 7.8G 0 7.8G
7 matches
Mail list logo