Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-15-2004, 06:38 PM   #1
LQ Newbie
Registered: May 2004
Distribution: REDHAT 9.0
Posts: 21

Rep: Reputation: 15
How to change directory?

i want to know how to change directory if i have a directory named "bng files", i used cd /bng files but it says no directory found? please help
Old 05-15-2004, 06:56 PM   #2
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
cd Directory
means change directory into (this directory)/Directory (known as a relative directory because its relative to the directory in which you gave the command)

and cd /Directory means change directory to /Directory... as in an absolute directory at the top of the folder tree. (root)
Old 05-15-2004, 06:57 PM   #3
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Try cd /usr and then ls and look could be in src try cd /src then ls and on and on ect.
Old 05-16-2004, 01:10 AM   #4
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
If I'm understanding the problem and it's actually called 'bng files' then you need to escape it (bng\ files) or quote it ("bng files") or tab complete it (bng<tab>). And, like qwijibow said, if it's in the root directory, '/bng files' would work but, since it probably isn't, it needs to be the full path (/foo/bar/bng files) or a relative one - plain 'bng files' if its in your current, '../bng files' if it's across, etc. Because of the space, 'cd bng files' means 'change to the directory called bng' - the shell just ignores what it sees as an extra argument to the cd builtin that would mean 'change to the directory called files'.

You say it says 'no directory found' though, and it shouldn't, so maybe I'm misunderstanding. It should have said 'bash: cd: bng: No such file or directory' which tells you exactly what the problem is.
Old 05-16-2004, 01:16 AM   #5
Registered: Mar 2004
Location: Colorado, US
Distribution: Debian "Sarge"
Posts: 228

Rep: Reputation: 30
of the constant. This also simplifies modifying the program, should the value of pi change.
ROFLMAO !!!!!!!!!!!!!!!!
Old 05-16-2004, 01:20 AM   #6
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled


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
How to change to the config directory brianbritz Linux - General 1 10-20-2005 10:00 PM
How to change directory windefault Linux - Newbie 5 11-02-2004 04:28 AM
cant change directory permission? dwarf007 Linux - General 1 09-24-2004 09:35 AM
script to change directory trout21 Linux - Newbie 9 02-17-2004 12:49 PM
mountig - change ro to rw, delete directory, change rw to ro ?? itsjustme Linux - General 6 10-17-2003 11:48 AM > Forums > Linux Forums > Linux - Newbie

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

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