LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   command line = how to remove my file2 - 3 - 4 or dir 1 2 3 4 rm will only do some (https://www.linuxquestions.org/questions/linux-newbie-8/command-line-%3D-how-to-remove-my-file2-3-4-or-dir-1-2-3-4-rm-will-only-do-some-4175512649/)

aa8xx 07-29-2014 02:50 PM

command line = how to remove my file2 - 3 - 4 or dir 1 2 3 4 rm will only do some
 
im new to linux and commnad Line says rm will remove dir1 or file1
but i have some that it will not remove. As in Test1 to tom dir
or Unsaved Document 1 . Tehy come up in the ls list but cant remove them .... any help is great . THANKS.!!

szboardstretcher 07-29-2014 03:00 PM

What is the command you are using and what is the output and results?

rknichols 07-29-2014 04:06 PM

A name with embedded spaces will be treated as several separate arguments unless quoted.
Code:

rm "Test1 to tom"
rm "Unsaved Document 1"

You will run into a similar problem with any name that contains characters that are special to the shell (wildcard characters, quotes, various parentheses and brackets, etc.)

aa8xx 08-08-2014 02:11 PM

well i guess i cant remove them lol lol lol ...because they did have upper case , as in Test and Unsaved Document 1 thank any way


All times are GMT -5. The time now is 05:07 PM.