Handling directories in the terminal
if I open a terminal, this is what I see:
jacob@jacob-System-Product-Name:~$
The terminal initiates from a directory, which you don't see in the prompt. In most cases it is the current user's home directory. This home directory is part of a bigger tree that starts in /
(the "root" directory). to see what is the current directory, type in the terminal:
~$ pwd
my result is:
/home/jacob
Only if I cd to another directory which is directly below the current directory (a subfolder), I do not need to include the current directory:
~$ cd Downloads
works:
~/Downloads$ (which is in fact: /home/jacob/Downloads)
However, in any other case I need to use the full path. for example when I want to cd ("sideways") from the Downloads folder to the Dropbox folder :
~/Downloads$ cd Dropbox
bash: cd: Dropbox: Bestand of map bestaat niet (saying it does not exist)
But when I use the full path
~/Downloads$ cd /home/jacob/Dropbox
~/Dropbox$
It works.
The easy way to work with files and directories
To easily cd to another directory, simply open a terminal window, type cd
and drag the directory from a nautilus window's bar over the terminal window:

gives you:

Similarly, you can drag a file over the terminal window to include its full path (gnome-terminal).
Using the tilde (~
)
Another way to reduce the amount of "typing work" is to use the tilde instead of typing out your home directory. An example:
instead of:
/home/jacob/Downloads/somefile
I can use:
~/Downloads/somefile
.tar.gz
files? – Jacob Vlijm Sep 06 '14 at 09:02<$>
on your editing toolbar) to format it as code so it's readable). This should better clarify what commands you're running and what's happening as a result. – Eliah Kagan Sep 06 '14 at 11:45