Page 1 of 1

cd ~

Posted: Sat Sep 08, 2018 10:56 am
by MuntyScruntfundle
I'm following some install instructions which ask for a "cd ~".

Reading up in Debian this means move to the users home directory. (Unless I'm misreading)

But it doesn't. So, where does this command put you on the disk?

Thanks.

Re: cd ~

Posted: Sat Sep 08, 2018 11:07 am
by bensimmo
Where has it put you?

For me as user pi
It goes to /home/pi which is just shown as ~

Re: cd ~

Posted: Sat Sep 08, 2018 11:08 am
by DirkS
It does with Raspbian using bash What happens when you use it?

Re: cd ~

Posted: Sat Sep 08, 2018 11:09 am
by LTolledo
yup me tried command .... went home...

Re: cd ~

Posted: Sat Sep 08, 2018 11:10 am
by bensimmo
Use just
pwd

To get your current path.

Re: cd ~

Posted: Sat Sep 08, 2018 11:11 am
by k-pi
The tilde (~) is a short cut for your /home directory, but you can just use cd on its own too.

That pwd = present working directory - useful if you've forgotten where you are, especially if not using a GUI environment.

Re: cd ~

Posted: Sat Sep 08, 2018 11:49 am
by n67
k-pi wrote:
Sat Sep 08, 2018 11:11 am
That pwd = present working directory -
Actually, the 'p' stands for 'print'.