For educational purposes, i aquired and installed a linux distro ( ubuntu server ).

I thought about writing some scripts in VI to make others ssh'ing into it's lives easier.

They will be using the bash shell so it must work in Bash.

1st script idea.
I want it to display the users last login date/time as well as users last logout date/time. Then it should display under that the pcurrent server's name connected to, and the actual date when they connected.

I forget how you make scripts ignore commands ir unput variables, wasnt it like $username, etc.

2nd script idea.
Because of the nature of my servers usage. i want a script that will display all the executable files for them in order of last modification.

this one is like a pipe to | sort or something.

3rd script
Id like them to have a script that creates a tree looking output into terminal with whatever directory they are currently in at the top and sub directories underneath.

ex.

~burdan
my files
my pictures

i dont know how id go about with this one, still learning console commands. Any help with these would be aprpeciated. My level of knowledge with unix and Bash are moderate.