0

When I'm executing cd/user/share/nginx/html, I get No such file or directory.

2
  • are u sure that is user or usr – Shubham Batra Oct 27 '15 at 7:33
  • Are you trying to cd to /user/share/nginx/html? The command should look like cd /user/share/nginx/html, not cd/user/share/nginx/html; you need a space after cd as it is the command. As you have the command in your question, the terminal is attempting to open the file html under ./cd/user/share/nginx/, which obviously doesn't exist. – TheWanderer Oct 27 '15 at 22:43
2

You've missed a space between cd and the path, and it's /usr/ not /user/

cd /usr/share/nginx/html
2
  • 1
    This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – Pilot6 Oct 27 '15 at 8:27
  • @Pilot6 I don't understand, there not being a space in the command is a perfectly valid thing to point out. It should also mention the typo in usr... But it's not not-an-answer. – Oli Nov 20 '15 at 9:20
1

By default, nginx is installed at /usr/share/nginx/html enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.