Linux / UNIX find out what other users are doing?

Linux / UNIX find out what other users are doing?

There are several tools and techniques that you can use to find out what other users are doing on a Linux or Unix system. However, keep in mind that many of these tools and techniques require special privileges or access to sensitive system resources, and should be used with caution.

One way to find out what other users are doing is to use the who command, which displays a list of users who are currently logged in to the system. For example:

who
Sour‮c‬e:www.lautturi.com

This command will display a list of users, along with their login time, terminal, and IP address.

Another way to find out what other users are doing is to use the ps command, which displays a list of processes currently running on the system. For example:

ps aux

This command will display a list of processes, along with their process ID, owner, and command line arguments. You can use the -u option to display only the processes owned by a specific user, or the -f option to display the full command line for each process.

You can also use the top command, which displays a dynamic, real-time view of the system's processes. For example:

top

This command will display a list of processes sorted by CPU or memory usage, along with their process ID, owner, and command line arguments. You can use the u option to display only the processes owned by a specific user.

Keep in mind that these commands may not provide complete or accurate information about what other users are doing on the system, and may not be suitable for all situations. For more information about using these or other tools to monitor system activity, you can consult the relevant documentation or seek assistance from a qualified Linux or Unix administrator.

Created Time:2017-10-29 22:08:55  Author:lautturi