Question

How to see all folders in SSH/Ubuntu

  • Posted on December 18, 2014
  • Dani7Asked by Dani7

Hello,

I am installing a WordPress website and I already installed Ubuntu with Nginx, PHP, MySql and WordPress in the /var/www/html folder, but now I can’t seem to access the folder anymore. I know its there because WordPress loads just fine in Chrome, but when I enter ls -la in the SSH console I can’t see the var/www/… location. It must be some kind of permission issue but I cant figure it out. Can I get some help?

Here is a screenshot http://www.evernote.com/shard/s264/sh/1513f498-bf44-43fc-916e-8e2f1f5e44d7/04ea17559655993cacb11e8ec3462094


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Looking at your screenshot it appears that you had made it to the correct location but immediately changed back to your home directory. The command:

cd ~

will switch you back to your home directory. For the user root this is /root

You can change to your /var/www/html directory with the command:

cd /var/www/html

you should then be able to use the following to view your files

ls -lh