Sample Header Ad - 728x90

Kill current bash shell and start a new one with some command

0 votes
2 answers
79 views
is it possible to kill/exit the current bash shell and start a new one with some command? Something like kill -9 $PPID && bash -c echo 'I started new!' which does not work obviously.
Asked by Juergen (101 rep)
Mar 18, 2025, 09:37 AM
Last activity: Mar 18, 2025, 03:56 PM