df in linux not showing correct free space after file removal

df in linux not showing correct free space after file removal

Hi,

I have deleted a big file in linux but df is not showing correct free space after file deletion. Even I can find the file with locate command but ls command is not showing the file.

How to resove this issue?

df in linux not showing correct free space after file removal, what can be the reason and the solution to get my space back?

Thanks

View Answers

March 12, 2019 at 12:07 AM

Hi,

In most the cases this error comes when you delete a file but the process which is using the file is running. So the solution is to kill or restart the process which is using the file.

To view the deleted file being used by process you can run following command:

lsof +L1

Above command will list the process with deleted (unlink) file.

An then you should stop the process to recover your space.

Thanks


March 12, 2019 at 12:08 AM

Hi,

You can also use the following command:

lsof | grep 'deleted'

to find the list of deleted files.

Thanks









Related Tutorials/Questions & Answers:
df in linux not showing correct free space after file removal
df in linux not showing correct free space after file removal  Hi, I have deleted a big file in linux but df is not showing correct free space after... is not showing the file. How to resove this issue? df in linux not showing correct
Java file get free space
Java file get free space In this section, you will learn how to find the free space of any file or directory. Description of code: JDK 1.6 provides few new... value = file.getFreeSpace(); System.out.println("Free space= " + value + " bytes
Advertisements
Free Java Is it correct?
Free Java Is it correct?  Hi, Is Java free? If yes then where I can download? Thanks   Hi, You can download it from http://www.oracle.com/technetwork/java/javase/downloads/index.html Thanks
ModuleNotFoundError: No module named 'odoo11-addon-delivery-free-fee-removal'
-delivery-free-fee-removal After the installation of odoo11-addon-delivery-free...ModuleNotFoundError: No module named 'odoo11-addon-delivery-free-fee-removal...: ModuleNotFoundError: No module named 'odoo11-addon-delivery-free-fee-removal' How
ModuleNotFoundError: No module named 'odoo11-addon-delivery-free-fee-removal'
-delivery-free-fee-removal After the installation of odoo11-addon-delivery-free...ModuleNotFoundError: No module named 'odoo11-addon-delivery-free-fee-removal...: ModuleNotFoundError: No module named 'odoo11-addon-delivery-free-fee-removal' How
ModuleNotFoundError: No module named 'odoo11-addon-delivery-free-fee-removal'
-delivery-free-fee-removal After the installation of odoo11-addon-delivery-free...ModuleNotFoundError: No module named 'odoo11-addon-delivery-free-fee-removal...: ModuleNotFoundError: No module named 'odoo11-addon-delivery-free-fee-removal' How
ModuleNotFoundError: No module named 'odoo12-addon-delivery-free-fee-removal'
-delivery-free-fee-removal After the installation of odoo12-addon-delivery-free...ModuleNotFoundError: No module named 'odoo12-addon-delivery-free-fee-removal...: ModuleNotFoundError: No module named 'odoo12-addon-delivery-free-fee-removal' How
visualize free disk space
visualize free disk space  hi i want to visualize free disk spaces of machines as a bar chart.thanks.
Java Get Free Space
Java Get Free Space       In this section, you will study how to obtain available free space in the specified file. In the given example, we have provided the path
Display free disk space
Description: This example will demonstrate how to get the free disk space... in java.io.File. This method get the free disk space in the bytes. Code... upon number of drive you have and the free space available. ADS_TO_REPLACE_1
PHP find free space, php disk_free_space, disk_free_space
The example Shows of disk_free_space() function in php Program. In this section you will find the example code of disk_free_space() function. The disk_free_space() function in PHP is used to find the Hard Disk's free space from
stop word removal from text file
stop word removal from text file  i need java source code for stop word removal from a text file
eliminate the extra space after a </form> tag
eliminate the extra space after a tag  How can I eliminate the extra space after a tag
there extra space before or after my table.
there extra space before or after my table.  Why is there extra space before or after my table
We are providing Linux CD's for free.
Mandrake Linux Linux! Linux! Linux! The Best Place to get your Free Linux... Linux is a free Operating System, Which was developed by Linus Trovalds to provide free, open source Unix-like OS. The code for Linux is freely available
We are providing Linux CD's for free.
Linux! Linux! Linux! The Best Place to get your Free Linux CD's Get Your Linux CD's Today Result of 14-Jan-2003 Red Hat 8.0 Free CD ContestADS_TO_REPLACE_1   What is Linux? Linux is a free Operating System, Which
We are providing Linux CD's for free.
Linux 9.0 Linux! Linux! Linux! Get Your Linux CD's Today What is Linux?ADS_TO_REPLACE_1 Linux is a free Operating System, Which was developed by Linus Trovalds to provide free, open source Unix-like OS. The code for Linux is freely
Free Linux Distribution in India
Free Linux Distribution in India... premium place to get Free Linux CDs in India... community in getting the Linux CDs. We are providing Free Linux CDs
diskfreespace php, Find free disk space from PHP program
will shows how you can find the free disk space from your php program...(directory_path) gives the free space present on the disk in bytesADS_TO_REPLACE_2 works same as the function disk_free_space() works in php4 and php5 Code
unzip file in LInux
unzip file in LInux  Hi, I am working on a Linux project and we have to extract large number of zip files. I don't have the desktop access... to unzip a zip file into a directory. How I can do this? Thanks
unzip file in LInux
unzip file in LInux  Hi, I am working on a Linux project and we have to extract large number of zip files. I don't have the desktop access... to unzip a zip file into a directory. How I can do this? Thanks
How to insert new line after every space in java
How to insert new line after every space in java  Hii Sir, I have a string with values 69 17 17 16 2 1 1 26 26 56 like this .Now as per my need i have to put all these values into new lines on getting space
Deploying website war file on linux
Deploying website war file on linux  I have BOLLYWOOD_MIRROR.war file.I want to host it on linux server on path. After deployment of war file its... guidance of hosting war file on linux Thank you
We are providing Linux CD's for free.
Mandrake 9.2 Linux Now Available Linux Mandrake 9.2 CD's We are providing the free downloadable version of Mandrake Linux 9.2, which is distributed under... and Handling) charges. The major components are included in Mandrake Linux 9.2
We are providing Linux CD's for free.
Linux CDs - All Linux Distribution in India Distribution of Latest Linux CDs in India is available here. We have a wide selection of Linux CD's... of Linux at cheapest rate. You can buy these Linux CDs in India at very cheapest
We are providing Linux CD's for free.
Linux CDs - All Linux Distribution in India Distribution of Latest Linux CDs in India is available here. We have a wide selection of Linux CD's... of Linux at cheapest rate. You can buy these Linux CDs in India at very cheapest
We are providing Linux CD's for free.
Knoppix Linux CD's Now Available Linux Knoppix 3.3 CD's What is KNOPPIX? KNOPPIX is a bootable Linux CD with a collection of various GNU/Linux software... CD's? We are providing the free downloadable version of KNOPPIX, which
what is etc profile file in Linux
what is etc profile file in Linux  Hi, I want to know more about the /etc/profile file in Linux. What is the use of /etc/profile file? Thanks   Hi, The profile file: /etc/profile Is very import file in Linux
Probblems with printing if my innput of text file is correct..
Probblems with printing if my innput of text file is correct..  I am trying to make sure this block of code does what I think it will do. Can someone show me with some code how I can print out what is is labled with <----print
how to check the size of a tar file in linux
how to check the size of a tar file in linux  Hi, I want to check the size of tar file in Linux. How to check the size of a tar file in linux? What Linux command I should use to check the size of a tar file? Thanks
After changing url params d req checkboxes are not showing as clicked in jsf programming - Java Server Faces Questions
After changing url params d req checkboxes are not showing as clicked in jsf programming  Hi, Here i have Library.java file (collected from Jboss richfaces) There is having a list of artist . If u click on a particular
ModuleNotFoundError: No module named 'dF'
After the installation of dF python library, ModuleNotFoundError...ModuleNotFoundError: No module named 'dF'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'dF
ModuleNotFoundError: No module named 'dF'
After the installation of dF python library, ModuleNotFoundError...ModuleNotFoundError: No module named 'dF'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'dF
How to extract a zip file to a folder in Linux?
How to extract a zip file to a folder in Linux? Step by step command... to use the unzip tool to zip a file. Related Linux tutorials... Create tar.gz file in Linux command line Linux Vs. Windows
How do I compress a tar file in Linux
How do I compress a tar file in Linux  Hi, I want to create the tar.gz file file of a directory in Linux. My directory contains many sub directories... for creating tar of directory and all the contents inside it. the created tar file should
How do I compress a tar file in Linux
How do I compress a tar file in Linux  Hi, I want to create the tar.gz file file of a directory in Linux. My directory contains many sub directories... for creating tar of directory and all the contents inside it. the created tar file should
How do I compress a tar file in Linux
How do I compress a tar file in Linux  Hi, I want to create the tar.gz file file of a directory in Linux. My directory contains many sub directories... for creating tar of directory and all the contents inside it. the created tar file should
Free Web Hosting
and then compare these free web space providers. Here is the list of Free Web Hosting... Support.     http://www.topcities.com/ We offer free space... and receive free space and tools for you to build your own web site. What you
Produces XML file but format not correct for storing data using JSP and XML
Produces XML file but format not correct for storing data using JSP... entered by user in XML file ,It stores data entered in XML file... is entered in XML file. XML file created : <?xml version = '1.0' encoding
Java file get total space
Java file get total space In this section, you will learn how to get the total space of disc. Description of code: JDK 1.6 provides few new methods... In the given example, we have created an instance of a File to represent
ModuleNotFoundError: No module named 'atlas-df'
command: pip install atlas-df After the installation of atlas-df python...ModuleNotFoundError: No module named 'atlas-df'  Hi, My Python... 'atlas-df' How to remove the ModuleNotFoundError: No module named 'atlas-df
ModuleNotFoundError: No module named 'conll_df'
command: pip install conll_df After the installation of conll_df python...ModuleNotFoundError: No module named 'conll_df'  Hi, My Python... 'conll_df' How to remove the ModuleNotFoundError: No module named 'conll_df
ModuleNotFoundError: No module named 'htmltable-df'
with following command: pip install htmltable-df After the installation...ModuleNotFoundError: No module named 'htmltable-df'  Hi, My Python... 'htmltable-df' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'las-to-df'
command: pip install las-to-df After the installation of las-to-df...ModuleNotFoundError: No module named 'las-to-df'  Hi, My Python... 'las-to-df' How to remove the ModuleNotFoundError: No module named 'las
ModuleNotFoundError: No module named 'regionprops-to-df'
After the installation of regionprops-to-df python library, ModuleNotFoundError...ModuleNotFoundError: No module named 'regionprops-to-df'  Hi, My... named 'regionprops-to-df' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'squad-df'
command: pip install squad-df After the installation of squad-df python...ModuleNotFoundError: No module named 'squad-df'  Hi, My Python... 'squad-df' How to remove the ModuleNotFoundError: No module named 'squad-df
ModuleNotFoundError: No module named 'atlas-df'
command: pip install atlas-df After the installation of atlas-df python...ModuleNotFoundError: No module named 'atlas-df'  Hi, My Python... 'atlas-df' How to remove the ModuleNotFoundError: No module named 'atlas-df
ModuleNotFoundError: No module named 'conll_df'
command: pip install conll_df After the installation of conll_df python...ModuleNotFoundError: No module named 'conll_df'  Hi, My Python... 'conll_df' How to remove the ModuleNotFoundError: No module named 'conll_df
ModuleNotFoundError: No module named 'demyst-df'
command: pip install demyst-df After the installation of demyst-df...ModuleNotFoundError: No module named 'demyst-df'  Hi, My Python... 'demyst-df' How to remove the ModuleNotFoundError: No module named 'demyst
ModuleNotFoundError: No module named 'df-explorer'
with following command: pip install df-explorer After the installation of df...ModuleNotFoundError: No module named 'df-explorer'  Hi, My Python... 'df-explorer' How to remove the ModuleNotFoundError: No module named 'df

Ads