Logo 
Search:

Unix / Linux / Ubuntu Answers

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds
  Question Asked By: Amit Singh   on Aug 08 In Unix / Linux / Ubuntu Category.

  
Question Answered By: Kirtiranjan Sahoo   on Aug 08

#!/bin/bash

log=`who | sort -n | cut -d" " -f1 | head -1`
echo "The $log user currently logged in to your server"

Share: