Such difference between the output of du -sh
and df -h
may happen if some large file has been deleted, but is still opened by some process. Check with the command lsof | grep deleted
to see which processes have opened descriptors to deleted files. You can restart the process and the space will be freed.
More Related Contents:
- Facing an error “*** glibc detected *** free(): invalid next size (fast)”
- How to install latest version of git on CentOS 8.x/7.x/6.x
- Exploring Docker container’s file system
- Quickly create a large file on a Linux system
- How to recursively find and list the latest modified files in a directory with subdirectories and times
- How to upgrade glibc from version 2.12 to 2.14 on CentOS?
- Does Linux guarantee the contents of a file is flushed to disc after close()?
- How can I find all of the distinct file extensions in a folder hierarchy?
- why is the output of `du` often so different from `du -b`
- How to redirect HTTPS requests to HTTP without a certificate (Apache VirtualHosts) and avoid a certificate warning
- Run bash script as daemon
- git submodule update failed with ‘fatal: detected dubious ownership in repository at’
- Permissions Issue with Laravel on CentOS
- How do I send a file as an email attachment using Linux command line?
- What does the number in parentheses shown after Unix command names in manpages mean?
- Docker can’t connect to docker daemon
- Adding a new entry to the PATH variable in ZSH
- How do I get the total CPU usage of an application from /proc/pid/stat?
- How can I determine whether a specific file is open in Windows? [closed]
- Use of floating point in the Linux kernel
- Error when using Git credential helper with gnome-keyring as Sudo
- How do I change permissions for a folder and its subfolders/files?
- Command to get time in milliseconds
- How to continuously monitor the directory using dnotify /inotify command
- The Concept of ‘Hold space’ and ‘Pattern space’ in sed
- How can I trim white space from a variable in awk?
- ARM inline asm: exit system call with value read from memory
- Counter increment in Bash loop not working
- Start script after another one (already running) finishes
- Problem with Bash output redirection [duplicate]