Basic UNIX question from a neophyte... Please help.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheFLY
    So Fucking Banned
    • Jan 2001
    • 11856

    #1

    Basic UNIX question from a neophyte... Please help.

    I have this file in my directory...


    -rw-r--r-- 1 thefly thefly 573440 May 12 14:15 -p

    The filename is "-p" as far as I can tell -- I don't know how it got there even... I try,

    ls "-p"
    ls ?p
    cat "-p"

    etc. etc.

    I can't figure out how to open the file or delete it or anything... I feel so helpless! Why is it there? LOL

    Please help...
  • boldy
    Macdaddy coder
    • Feb 2002
    • 2806

    #2
    try rm '-p' to remove it ...
    MacDaddy Coder.

    Comment

    • ADL Colin
      Too lazy to set a custom title
      • Feb 2001
      • 11929

      #3
      Have to do it this way ...

      % rm ./-p


      Adult Date Link - $50 PPS starting NOW! -- good and JUICY!

      skype = "adultdatelink"

      Comment

      • ADL Colin
        Too lazy to set a custom title
        • Feb 2001
        • 11929

        #4
        .. because Unix is interpreting the regular - as an option flag.


        Adult Date Link - $50 PPS starting NOW! -- good and JUICY!

        skype = "adultdatelink"

        Comment

        • TheFLY
          So Fucking Banned
          • Jan 2001
          • 11856

          #5
          Originally posted by Colin
          Have to do it this way ...

          % rm ./-p

          Ahhhhh thanks man!!! Yeah I just wanted to look in the file first to see what was in there... This worked...

          cat ./-p |more

          I have a feeling that -p file got created by tar... not sure why tho...

          Comment

          • ADL Colin
            Too lazy to set a custom title
            • Feb 2001
            • 11929

            #6
            :-)


            Adult Date Link - $50 PPS starting NOW! -- good and JUICY!

            skype = "adultdatelink"

            Comment

            • TheFLY
              So Fucking Banned
              • Jan 2001
              • 11856

              #7
              Anyway that's all the work I can handle for one day -- LOL -- I'm taking a nap...

              Comment

              Working...