I thought I had filename on clipboard when it actually was java code.

I accidentally pasted java code in terminal and trying to figure out what might have happened and if there is any other damage done to my desktop because of special symbols ( <, >, | etc) writing files in unwanted locations.

Essentially my machine froze and mouse pointer changed. My work directory got lot of new files of type "PostScript document text conforming DSC level 3.0, Level 1" This seems to be result of unwanted execution of /usr/bin/import command.

Ctrl-c did not help here at all. After it has executed full java file line by line, it came back to prompt after 5 minutes or so - long time.

I now find this funny, but that was not the case when I had bunch of uncommitted files and machine not responding.

  • This reads more like a "Dear Diary" entry than an actual question.... – WinEunuuchs2Unix Jul 9 at 0:24
  • @WinEunuuchs2Unix, how abut the fact that machine froze - I tried to provide as much relevant information. Ubuntu freezing is pretty rare for me. – user871199 Jul 9 at 0:32
  • 2
    What's your question? Please edit to clarify. You might want to brush up on How to Ask. – wjandrea Jul 9 at 2:01
  • Look at your ~/.bash_history file to see which commands you randomly executed, which files you created with >filename. Do ls -rlt to see recently created files. If the filenames contain spaces or other funny characters, you may use \ to quote, or use "tab completion" (see``man bash): If file with spaces` is in the current directory, rm fil<TAB>` would be replaced with rm file\ with\ spaces, or as much asit can fill in. – waltinator Jul 9 at 2:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.