Berkeley CSUA MOTD:Entry 18243
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2000/5/12 [Computer/SW/OS/FreeBSD, Computer/SW/OS] UID:18243 Activity:high
5/11    How does one rm a file named "????????????"  ?  -joshk
        \_ rm ./? <hit tab>
        \_ You must have strong fu.
        \_ "rm -i \?*" is one of several ways.
                \_ % rm -i \?\?\?\?\?*
                   rm: ?????*: No such file or directory
                   Must resort to inode fu now.
                   \_ of course not. you must practice. there are many ways,
                      but noone can be told. you must learn. -ali
                   \_ It's probably not all question marks; some terminals
                      will replace non-printables and/or 128+ chars with
                      ?'s [default on FreeBSD when outputting to a tty].
                      The simplest way is most likely just going
                      through `rm -i *` and finding the offending file.
                      To make things faster, do `rm -i [^a-zA-Z0-9]*` or
                      something to that extent. -alexf
        \_ What usually works for me when I come across a file with odd
           characters is "rm -i *" and say yes to only the file in question.
           \_ But how many questions must you answer until you answer
              the question for the question file in question?
        \_ note that rm -i will append an extra "?" to the prompts
           so make sure you remove ???????????? and not ???????????
        \_ I know I'll get flack for this, but don't you have a gui interface
           on your OS?  Use it, click on the file, and press DEL.