Write a shell scripts that finds total no. of users and finds out how many of them are currently loggedin
total=`cat /etc/passwd | wc -l` cur_log=`who | wc -l` echo "Total users : $total" echo "Currently logged : $cur_log"