Nп/п : 67 из 92
От : Bob Latham 2:5075/128 28 июл 23 07:52:24
К : Theo 28 июл 23 09:57:18
Тема : Re: Nettle can`t SSH into RaspPi
----------------------------------------------------------------------------------
@MSGID: <5acaed1e78bob@sick-of-spam.invalid>
2e362c4a
@REPLY: vzlmz@news.chiark.greenend.org.uk>
ce43da78
@REPLYADDR Bob Latham <bob@sick-of-spam.invalid>
@REPLYTO 2:5075/128 Bob Latham
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<5acaed1e78bob@sick-of-spam.invalid>
@RFC-References: <5ac99d449fbob@sick-of-spam.invalid>
<2bb1bfc95a.BrianNews@brianhowlett.me.uk> LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid>
e6kmz@news.chiark.greenend.org.uk> <5acaae0566bob@sick-of-spam.invalid>
vzlmz@news.chiark.greenend.org.uk>
@TZUTC: 0100
@PID: NewsHound/v1.53-32 RC1
@TID: FIDOGATE-5.12-ge4e8b94
In article
vzlmz@news.chiark.greenend.org.uk>,
Theo <theom+news@chiark.greenend.org.uk> wrote:
> Bob Latham <bob@sick-of-spam.invalid> wrote:
[Snip]
> > One slight oddity though which is probably going to show my
> > ignorance more than anything else.
> >
> > When you log in, is shows the usual default..
> > pi@name:~$
> >
> > But it became clear very quickly that in fact it was at..
> > pi@name:~/home/pi~$
> ~ is a shortcut for your home directory, eg /home/pi if you are the
> `pi` user (the default on Pi OS)
> ~bob is a shortcut for the home directory of user bob, eg /home/bob
Yes, I see thanks.
> As an aside, the same goes for URLs, eg in:
> https://www.chiark.greenend.org.uk/~theom/ephemeral/Nettle_0-2050b-1_arm.zip
> ~theom is the (web) home directory for user `theom`.
> > I don`t think it`s possible to get above that into the root and
> > then into boot or etc.
> You can cd to change directory, ie:
> cd /etc
> As druck says, some places you can`t cd as a normal user, you need
> to use `sudo`. Or you can cd but you can`t edit any files.
Building pi music players for some years I have of course used cd ...
but never before noticed any difficulty with it. Perhaps I didn`t
need to go to protected files or directories.
> > Why would it do that, putty.exe doesn`t?
> Maybe Putty is doing a cd command for you? I`m not sure why you
> would land in a different place otherwise.
I think I know why I incorrectly thought it was different to
Putty.exe as I explained in a reply to Dave last night.
I write notes on how to do things and then use those notes in the
same way each time. Doing that hid the truth from me.
> One other thing to note is the `pi@name:~$` is called your shell
> prompt, and you can change it via an environment variable PS1:
> https://wiki.archlinux.org/title/Bash/Prompt_customization
> For example, I can type: PS1="\\$(date) \\$(pwd) : "
> and now the prompt looks like this, with the time and current
> directory shown in full:
> Thu 27 Jul 21:48:35 BST 2023 /home/pi :
> Thu 27 Jul 21:49:00 BST 2023 /home/pi :
> Thu 27 Jul 21:49:01 BST 2023 /home/pi : cd /
> Thu 27 Jul 21:50:02 BST 2023 / :
A wealth of information there Theo Which I will add to my notes.
> If you need a place to ask for help on the Pi OS side, I can
> recommend the newsgroup comp.sys.raspberry-pi
Good to know i`ll add it to my News reader.
Thanks for everything Theo, very good of you.
Cheers,
Bob.
--- NewsHound/v1.53-32 RC1
* Origin: None (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441