When moving through your file system, if you add the forward slash, then your system will think your path starts from your system root.
For example, say you are in your home directory at: /Users/Morgan.
If you type cd frontend, then this is equivalent to /Users/Morgan/frontend.
cd frontend
If instead you type cd /frontend, then this is equivalent to /frontend.
cd /frontend
Adding the / turns your path into an "absolute path". Without it it is a "relative path".
And with that you just made it absolutely clear. Thanks again!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
When moving through your file system, if you add the forward slash, then your system will think your path starts from your system root.
For example, say you are in your home directory at: /Users/Morgan.
If you type
cd frontend
, then this is equivalent to /Users/Morgan/frontend.If instead you type
cd /frontend
, then this is equivalent to /frontend.Adding the / turns your path into an "absolute path". Without it it is a "relative path".
And with that you just made it absolutely clear. Thanks again!