Whenever I try to change the directory to pi, using the command $ cd ~, it displays the error:
bash: $: command not found
Why is this not working?
Whenever I try to change the directory to pi, using the command $ cd ~, it displays the error:
bash: $: command not found
Why is this not working?
The command you need to enter is cd ~
The $ is just a common prompt from the shell that it is awaiting a command, it is not meant to be typed as part of the command.
~is superfluous – Milliways Jul 28 '19 at 09:32