Practical no-10
#!/bin/bash
echo
"1. all user list"
echo
"2.current user"
echo
"3.count logged users"
printf
"Enter choice:"read choice
if
[$choice==1];
then
Who
-h
Fi
if
[$choice==2];
then
who
am i
fi
if
[$choice==3];
then
echo
"Total users loged in:"
fi
OUTPUT
***********
[root@LINTEL]$
sh user.sh
1.
all user list
2.
current user
3.
count logged user
Enter
choice:2
Root
No comments:
Post a Comment