Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-16-2005, 12:48 PM   #1
LQ Newbie
Registered: Mar 2002
Posts: 14

Rep: Reputation: 0
Prevent history logging

Is there anyway to prevent entries from being written to the history log. I share an account with several other people on the system and would like to prevent the other users from seeing my entries in the history log.
Old 02-17-2005, 08:47 AM   #2
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Yes, there are ways of stopping this, it depends on your shell.

I'd suggest figuring out what shell you use then typing 'man ( the shell you use )'
Old 03-08-2005, 09:59 PM   #3
LQ Newbie
Registered: Mar 2002
Posts: 14

Original Poster
Rep: Reputation: 0
I'm using the Korn shell, but there doesn't seem to be an easy way to prevent entries to the history file.

In Solaris, I can easily prevent history entries by utilizing the Bourne shell.
Old 03-08-2005, 11:26 PM   #4
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Reading the man-page should have helped ...

I found an entry for HISTSIZE ... default is 128. If you
did something like export HISTSIZE=0 that should actually
disable the history (between sessions anyway). Just a
guess, can't be bothered to fire up ksh and play with it ;}



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache: prevent logging certain URLs ? michaelsanford Linux - Software 1 07-22-2005 07:48 PM
Prevent a user from logging into X? sorrodos Linux - Security 6 06-26-2004 03:30 PM
How to find back "history" database after "history -c" ? san_lss Linux - Newbie 1 01-07-2004 11:53 AM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM
terminal history logging alue Linux - General 4 03-15-2002 01:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration