LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing Directory (https://www.linuxquestions.org/questions/linux-newbie-8/changing-directory-902905/)

foxy188 09-13-2011 11:52 PM

Changing Directory
 
1 Attachment(s)
Hi All,

Just a quick question. Its kinda of Humiliating.. But I do not know how to change directory. So far, when I ssh root@xxx.xxx.xxx.xxx, I automatically get into a directory called root@www

I am not able to get to another directory that is not listed. :o . Can someone please show me how to get to the main directory where /etc or /var directory is located? My home directory is set to www.

Yes, I am extremely new to Linux. Just out of the plastic wrapper. Enclosed screen capture.

chrism01 09-13-2011 11:58 PM

You need spaces between cmd and options/switches, in all Linux cmds eg
Code:

# go to Linux root dir

cd /

# go to etc
cd /etc

#go to var
cd /var

# go to /var/log
cd /var/log

# go up one level
cd ..

#go to xdir which is immediately under current dir
cd xdir

always a fwd slash; backslash is MS
:)

http://rute.2038bug.com/index.html.gz

{BBI}Nexus{BBI} 09-13-2011 11:58 PM

Quote:

Originally Posted by foxy188 (Post 4471125)
Hi All,

Just a quick question. Its kinda of Humiliating.. But I do not know how to change directory. So far, when I ssh root@xxx.xxx.xxx.xxx, I automatically get into a directory called root@www

I am not able to get to another directory that is not listed. :o . Can someone please show me how to get to the main directory where /etc or /var directory is located? My home directory is set to www.

Yes, I am extremely new to Linux. Just out of the plastic wrapper. Enclosed screen capture.

If you are in www type:
Code:

cd ..
to go back to your var directory. To get to /etc, simply type:
Code:

cd /etc

foxy188 09-14-2011 12:14 AM

Hi All,

Thank you so much... LOL... This is so funny.

Yes, it does work.

Steven


All times are GMT -5. The time now is 12:22 AM.