I need to be able to show the following information
Distro Name:
Uptime:
Last Boot:
Current Users:
Distro Name - I'm able to show Debian Linux/GNU 6.0 - but I just want it to show Debian 6.0 or whatever OS I'm currently using.
For "Last Boot", i'm using this print(exec("who -b")); however, I only want it to show the date and time, and not 'system boot' or anything else.
I can't figure out how to show how many users are logged into the server like 'top' shows.
Show server information
Moderator: General Moderators
Re: Show server information
The uptime command will show how long the machine has been up, as well as the number of current users.