Skip to main content

Thread: How would you recover a hidden file?


or recover lost space matter!

i'm reading article in attempt educate myself how linux works files (primarily trying figure out difference between hard links , soft links, know full well).

http://linuxgazette.net/105/pitcher.html

part has me stumped:
by way, count reflects how many times file has been opened without being closed (in other words, how many references file still active). has ramifications aren't obvious @ first: can delete file no "filename" part points inode, without releasing space data part of file, because file still open.
now, 'lose' file way, how free space data resides? reboot machine?

also, have pertinent code example:
code:
     {          file *fp;            fp = fopen("some.hidden.file","w");          unlink("some.hidden.file"); /* deletes filename part */            /* some.hidden.file no longer has filename , truely hidden */          fprintf(fp,"this data won't found\n"); /* access data part */          /*etc*/          fclose(fp); /* release data part */       }
say program exits before chance fclose file programmatically, happens file? stream closed instant program exits or linger somewhere hidden? , if it's 'hidden', there way find file again?

article blew mind, love have answers.



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [other] How would you recover a hidden file?


Ubuntu

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?