Please help with a simple issue, the sort of thing that's so basic it's never found on forums: how do you designate a directory location?
I thought it was too easy to mess up, but then I ran into a site that said Ubuntu directories with two-word names must have a backslash-space. That didn't work, maybe it's obsolete information. Then I saw that the directories themselves were separated with backslashes. Only when I try it, say with "cd" I get a "No such file or directory error."
Could I have an example of the correct syntax and how it can be used?
For example, let's say you want to cd into your home Downloads directory, into the permissions folder of a file you downloaded. The Full Path would look something like;
It is recommended to use an underscore if you want to add spaces in a directory name. While you may possible be able to use spaces in the name by placing the desired name in quotes, it is not recommended nor may actually work. Should you feel it necessary to use multiple words to name a directory, use the underscore.
characters behind \ are interpreted different from other characters when it comes to Files.
in your case, what you seem to be doing is something like this:
/example/file/with/a space/
# this space will be interpreted as a new argument!
# this means programs will think that "space/" and "/example/file/with/a" are seperate files!
when it should be something like this:
/example/file/with/a\ space/
# or alternatively:
"/example/file/with/a space/"
Thank you everyone. That clears it up. And the ~ is an abbreviation for /home/$USER (and $USER abbreviates my account name?
A related question: in a command like cd is it necessary to give the path to the target from the directory currently occupied, or from the root directory to the target directory?