Debug School

rakesh kumar
rakesh kumar

Posted on

How to find how many users logged in partiular server or ipaddress using linux ommand

You can use the who command in Linux to find the users who are currently logged in to a particular server or IP address. Here's how to use the command:

Open the terminal on your Linux system.

who
Enter fullscreen mode Exit fullscreen mode

and press enter. This will display a list of users who are currently logged in to the system.

If you want to find out who is logged in to a specific server or IP address, you can use the ssh command to connect to that server first, and then run the who command on that server. For example, if you want to find out who is logged in to a server with the IP address 192.168.1.100, you can run the following command:

ssh 192.168.1.100 who
Enter fullscreen mode Exit fullscreen mode

how to find how many users logged in partiular server or ipaddress on date

last -i -F -t 20230210000000 192.168.1.100
Enter fullscreen mode Exit fullscreen mode
last -F -t 20230115133000 webserver
Enter fullscreen mode Exit fullscreen mode
last -i -F -t YYYYMMDDHHMMSS IP_ADDRESS
Enter fullscreen mode Exit fullscreen mode

Top comments (0)