How can I tell which Unix shell I am using? [duplicate] February 1, 2023 by Tarik Try: echo $0 This often works across a range of shells.