LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-26-2005, 07:54 AM   #1
dominant
Member
 
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
Code:
cd -test/
then i receive that

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

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

Alunduil

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

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

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

but cd ./-test did it.
 
  


Reply


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-20-2005 12:38 AM
changing dir for a script Veteq Programming 6 10-14-2004 07:33 PM
Changing home dir path? NonSumPisces Linux - Newbie 4 08-22-2004 05:16 PM
simple bash question -- changing dir towlie Programming 3 05-28-2004 12:55 PM
changing how ASPLinux starts up... sublime7452 Linux - General 0 11-18-2003 04:46 PM


All times are GMT -5. The time now is 06:26 AM.

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