Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am beginner for SSH stuff but i want to dump a big sql file and for that i need to be able to navigate to the appropriate path in my hosting account. I managed to login to SSH and i typed pwdbut it gave me a shared hosting pathway like /home/content/r/o/s/roshanjonah

How Can i go to the path where i upload my files to...i use FTP but in FTP path it just shows / so i cannot go any further back than using SSH how can i come to this path in ftp...



share|improve this question

migrated from May 7 '10 at 3:14

This question came from our site for professional and enthusiast programmers.

Try using scp, perhaps. – WhirlWind May 7 '10 at 2:10
This isn't a programming question, is it? I think you're going to get nicer answer than mine on – WilhelmTell of Purple-Magenta May 7 '10 at 2:12

Your FTP connection and your SSH connection are completely different. Depending on how the FTP is configured, you may or may not land in the same place as your FTP. Try uploading a file via FTP and see if you see it in the same directory as your SSH connection lands you in. If not, can you list the directory? See if you can navigate around on SSH and find those files you see in your FTP session.

Otherwise, it wouldn't hurt to just ask your hosting provider and/or read the FAQ.

share|improve this answer
+1, Ask your hosting provider, it's probably in the FAQ too. Also, the ftp / is probably your home directory /home/content/r/o/s/roshanjonah too. – Chris S May 7 '10 at 3:49

FTP's root is not the actual root directory of the system, but one that is designated as that root. SSH's root directory, by default is the actual root. For instance, on a web host that I use my home direcotry is /home/username, but my FTP's root directory is /home/username/public_ftp.

There is a very good chance that your FTP root is under your home directory someplace an you could use the find command to find it. Upload a file with a unique name and use "find /home/yourusername -name uniquefilename.txt" and see what you find. If you don't find it there, all of the FTP data may be some other place. You can ask your hosting provider if you get stuck.

share|improve this answer
+1. And a general point: if it is not under your home directory, it should still be one that has rwx access for you. You can find these directories using find as well. – Charles Stewart May 7 '10 at 12:30

Try using the ls command (assuming this is anot a windows server). You will likely see htdocs or www or the name of your domain you can then use athe cd command like this to enter that directory, like this cd domainname.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.