Re: [CentOS] Unable to find the used space

2020-06-30 Thread James Pearson
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

Re: [CentOS] Unable to find the used space

2020-06-29 Thread John Pierce
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

Re: [CentOS] Unable to find the used space

2020-06-29 Thread Michael Hennebry
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

Re: [CentOS] Unable to find the used space

2020-06-29 Thread Peter Kjellström
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

Re: [CentOS] Unable to find the used space

2020-06-29 Thread Pete Biggs
> > # 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

Re: [CentOS] Unable to find the used space

2020-06-29 Thread Anand Buddhdev
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.

[CentOS] Unable to find the used space

2020-06-29 Thread Sachchidanand Upadhyay via CentOS
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