On Friday 27 August 2004 06.20, Ti Kan wrote:
nhaas writes:
Hi I have a lot of logins to my box. What command can I use to look and see if there is a user login? Like if I want to find jack I can type "ja" and all of the users will show up that start with "ja"
grep "^ja" /etc/passwd
will show all logins that begin with "ja".
-Ti
If you want the users currently logged on: who |grep "^ja" or users |grep "^ja" check manpages for more nice switches to both -- /Rikard ------------------------------------------------------------------------------------ Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com Mob : +46 735 05 51 01 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >