LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-14-2011, 12:52 AM   #1
foxy188
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Rep: Reputation: Disabled
Changing Directory


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. . 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.
Attached Thumbnails
Click image for larger version

Name:	xdir.jpg
Views:	7
Size:	34.4 KB
ID:	7978  
 
Old 09-14-2011, 12:58 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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
 
Old 09-14-2011, 12:58 AM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by foxy188 View Post
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. . 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
 
Old 09-14-2011, 01:14 AM   #4
foxy188
LQ Newbie
 
Registered: Sep 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi All,

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

Yes, it does work.

Steven
 
  


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 the password of Directory Manager in Redhat Directory Services sudarshan.bisht Linux - Server 2 11-19-2013 05:33 AM
Changing directory noteleks Linux - Newbie 5 03-10-2011 10:51 AM
Changing the home directory kyleinc Linux - General 2 02-27-2005 12:54 AM
Changing the name of the directory I am in fieldmethods Linux - General 4 01-08-2004 05:07 PM
Changing directory pdstatha Programming 1 04-11-2002 08:08 AM


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