Q. How do I find out who is logged in and what they are doing?
A. On a FreeBSD, many users will be sharing the same system. If you want to find out if your friend or a coworker is logged in or not on FreeBSD, then you can use following commands.
Please note that following commands works with Linux and other UNIX like oses.
Task:Display who is on the system
To display who is on the system type following command at shell prompt:
$ who | grep vivek
$ who | less
The who utility displays information about currently logged in users. By default, this includes the login name, tty name, date and time of login and remote hostname if not local.
Task: Find out what user doing
You use w command to display who is logged in and what they are doing:
You can use the last utility to display either list the sessions of specified users, ttys,
and hosts, in reverse time order, or list the users logged in at a specified date and time.
$ last $ last root
See also:TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!
- 30 Cool Open Source Software I Discovered in 2013
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012
- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop