-
script to keep trackk of my last login
Hi,
I would like to edit my .bashrc to help me keep track of when I last logged on. I have my image set on my hard drive so my home directory is permanant. Now, I would like whenever I log it for the script to tell me when was the lat time I logged in, how many times I have loged in so far and record my new login time.
I was thinking of using a file to record the login date and a login counter but I don't know how to overwrite a file at every login with the new informatiion. Nor do I know how to read a file at log in to capture this information... Any ideas?
Thanks,
Similar Threads
-
By torbu in forum General Support
Replies: 2
Last Post: 05-16-2004, 11:33 AM
-
By turbines in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 04-17-2004, 04:40 PM
-
By bonecrusher in forum General Support
Replies: 1
Last Post: 03-05-2004, 11:17 AM
-
By lindros in forum General Support
Replies: 10
Last Post: 07-24-2003, 08:26 PM
-
By punk000 in forum General Support
Replies: 3
Last Post: 02-26-2003, 07:02 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151
$79.99

INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR
$23.00

AMD Ryzen 5 7600X 6-Core 4.7GHz CPU Socket AM5 32MB L3 6MB L2
$120.00

INTEL CORE I7-9700K PROCESSOR | 3.60GHZ | SRG15
$89.99

Intel SRG13 Core i7-9700 3.00GHz Socket 1151 8 Core CPU Processor LGA1151
$77.99

AMD Ryzen 5 5600X Desktop Processor (3.7GHz, 6 Cores, AM4 CPU) 100-100000065
$135.00

Intel Core i9-9900 3.10GHz CPU Processor SRG18
$165.00

Intel Core i5-7500 SR335 3.4GHz 4-Core LGA 1151 CPU PROCESSOR
$13.69

*Brand New-Sealed* AMD Ryzen 9 9950X3D2 Dual Ed. 4.3GHz 16Core AM5 (Bulk+Fast)
$790.00

Intel Core i7-11700F SRKNR 2.5GHz 8-Core 16MB CPU Processor Socket LGA1200
$149.99