Is there a command to identify the name/type of current shell, the path to the shell binary, and the version of the shell?
I don't need all of that, but the more I can get, the better.
I want something that has the same feel of uname
, pwd
, whoami
. Just a plain utility with a simple output. (which so far hasn't showed up :/ )
re ps
$ ps -o comm $$
COMM
-bash
Why -bash
instead of the full path as it would be with everything else? What's the deal with the dash there?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…