03-01-2009
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to find out the last time all users have logged in or out. I tried the last command, but it could not find the wtmp file in /var/adm (I searched in othe directories also). This is an AIX rs6000 4.2.1 system. We are moving our applications from this system to an AIX 5.2 system and I... (11 Replies)
Discussion started by: jyoung
11 Replies
2. Shell Programming and Scripting
Working in AIX (so no date -d)
How can i display all the users who have not logged in for more than 40 days?
A small quick script would be usefull, my scripts are always taking to long to execute, even before they are finished.
Many thanks! (5 Replies)
Discussion started by: ughosting
5 Replies
3. UNIX for Advanced & Expert Users
Hi
I am using mailx to send email and am wondering if there is a way I can send the email from a different user than the user logged in.
something like do-not-reply@xyz.com
Thank you. (1 Reply)
Discussion started by: rakeshou
1 Replies
4. UNIX for Dummies Questions & Answers
Hi all..
I was trying to do a little shell script, that would list users and their login times, lets say like last 5 days.
But I couldnt figure out how to count users login times from previous days. Any tips?
Funny that nobody has do this kinda script before, or atleast I couldnt find on... (2 Replies)
Discussion started by: Kimmo_
2 Replies
5. UNIX Desktop Questions & Answers
how can i know which users have logged in at specified given start and end time in 24 hour format? (3 Replies)
Discussion started by: meherzad4u
3 Replies
6. Shell Programming and Scripting
Hello all,
I want to display all the user logged last week and know the time tnat they are connected. I have been looking for a solution in the Forum, but I didn't find.
Thanks in advance (4 Replies)
Discussion started by: ahernandez
4 Replies
7. UNIX for Dummies Questions & Answers
Hi all
So I am thinking my inability to cope with math is bogging me down here so Im asking for help.
I want to determine how long a user has been logged on for by using the date and who commands to determine the time they have been logge don.
My problem is that I keep getting the wrong... (2 Replies)
Discussion started by: losingit
2 Replies
8. Shell Programming and Scripting
Suppose user 'asdf' is not logged into server 'bbbb', but the server is up. User 'asdf' has cron job. Will it be executed? (1 Reply)
Discussion started by: thulasidharan2k
1 Replies
9. Red Hat
How do I confirm if a user logged in, is remote or local? In the case if the user is remote, how to be sure what authentication/method is it using, like LDAP, NIS or other? (2 Replies)
Discussion started by: kirtikjr
2 Replies
10. Shell Programming and Scripting
help me (1 Reply)
Discussion started by: sonu pandey
1 Replies
WHO(1) BSD General Commands Manual WHO(1)
NAME
who -- display who is logged in
SYNOPSIS
who [-abdHlmpqrsTtu] [file]
who am i
DESCRIPTION
The who utility displays a list of all users currently logged on, showing for each user the login name, tty name, the date and time of login,
and hostname if not local.
Available options:
-a Same as -bdlprTtu.
-b Time of last system boot.
-d Print dead processes.
-H Write column headings above the regular output.
-l Print system login processes (unsupported).
-m Only print information about the current terminal. This is the POSIX way of saying who am i.
-p Print active processes spawned by launchd(8) (unsupported).
-q ``Quick mode'': List only the names and the number of users currently logged on. When this option is used, all other options are
ignored.
-r Print the current runlevel. This is meaningless on Mac OS X.
-s List only the name, line and time fields. This is the default.
-T Print a character after the user name indicating the state of the terminal line: '+' if the terminal is writable; '-' if it is not; and
'?' if a bad line is encountered.
-t Print last system clock change (unsupported).
-u Print the idle time for each user, and the associated process ID.
am I Returns the invoker's real user name.
file By default, who gathers information from the file /var/run/utmpx. An alternative file may be specified.
FILES
/var/run/utmpx
SEE ALSO
last(1), mesg(1), users(1), getuid(2), utmpx(5)
STANDARDS
The who utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
A who utility appeared in Version 6 AT&T UNIX.
BSD
January 17, 2007 BSD