System Information Variable Help

Hey,

I am after the commands to get the following information for my Unix system:

default visual editor (i dont even know where to start with this one)
default window manager (this one either, no idea)
total quota (just the size, none of the other data. I've narrowed it down to quota -sv)
remaining quota (just the size, none of the other data. same as above)
last login time+date and pc it was on (nothing else)

I have attempted grep commands, finger, quota etc. but I am stuck.

I am using bash and Solaris. I have spent a good 8 hours looking for anything regarding output etc. and I am damn well stumped. Any help is appreciated.

Thanks in advance,
Bonjour.

Hi,
For the default editor try echo'ing $EDITOR if it is set, for the last login its the command ... last!(eg. last root | tail -1) which is also shown after you've just logged in.
For the default window manager, you may have to grep for SESSION keyword (eg. env | grep -i session and gives GDMSESSION,GNOME_DESKTOP_SESSION_ID,etc...) that did the trick on linux, hope it will work for your solaris as well