history clearance for a particular history number in linux
hi
history -c will clear the previous history. ~.bash_history will contain the history commands I want to know how to delete the particular history using the history number. For eg: . . . 440 cd 441 ls 442 history then to delete the 440 th history how can i do it from the command line |
|
thnx neon
how to delete a specific range of history? from 440 to 442 the history has to be deleted...how to do that? |
Quote:
Code:
for i in {442..440}; do history -d $i; done |
All times are GMT -5. The time now is 08:28 PM. |