df in linux not showing correct free space after file removal

Ads
 

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

Ads









Related Tutorials/Questions & Answers:
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...(); System.out.println("Free space= " + value + " bytes"); } } You can find
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
Advertisements
visualize free disk space
visualize free disk space  hi i want to visualize free disk spaces of machines as a bar chart.thanks.
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
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. Note
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
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.
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 Contest   What is Linux? Linux is a free Operating System, Which was developed by Linus
We are providing Linux CD's for free.
Mandrake Linux Linux! Linux! Linux! The Best Place to get your Free Linux Mandrake 9.1 CD's Get Your Linux CD's Today What is Linux? Linux is a free... GENERAL PUBLIC LICENSE. How to get the Linux? We are providing the free
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
We are providing Linux CD's for free.
Linux 9.0 Linux! Linux! Linux! Get Your Linux CD's Today What is 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
diskfreespace php, Find free disk space from PHP program
will shows how you can find the free disk space from your php program...) gives the free space present on the disk in bytes works same as the function disk_free_space() works in php4 and php5 Code for freediskspace() Function PHP
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
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
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.
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... are providing the free downloadable version of KNOPPIX, which is distributed under GNU
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
Removal of XML header
Removal of XML header  I need to retrieve a few records from the file at a time to generate xml.But each time while retrieving the records from the file, I dont want the XML header to appear again..How do I achieve this?What
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
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
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... These methods provides essential information regarding disk space. In the given
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
How to delete content of a log file from linux terminal?
How to delete content of a log file from linux terminal?  Hi, My production server is on the linux machine. I am trying to debug and find the slow...-queries.log file. Can anyone tell me how to do this? Thanks   Hi, Its
How to run our application after deploying .war file in tomcat6.0
How to run our application after deploying .war file in tomcat6.0  I... created one html file,one servlet file and one web.xml file 2) Then I put all these files in appropriate directories. 3) I created .war file of my web
How to run our application after deploying .war file in tomcat6.0
How to run our application after deploying .war file in tomcat6.0  How to run our application after deploying .war file in tomcat6.0?   Hi Friend, After installing the tomcat, follow these steps: 1)Go to the Control
Roseindia.net Place to Get Cheap Linux cds in India!!
Cheapest latest Linux CDs in India. Free Linux: Linux is free and it can be downloaded from the Internet at free of cost. But it requires a lot of time... reates. Distribution of Latest Linux CDs in India is available at http
We are providing Downloadable Version of Gentoo Linux
Gentoo Linux Now Available Gentoo Linux CD's We are providing the free... Linux uses the enhanced Free BSD port style package system. Gentoo proves... Linux is completely free Linux distribution targeted towards developers and network
What is Linux?
; Linux is a free Unix-type operating system originally developed by Linus...What is Linux?        ... of Unix  designed to be fast, small, and reliable and most importantly free

Ads