clear/delete log from 'last' or 'lastlog' command


 
Thread Tools Search this Thread
Operating Systems AIX clear/delete log from 'last' or 'lastlog' command
# 1  
Old 09-05-2009
clear/delete log from 'last' or 'lastlog' command

Dear Friends ,

From 'last' or 'lastlog' command , I can get the last login informations of the users . now as a system admin , If I want to delete the log information from this 'last' 'lastog' command , then is it possible to do ?

plz inform ... ...
# 2  
Old 09-05-2009
you can flush out(make zero byte) /var/adm/wtmp....

But it is not highly recomended
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Clear command help & alias

Hi Folks, When I type clear on my unix prompt on mac terminal, it prints the help menu of a program instead of cleaning the contents of the screen. Also, I have used the following alias command to setup some shortcuts, but soon after I logout and login, these shortcuts doesn't work. alias... (4 Replies)
Discussion started by: jacobs.smith
4 Replies

2. Shell Programming and Scripting

clear command issue

I need to clear the screen after each iteration but i cannot place clear where it needs to go to do that. I just keep clearing the screen before i can even see the choice I make. HWfile=~/home/daftdave/HW2 loop=y while do tput cup 2 15 ; echo "File Menu List" ... (1 Reply)
Discussion started by: noob
1 Replies

3. UNIX for Dummies Questions & Answers

Unix : About options of clear command ?

Hello everyone, My question is quite simple, even if I didn't find an answer. I would want a command (maybe clear with some options ?) that can do the following : clear completely the console, as it is when we start a console for the first time. My problem is that I sometimes display a lot... (5 Replies)
Discussion started by: Ben31400
5 Replies

4. Shell Programming and Scripting

Clear Screen Command for BASH shell

I am unable to use clear or cls command on bash shell. I have recently installed Cygwin and am using that for practicing unix commands. I see that I can use Ctrl + L to clear the screen. I created an alias in my .bashrc to do the same as alias cls='^L' This is how i defined other aliases ... (4 Replies)
Discussion started by: erora
4 Replies

5. Solaris

how to clear command history

hi Any one can help me. I am using Sun_Solaris. The command history set to 100 at .cshrc. I am unable to clear the command histoy. In Linux it is very easy by giving command history -c I could not find any such type command to clear the history. Is there any such type of command for solaris.... (3 Replies)
Discussion started by: prabir
3 Replies

6. UNIX for Dummies Questions & Answers

command not clear

hi, i have an unix command which is as follows: ctmfw /work/CDFC/landing/ZORC.txt CREATE 0 60 1 10 240 I think a txt file called ZORC gets created in the mentioned directory, i am not sure what 0 60 1 10 240 is. Is my understanding correct and also let me know what those numbers denote?... (4 Replies)
Discussion started by: eljcmscrlk
4 Replies

7. UNIX for Dummies Questions & Answers

What command do you use to clear the print que?

Hi, I have a user that has tried to print a job several times and has now filled up the que. How do i delete all the jobs in the que and what is the command?:confused: (1 Reply)
Discussion started by: nov_user
1 Replies

8. UNIX for Advanced & Expert Users

Clear log file in use.

Hai, I have a program which updates the result in a log file, as the program runs 24*7,the size of log file keeps on increasing. Can you help me with a shell command which will clear the content of a log file in use. 1) I tried tail -10 logfile > logfile ( the content is not changed ) 2) >... (10 Replies)
Discussion started by: coolbhai
10 Replies

9. UNIX for Dummies Questions & Answers

Problem with clear command

Hi All I'm currently writing a very simple UNIX script to process some work. The very first thing I do on my script is use the "clear" command. how my file looks... clear echo "Return status: $?" For some strange reason, the return status being returned is 1, not 0 as i expected. ... (2 Replies)
Discussion started by: djkane
2 Replies

10. AIX

Can't clear error log

Hi errclear seems not working on aix 4.3/rs6k, i can't clear HW error with errclear -d H 0 ??? what is wrong ? thanks. (0 Replies)
Discussion started by: andryk
0 Replies
Login or Register to Ask a Question