displaying the users


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers displaying the users
# 1  
Old 09-13-2007
displaying the users

how can i list the users( and only those users) who logged in more than once? thanks in advance...
# 2  
Old 09-13-2007
Code:
who -q | sed '$d' | tr ' ' '\n' | sort | uniq -c | awk '$1 > 1 {print $2}'

Cheers,
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

2. Red Hat

Showing all users in 'users' and 'top' commands

Hi All, I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

3. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

4. Shell Programming and Scripting

need help with displaying only names using ls -l

Hi I am kind of stuck I need help with printing only the names of the folder in the format LAST NAME, F so last name and the first character of first name using ls -l command in the /home directory currently they are in the format firstname.lastname please advice (4 Replies)
Discussion started by: classic
4 Replies

5. UNIX for Dummies Questions & Answers

Denyhosts displaying warning message for users blocked

Hi, I have a dilemma.I am running denyhosts on one of our servers and it monitors illegal ssh/ftp loggins. I am running vsftpd. My manager though has put an additional requirement on me. When someone is blocked my denyhosts he want an error message to be displayed: " YOUR ACCOUNT HAS BEEN... (0 Replies)
Discussion started by: mojoman
0 Replies

6. Shell Programming and Scripting

searching and displaying help

I have two input files like this: File-1 ----- a1234 abc town f2345 def village t5678 pqr county File-2 ------ 123456 test1 test2 test3 id-a1234 789012 test2 test4 id-t5678 456789 test7 id-b1234 I want to check the lines that match the first field of File-1 in... (7 Replies)
Discussion started by: ajay41aj
7 Replies

7. Shell Programming and Scripting

Displaying the processes of users

Hi guys, I'm writing a script to display all the current logged on users and the processes they're running, output to a file. The output will look similar to this: User1 (Real name not login name) PID TTY TIME CMD 3179 pts/3 00:00:00 vim User2 PID TTY TIME ... (2 Replies)
Discussion started by: olimiles
2 Replies

8. Solaris

Characters not displaying

Hi, Does anyone know what i need to do to get the 'é' character to display on a Solaris 9 server. When i try to cut and paste it onto some of my machines via telnet it displays an 'i' but other machines with the same OS version are ok. It also doesn't like Japanese Characters. Any help would be... (0 Replies)
Discussion started by: mwfisher
0 Replies

9. UNIX for Dummies Questions & Answers

displaying with ls

hi, how can display year parameter also while listing files from a directory?it displyas only if last acces sis more than 1 yr i guess.can it be dispalyed using some option or some method? thanks and regards vivek.s (2 Replies)
Discussion started by: vivekshankar
2 Replies

10. SCO

vi editor not displaying?

Hi guys, I have changed some path in the vi .profile and then i shutdown the system and when i reboot it i was unable to use vi. It is showing vi not found.Likewise for few other commands also. How to solve this problem and make vi work again. Plz. do provide the answer it is... (3 Replies)
Discussion started by: ananthu_m
3 Replies
Login or Register to Ask a Question