LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-13-2011, 11:52 PM   #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:	11
Size:	34.4 KB
ID:	7978  
 
Old 09-13-2011, 11:58 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
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-13-2011, 11:58 PM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
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, 12: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 04:33 AM
Changing directory noteleks Linux - Newbie 5 03-10-2011 09:51 AM
Changing the home directory kyleinc Linux - General 2 02-26-2005 11:54 PM
Changing the name of the directory I am in fieldmethods Linux - General 4 01-08-2004 04:07 PM
Changing directory pdstatha Programming 1 04-11-2002 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 PM.

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
Open Source Consulting | Domain Registration