A little bit about my background. I have managed servers but always with the help of whm and cpanel. I have used ssh for basic operations. So this is the first time I am setting everything up on my own. I am running Centos 7.
However for some reason I can’t get the directory listing in the terminal. I tried ls and dir. Those are the two commands I am aware of… so clearly I am missing something obvious… Can someone point me in the right direction?
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!
I created a directory and a php info file.
How did you create the file ? Do you remember the location where you created the file ?
I can’t get the directory listing in the terminal.
Now that you are logged in to the terminal, the current working directory defaults to the home directory for the user.
If you have created the file at say “/home/username/www”, you can use either of the options below
ls /home/username/www
or Navigate to the directory and issue the ls command
cd /home/username/www ls
Hope it helps
Thanks. I figured it out. I was landing in the root directory, and of course the only files I had there were hidden so nothing would show. On my other server I was used to just do a “cd” to go back to home, but on this one I need to add the “/”. As I said… I am new to this…
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.