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:
now, 'lose' file way, how free space data resides? reboot machine?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.
also, have pertinent code example:
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?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 */ }
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
Post a Comment