![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| clear passwd history without ... | A Stewart | UNIX for Advanced & Expert Users | 4 | 05-27-2005 07:56 AM |
| Please help me clear up some confusion | RoY_mUnSoN | UNIX for Dummies Questions & Answers | 2 | 02-25-2004 01:39 PM |
| clear memory | fenomen | UNIX for Dummies Questions & Answers | 2 | 06-24-2003 06:33 AM |
| clear screen | immanuelgangte | High Level Programming | 6 | 08-02-2002 09:09 AM |
| How to clear screen | giannicello | High Level Programming | 2 | 05-14-2002 01:32 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi...
i have one doubt pls... 1)can we clear the command line history in UNIX for a paricular login(scadm/root)if so how?. 2) can we see the time at which command executed. history is showing like : 100 display 101 lock 102 exit Last edited by gincemathew; 07-16-2006 at 10:54 AM. |
| Forum Sponsor | ||
|
|
|
|||
|
tcsh supports this. ksh on most systems does not. ksh on AIX does support the timestamp. There maybe others though. This is really only there for convenience and should not be used as an absolute audit trail.
|
|
|||
|
How to remove " Previously executed command reference or line number"
Hi
Thanks for all your replies , Even you can edit ( vi ) the ".sh_history" file and remove the lines which you don't want to be shown when the $history command is issued , But if you Observe when using history command it shows something like this. 213 df -g / 214 ls 215 lscfg if you edit the ".sh_history" file and delete few lines of commands which are executed previously, when you issue the history command those commands issued are not shown because we edited the file and deleted them. But that command reference line number ( like 213 and whatever ) are shown, How to remove these line numbers also " instead of truncating " the whole file...? Thanks & Regards Rajesh. |
|||
| Google UNIX.COM |