GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Basic UNIX question from a neophyte... Please help. (https://gfy.com/showthread.php?t=75665)

TheFLY 09-06-2002 04:49 AM

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 09-06-2002 04:55 AM

try rm '-p' to remove it ...

ADL Colin 09-06-2002 04:58 AM

Have to do it this way ...

% rm ./-p

ADL Colin 09-06-2002 04:59 AM

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

TheFLY 09-06-2002 05:03 AM

Quote:

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...

ADL Colin 09-06-2002 05:05 AM

:-)

TheFLY 09-06-2002 05:06 AM

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


All times are GMT -7. The time now is 04:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123