Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-26-2005, 06:54 AM   #1
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
Changing to a Dir that starts with -

there is a dir that has -test for name.

When i try
cd -test/
then i receive that

-bash: cd: -t: invalid option
cd: usage: cd [-L|-P] [dir]
Do you have any idea?
Old 05-26-2005, 06:56 AM   #2
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Try cd "-test" . That should work for you.


[edit] Just remembered you could also cd ./-test . [/edit]

Last edited by alunduil; 05-26-2005 at 06:57 AM.
Old 05-26-2005, 07:05 AM   #3
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
cd "-test" didn;t work

but cd ./-test did it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing default dir of sendmail----- pal Linux - Newbie 0 09-19-2005 11:38 PM
changing dir for a script Veteq Programming 6 10-14-2004 06:33 PM
Changing home dir path? NonSumPisces Linux - Newbie 4 08-22-2004 04:16 PM
simple bash question -- changing dir towlie Programming 3 05-28-2004 11:55 AM
changing how ASPLinux starts up... sublime7452 Linux - General 0 11-18-2003 03:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration