LinuxQuestions.org
Register a domain and help support LQ
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 11-25-2011, 11:17 PM   #1
SANA4SPA
LQ Newbie
 
Registered: Jul 2011
Posts: 20

Rep: Reputation: Disabled
Angry Can't Change Directories


What am I doing wrong here.

[root@SANA4SPA ~]# dir

anaconda-ks.cfg Downloads Music Public Videos
Desktop install.log newscript Templates
Documents install.log.syslog Pictures test1

[root@SANA4SPA ~]# cd /Downloads
bash: cd: /Downloads: No such file or directory
[root@SANA4SPA ~]#
 
Old 11-25-2011, 11:24 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
the / in front of Downloads is incorrect..

cd Downloads would be the appropriate command.

Currently you are telling it to change into the Downloads folder in the root of the drive (/Downloads) rather than the Downloads subdirectory that is in the root directory. (/root/Downloads)
 
Old 11-25-2011, 11:48 PM   #3
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 872

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by SANA4SPA View Post
What am I doing wrong here.

[root@SANA4SPA ~]# dir

anaconda-ks.cfg Downloads Music Public Videos
Desktop install.log newscript Templates
Documents install.log.syslog Pictures test1

[root@SANA4SPA ~]# cd /Downloads
bash: cd: /Downloads: No such file or directory
[root@SANA4SPA ~]#
/ root directory (not to be confused with /root)
Examples

$dir /
its going to list /bin /usr /sbin etc. As you see 'Downloads doesn't exist. when you issue just

$dir
you get the directory listing of the current directory.
 
  


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
Need to change permissions on directories lyoumans Linux - Newbie 3 11-01-2009 04:41 AM
How do I change the color of directories? Echo Kilo Linux - Newbie 5 12-28-2007 01:40 AM
All I get is > when I change directories? Plz help me LizardLappy Linux - Newbie 5 12-15-2005 12:54 AM
chmod to only change directories lluciano Linux - General 2 08-17-2005 03:14 PM
How to change directories in DOS zWaR General 17 11-09-2004 11:29 AM


All times are GMT -5. The time now is 04:35 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