C++Guns – RoboBlog

14.12.2010

I used rm to remove a file. How can I get it back now?

Filed under: Allgemein — Tags: — Thomas @ 19:12

It is extremely unlikely that you will be able to recover a file from the filesystem after you have removed it. ... aber man kanns ja doch mal probieren. http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#I-used-rm-to-remove-a-file_002e-How-can-I-get-it-back-now_003f

How do I remove files that start with a dash?

Filed under: Allgemein — Tags: — Thomas @ 19:12

Since the file name begins with a '-' it looks like an option to the command. You need to force it to not look like an option. Put a ./ in front of it. Or give it the full file name path. Or tell the command you are through with options by using the double […]

10.12.2010

C/C++ eine static Variable liegt im Heap

Filed under: Allgemein — Tags: , — Thomas @ 16:12

Eine statische Variable liegt im Heap, statt auf dem Stack. Das erklärt auch, warum das Programm meines Chefs funktionierte, nachdem er vorsorgshalber alle 200 Variablen im Datapool als static deklarierte. Der Stack ist nur einige MB groß (Wie groß genau? Infos suchen!). Fordert man ein entsprechend großes Array an, stürzt das Programm ab. Gefunden im […]

Powered by WordPress