LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "No such file or directory" when using wild card (https://www.linuxquestions.org/questions/linux-newbie-8/no-such-file-or-directory-when-using-wild-card-4175443697/)

OtagoHarbour 01-01-2013 02:20 PM

Quote:

Originally Posted by spiky0011 (Post 4860786)
I take it you are a member of www-data

No. But I am using sudo which should override the permission.

OtagoHarbour 01-01-2013 02:22 PM

No worries. I figured out the answer. It should be

Code:

sudo rm -r Peter/test9
Thanks,
Peter.

spiky0011 01-01-2013 02:23 PM

Have you tried cd into Peter then rmdir, I know it shouldn,t make any difference

---------- Post added 01-01-13 at 08:24 PM ----------

Quote:

Originally Posted by OtagoHarbour (Post 4860801)
No worries. I figured out the answer. It should be

Code:

sudo rm -r Peter/test9
Thanks,
Peter.

Doh

shivaa 01-01-2013 10:18 PM

The problem was use of inorrect option. You were trying -R option with rmdir command, which is wrong, but as I has said, you should have used -R with rm command.
Well, use man pages when confused with any commands.
Code:

man <command>


All times are GMT -5. The time now is 03:54 AM.