Write a linux shell program to perform find the number of users who have logged in

Find the number of users who have logged in

Code:

clear 
echo ----------------- 
echo '\tLogin' 
echo ----------------- 
echo The number of  users loggin in are 
who | wc -l

Output:

----------------- 
Login 
----------------- 
The number of users loggin in are 

2 comments:

Powered by Blogger.