LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   last command. (https://www.linuxquestions.org/questions/linux-enterprise-47/last-command-4175534489/)

manoj.linux 02-18-2015 11:36 PM

last command.
 
Hi,

can we increase the duration of last command, so that it will show login and logout of users for more duration?

for example:- if it is showing now 1 month, it will show 3 months.

also I would like to know apart from last command where OS will capture the data of login and logout?

pan64 02-19-2015 12:23 AM

see man last, and you will find: it uses the file /var/log/wtmp and -n to specify the number of lines to print


All times are GMT -5. The time now is 08:37 PM.