As yancek says, do not add the leading slash for cd share.
Learn one rule and one shortcut for shell (terminal) navigation and it becomes easy:
First, there are two ways to specify paths: Absolute
paths always begin with the forward slash, '/' and that means they begin at the system root directory. So ls -1 / (ell-ess dash-one
) gives you something like this...
ls -1 /
paths always start at the current working directory and never include the leading slash. You can see the current working directory by using the pwd command (print working directory
... (shows directories)
Next, the shortcut. Assuming you are using the bash shell (probably are), you don't have to type the full path. The shell auto-completion
will do that for you. This is easier and much less error prone when typing long paths.
This works by typing the first couple of characters of the path and hitting the tab key. When you hit the tab key the shell will complete as much of the path as is possible without being ambiguous. On most systems, if there is more than one match to what you typed it will show you a short list of all that match (some configurations require you to hit tab a second time to see the list).
So, you might try something like this...
cd /u <TAB>
(auto-completes to /usr/)
(auto-completes to /usr/share/)
(auto-completes to /usr/share/fonts/)
Very simple - just remember absolute and relative addressing, and use auto-completion
to make it fast and error free!
And personally, I wouldn't worry about any licensing if you own both computers. You are taking nothing from anyone and only using what you already have - it is yours and you need no permission from anyone.