Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Avoid to keep command in history

Is there a facility to skip history for some commands in Linux?

How can I skip history for a login?

When I login as user abc, I don't want my machine to save commands history for user abc.

share|improve this question

marked as duplicate by splattne Jan 1 '12 at 15:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 2 down vote accepted

You can use export the HISTIGNORE variable for this user. Have a look at this. To make it permanent, you need to export it in a file like ~/.bashrc.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.