Shell access

Advanced feature discussion, beta programs and unsupported "Labs" features.
7 posts Page 1 of 1
by pv » Thu Mar 28, 2024 1:34 pm
I hadn't used shell since the switchover to zhs; how to get out of my local 'macbkpro:~ peedu2' now? Running `chsh -s /bin/zsh` locally doesn't do it.
by seth.lohr » Fri Mar 29, 2024 7:39 am
To make sure I understand you correctly, this is *not an issue on the shell access server (based on the fact that your command line prompt is "macbkpro")? I don't see you logged in there, so just making sure I understand the scope correctly.
For clarification, the prompt at the Sonic shell server looks like this:
$ whoami
by pv » Sun Mar 31, 2024 6:20 pm
Put another way: i don't remembeer what to write

macbkpro:~ peedu2$ here

to jump out to's zsh layer, for account 'pv', after which running 'chsh -s /bin/zsh' could do its job.
by seth.lohr » Mon Apr 01, 2024 6:35 am
First step is confirming what shell you're in. Please try these several methods and paste their output:

echo $SHELL

echo $0

ps -p $$

cat /etc/shells

It should as simple as typing 'sh' or 'zsh' to switch back and forth between the shells.
by seth.lohr » Tue Apr 02, 2024 7:11 am
pv, did the above work for you?
by pv » Tue Apr 02, 2024 10:15 am

macbkpro:~ peedu2$ echo $SHELL
macbkpro:~ peedu2$ echo $0
macbkpro:~ peedu2$ ps -p $$
2700 ttys000 0:00.01 -bash
macbkpro:~ peedu2$ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.


macbkpro:~ peedu2$


What next?
by pv » Tue Apr 02, 2024 10:23 am
whoops! I was expecting not to see local point of departure, but I just tried a 'whois' and realized I was there...

Thank you, Seth!
7 posts Page 1 of 1

Who is online

In total there is 1 user online :: 1 registered, 0 hidden and 0 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: Google [Bot] and 0 guests