LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is the command for finding the last 3 times the user had logged into the system? (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-command-for-finding-the-last-3-times-the-user-had-logged-into-the-system-222968/)

Linux_interest 08-27-2004 03:01 AM

What is the command for finding the last 3 times the user had logged into the system?
 
Hello

I am a newbie to linux/Unix, and was wondering how we could find the last 3 logins that the user had made into the system?

Help at the earliest would be really appreciated.

Thanks Heaps

Cheers
John

ppuru 08-27-2004 03:12 AM

you can use the last command to find a list of logins. Here is a command that will
give you the last 3 logins

# last|grep <username>|head -3

Linux_interest 08-27-2004 03:38 AM

what is the command for setting what you deem to be a safe umask
 
hello

thanks heaps ppuru. That helped a lot.

I got one more doubt, i really do not understand umask thing.

What is the command for setting what you deem to be a safe umask and why is this umask suitable with reference to sort of system you would use it in.

ppuru 08-27-2004 05:02 AM

well the obvious command is umask
The default is 0022 in most cases which creates files with 644 (rw-r-r). RedHat uses 0002 and creates rw-rw-r. 0666 - 0022=0644 which is -rw-r--r--



All times are GMT -5. The time now is 07:28 PM.