History command | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

History command

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-08-2013
mastansaheb mastansaheb is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 3 March 2014, 1:03 PM EST
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
History command

Hi,

I would like to know commands which i have executed on terminal should not be present in the history.How can i approch please help me.


Regards,
Mastan
Sponsored Links
    #2  
Old 02-08-2013
./hari.sh's Avatar
./hari.sh ./hari.sh is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 17 January 2014, 5:27 AM EST
Posts: 97
Thanks: 6
Thanked 4 Times in 4 Posts
Add the following line to your .bashrc file

HISTCONTROL=ignorespace

By doing this, the commands you don't want to record in history can be escaped by adding a space in the beginning
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
History command Mariappan.m AIX 1 06-26-2012 01:52 PM
The history command: See other users command history iamnew2solaris UNIX for Dummies Questions & Answers 1 09-24-2011 04:56 PM
using command history bruno69 UNIX for Dummies Questions & Answers 1 01-22-2011 07:31 AM
vi command history cokedude UNIX for Dummies Questions & Answers 5 02-23-2010 01:53 AM
History Command ma466 Shell Programming and Scripting 6 12-06-2008 05:23 AM



All times are GMT -4. The time now is 11:33 AM.