inxi is a full featured CLI system information tool. It is available in most Linux distribution repositories, and does its best to support the BSDs.
Go to file
inxi-svn 4d59973cd1 New version, new tarball, new man page. Fixed an old bug where if you start inxi with
an ssh command sometimes it will not show any client information, just the debugger 
PPID output. Now it will test as a final check to see if it can detect any parent to
the process. Actually grandparent I believe. Seems to work, it's a fringe case but
why not handle it?

New -xx feature, for -I it will show, if inxi is not running in IRC client and if 
is running in X, and if the grandparent is not 'login', will show the application
the shell is running in.

Example: 
Info:      Processes: 271 Uptime: 5:36 Memory: 3255.8/4048.5MB Runlevel: 3 
           Gcc sys: 4.7.2 alt: 4.0/4.2/4.4/4.5/4.6 
                      Client: Shell (bash 4.2.37 - started in konsole) inxi: 1.8.33
2013-01-29 00:03:06 +00:00
inxi New version, new tarball, new man page. Fixed an old bug where if you start inxi with 2013-01-29 00:03:06 +00:00
inxi.1 New version, new tarball, new man page. Fixed an old bug where if you start inxi with 2013-01-29 00:03:06 +00:00
inxi.changelog New version, new tarball, new man page. Fixed an old bug where if you start inxi with 2013-01-29 00:03:06 +00:00