Visit Jeremy's Blog.
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 07-21-2009, 03:30 AM   #1
Registered: Apr 2009
Posts: 48

Rep: Reputation: 15
change dir

hai all,

i want to list my drupal files on terminal, the folder is at var/www/html.

from terminal how to go there and change to my drupal folder

i tried like

root@localhost ~]# cd var/www/html/drupal
result is bash: cd: var/www/html/drupal: No such file or directory

please tell me how to solve this

Old 07-21-2009, 03:43 AM   #2
LQ Newbie
Registered: Dec 2006
Posts: 13

Rep: Reputation: 3

In linux being root means you are as a root user which has its home directory as /root, and when you login to your root account you reside inside the same directory.
where as when you are referring to your var/www/html means you have to go to filesystem root i.e. "/" directory thus try /var/www/html and you will be able to rech in.

Old 07-21-2009, 04:25 AM   #3
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
You know it is under var/www/html ?

It is rather under:

small typo, big difference

The directory in there may not have the name you think it has.
ls -al /var/www/html
will show what is in there - as well as tell you about potentially insufficient permissions.

or do:
cd /var/www/html
and then:
ls -al

Once you know the name you can cd into there like you did try.


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
Web Root Dir Change and New Dir Added issue in CentOS 5 Ginnyz Linux - Server 2 06-01-2009 08:29 PM
error 500 can not change dir dfw123 Linux - Server 3 04-23-2007 01:58 PM
change dir alaios Linux - General 5 03-15-2004 05:41 AM
Where can I change kernel source dir? LinODE Slackware 1 09-03-2003 12:02 PM
Cannot change dir permissions from root sstudley Linux - General 4 02-25-2003 06:52 PM > Forums > Linux Forums > Linux - Newbie

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