I'd like to write a script to identify current users on the sytem with an indication of the actions they are performing. I only want to identify the users. Can someone please help?
The command 'who -ap' will list all the users currently logged in the system.
for more info on who, pls do type 'man who' on ur terminal.
now as per ur requirement, u can write a script mentioning the cmd inside and accordingly cut the output depending on ur requirement.