Today when I was working on a script to generate custom wordlist. So I ran a script and the output was directed to /tmp.
The disk space was around 19 gb. While the script was running, I decided to direct the o/p file to my 1TB drive. So I broke the run using Ctrl + C.
Now when I use df -h, I find only 14 gb free disk space. I have searched for the o/p file everywhere on the disk but it's nowhere to be found. Even the /tmp size has not increased.
Could anyone please suggest how I can identify the lost space and recover it?
We have no idea what you did exactly or what the program does. However consider this.
program A opens a file
program A deletes the file while it is still open
file continues to exist until the last process holding it open exits.
This means that nobody can see or touch or read the file, but it lives on the disk
I am assuming Corona is trying to rule out this scenario. If it is ruled out then the disk space was used by other program(s) or processes.
To rule out the above scenario, reboot your box. If the space is still missing then your program cannot be the problem, since you cannot see the file with ls.