I'm trying to remove some files from an installation I screwed up. I went to the directory in the terminal, and typed sudo rm PCSX but it tells me it doesn't exist even though I can quite clearly see it. How do I fix this?

  • I can't ls -a because there is too much in the directory and it gets cut off. – kookman98 Feb 25 '14 at 21:04
  • If it is a directory you will want to use sudo rm -r PCSX and terminal is case sensitive. BE VERY CAREFUL WHEN USING sudo rm -r Also as @Oli suggested could be the wrong directory. Although if you are trying to remove the install then maybe try dpkg -r pcsxr – jmunsch Feb 25 '14 at 21:23
  • dpkg -r pcsxr doesn't work as I never fully installed it. – kookman98 Feb 25 '14 at 21:33

If sudo rm PCSX tells you something doesn't exist, it probably doesn't exist in your current working directory. That means you're either...

  • Telling it the wrong filename. You can use ls -al | less to browse the cwd.
  • Or you're in the wrong directory and you should cd into the correct one.
  • I apologize for the sloppiness, I don't have GIMP on my machine. link This is the directory with the file. link This is the terminal. As you can see, I am in the same directory, and it tells me the file doesn't exist. – kookman98 Feb 25 '14 at 21:28
  • @kookman98 Yeah I don't have any files like the nautilus display in /usr/share/app-install/desktop/. It might be interpreting the launchers? Get the proper name with: ls -a /usr/share/app-install/desktop/ | less – Oli Feb 25 '14 at 21:33
  • it says pcsxr:pcsx.desktop – kookman98 Feb 25 '14 at 21:36
  • 1
    And there's your filename. sudo rm /usr/share/app-install/desktop/pcsxr:pcsx.desktop – Oli Feb 25 '14 at 21:39
  • Well that seemed just a tad complicated, but it worked, thanks! – kookman98 Feb 25 '14 at 21:49

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.