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)
I'm trying to execute a single shell command that will give me a sorted list of all the users currently logged into the system, displaying the users name as it appears in /etc/passwd.
I've tried
awk -F: '{print $1}' /etc/passwd | xargs finger -s | cut -c11-28 | uniq
This list whoever does... (7 Replies)
I need a command that will list all the users and their last login date & time. I was trying the last command and the who command, but can't get exactly what I need.
I just need the output to be user name and last login date .
Thanks for your help! (3 Replies)
Hi,
Can I get a script to list out all the users, who has not logged on since last 90 days. Last command in not working due due to /var/adm/wtmpx is more than 2 GB.
Thanks in advance.
Regards,
Roni (10 Replies)
i'm sorry if yesterday i posted this thread in unix for dummies forums, :D
i am a newbie in C programming
i want to get active users list and their login time...
i have search and learn about passwd and utmp, but i only can get user list without their login time...
do you have an idea... (2 Replies)
I need to find what users are currently logged onto the system that is easy just a simple who | awk '{ print $1 }' (thats all I need for the part), but I also need to find how long they have been logged on and the total amount of file space they are using.
Thanks in advance, I have been looking... (3 Replies)
How can I get the list of logged in users in the system programmatically?
I can get the list with 'who' or 'users' commands but I need to get the list programmatically...
May someone help, please?
Thanks in advance. (2 Replies)
1. The problem statement, all variables and given/known data:
Show all users who are currently logged in, sorted from earliest to latest log in time. The log in time includes the month, day, and time.
2. Relevant commands, code, scripts, algorithms:
finger, who, sort, pipe, head, tail,
... (8 Replies)
Hi Guys!
I am sure that this question might appeared previously, but I still don't know how to show a list of logged out users. Please help with this!
Thanks in advance:) (5 Replies)
Discussion started by: saloliubliu
5 Replies
LEARN ABOUT MOJAVE
who
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