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 sh.sonic.net 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:
_[<path>]_(<user>@sh)_
$ whoami
<user>
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 sonic.net'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
OK:

macbkpro:~ peedu2$ echo $SHELL
/bin/bash
macbkpro:~ peedu2$ echo $0
-bash
macbkpro:~ peedu2$ ps -p $$
PID TTY TIME CMD
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.

/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

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 are 39 users online :: 0 registered, 0 hidden and 39 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: No registered users and 39 guests