[Linux] I want to know the date when the user logged in

You can check who recently logged in with the last command. You can use grep to see when a particular user logged in.

# last |grep username

If you only want to know the "last logged in date", use the lastlog command. You can also extract specific users with grep.

# lastlog |grep username

Recommended Posts

[Linux] I want to know the date when the user logged in
[Python] I want to know the variables in the function when an error occurs!
I want to know how LINUX works!
I want to know the population of each country in the world.
I want to display the progress in Python!
[Django memo] I want to set the login user information in the form in advance
I want to write in Python! (3) Utilize the mock
I want to use the R dataset in python
I want to do something in Python when I finish
I want to be notified when the command operation is completed on linux!
Convenient Linux keyboard operation that I want to teach myself when I was in school
I want to know the features of Python and pip
I want to make the Dictionary type in the List unique
I want to align the significant figures in the Numpy array
I want to know the legend of the IT technology world
I didn't want to write the AWS key in the program
I want to know the weather with LINE bot feat.Heroku + Python
Automatically acquire the operation log in the terminal when logging in to Linux
I want to run the Python GUI when starting Raspberry Pi
LINEbot development, I want to check the operation in the local environment
I want to make the second line the column name in pandas
I want to pass the G test in one month Day 1
I want to pin Spyder to the taskbar
I want to output to the console coolly
I want to print in a comprehension
I want to handle the rhyme part1
I want to handle the rhyme part3
I want to use Linux on mac
I want to display the progress bar
I want to embed Matplotlib in PySimpleGUI
I want to handle the rhyme part2
I want to handle the rhyme part5
I want to handle the rhyme part4
I want to change the color by clicking the scatter point in matplotlib
[C language] I want to generate random numbers in the specified range
Python Note: When you want to know the attributes of an object
I want to batch convert the result of "string" .split () in Python
I want to explain the abstract class (ABCmeta) of Python in detail.
I want to sort a list in the order of other lists
I want to use the Django Debug Toolbar in my Ajax application
I want to leave an arbitrary command in the command history of Shell
I want to pin Datetime.now in Django tests
I want to create a window in Python
When you want to update the chrome driver.
I want to handle the rhyme part7 (BOW)
I want to store DB information in list
I want to merge nested dicts in Python
I want to log file I / O on Linux
I want to customize the appearance of zabbix
I want to use the activation function Mish
I want to visualize where and how many people are in the factory
I want to use Python in the environment of pyenv + pipenv on Windows 10
I stumbled on the character code when converting CSV to JSON in Python
I want to set a life cycle in the task definition of ECS
I want to see a list of WebDAV files in the Requests module
Linux: Netplan configuration guide to see when you want to fix the IP address
I want to store the result of% time, %% time, etc. in an object (variable)
I want to get the file name, line number, and function name in Python 3.4
I referred to it when I got stuck in the django geodjango tutorial (editing)
I want to write in Python! (1) Code format check
I want to see the file name from DataLoader