USERS(1) BSD General Commands Manual USERS(1)NAME
users -- list current users
SYNOPSIS
users
DESCRIPTION
users lists the login names of the users currently on the system, in sorted order, space separated, on a single line.
FILES
/var/run/utmpx
SEE ALSO finger(1), last(1), who(1), utmpx(5)HISTORY
The users command appeared in 3.0BSD.
3rd Berkeley Distribution June 6, 1993 3rd Berkeley Distribution
Check Out this Related Man Page
LAST(1) BSD General Commands Manual LAST(1)NAME
last -- indicate last logins of users and ttys
SYNOPSIS
last [-n] [-h host] [-t tty] [user ...]
DESCRIPTION
Last will list the sessions of specified users, ttys, and hosts, in reverse time order. Each line of output contains the user name, the tty
from which the session was conducted, any hostname, the start and stop times for the session, and the duration of the session. If the ses-
sion is still continuing or was cut short by a crash or shutdown, last will so indicate.
-n Limits the report to n lines.
-h host Host names may be names or internet numbers.
-t tty Specify the tty. Tty names may be given fully or abbreviated, for example, ``last -t 03'' is equivalent to ``last -t tty03''.
If multiple arguments are given, the information which applies to any of the arguments is printed, e.g., ``last root -t console'' would list
all of ``root's'' sessions as well as all sessions on the console terminal. If no users, hostnames or terminals are specified, last prints a
record of all logins and logouts.
The pseudo-user reboot logs in at reboots of the system, thus ``last reboot'' will give an indication of mean time between reboot.
If last is interrupted, it indicates to what date the search has progressed. If interrupted with a quit signal last indicates how far the
search has progressed and then continues.
SEE ALSO lastcomm(1), utmpx(5), ac(8)HISTORY
Last appeared in 3.0BSD.
4th Berkeley Distribution June 6, 1993 4th Berkeley Distribution
Hi there,
I am wondering if by logging in to a unix system, if it is possible to get the IP address of the machine I am connecting FROM.
I know how I can do this using the name server, but is this possible without a host lookup?:confused:
Thanks,
-ghoti (15 Replies)
Hi All,
I am trying to write a script to list all users and their processes. I cant seem to find out how to link the PID to the user. For example if i run ps -a I get a nice list of all the processes running and their PID, but no information about which user is running them.
If i use w i... (17 Replies)
Thx for all the help so far, I really appreciate it, this is the last task I have to do then I am no longer a trainee ^^, which means I can use whatever utility I want. :O
I need to write a script that does more or less what is shown below.
The Users Name
PID TTY TIME CMD
12345 pts/3... (22 Replies)
Hi guys,
I've a simple linux script (made by my friend), which adds users to the system from userlist file. it also creates user home dir and copies certain files to the directory. To be honest, am a newbie in scripting so am unable to fully understand how the script is working. unfortunately,... (30 Replies)
Hello all:
I will include a "requirement" for an issue I am attempting to solve for my boss. Basically, he would like to know if there is a way to prevent users and owner from editing 'write' script in Vi.
- While working in Unix Vi, users would be able to keep all the previous versions... (15 Replies)
Hi All, my script.sh has the below lines, and i need to run the script as root or wam. please tell me if this will work
#!/bin/bash
sudo -t wam /usr/local/wam/stopwam -r ------- this needs run as wam user
/usr/local/web/stopweb -a --- this needs to run as... (18 Replies)
Our moderators/admins/users are doing great job by sharing knowledge with each other, they do correct/appreciate us in posts.
This poll is to encourage emerging users to go in a better direction, kindly do give your thoughts on same.
1- Giving them a reward/appreciation if they are... (31 Replies)
Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following: ssh -t hostname "bash --noprofile" Is there a way to... (32 Replies)