Re: cd-ing into a directory called ? (questionmark)



Is it really a question mark, or is ls using that to replace an
unprintable character?

If it is really a question mark, quoting or escaping it will remove
the wildcard properties:

ls -l '?'
cd \?
cd '?'
rm -rf '?'

Thanks Chris and Rikishi. I already got rid of it, but what you say is true. Before posting here I tried escaping it, which didn't work, so I guess it really wasn't a questionmark.
Anyway I removed it now and set the nosuid,noexec,nodev flags on the tmp filesystem to make life of the scriptkiddies a little harder. :)

Peter.
.



Relevant Pages

  • Re: Editing (was Re: Bush depression (was Re: AKICIF: Selling a letter))
    ... David Loewe, Jr. ... editing. ... Notice the question mark in what I said? ... Once again let me point out that quoting too much is just as bad ...
    (rec.arts.sf.fandom)
  • Re: Lumpy is an asswipe
    ... Commas and periods go inside the quotes; ... If a question is in quotation marks, the question mark should be placed ... Do you agree with the saying, "All's fair in love and war"? ... If you're quoting a question, ...
    (alt.marketing.online.ebay)
  • Re: imaplib.IMAP4: Bug in implementation
    ... > You are trying to create a non-existent special character, escaping the ... > I am not quite shure how Python reacts to that. ... But as I said the problem is the quoting of the arguments. ...
    (comp.lang.python)
  • ssh command passing
    ... I'm sure this is something stupid but I'm running the following command ... find: missing argument to `-exec' ... I've tried quoting it, escaping it..What am I doing wrong? ...
    (Debian-User)
  • Re: remote machine execution
    ... machines. ... Try escaping it with a "^". ... or quoting that token. ... Clay Calvert ...
    (microsoft.public.windows.server.scripting)

Loading