Nieuws:

Ubuntu-NL weer online!

Na een periode van technische problemen en een overbelaste server zijn we eindelijk weer bereikbaar.
Samen met Hobbynet, onze sponsor en hostingpartner, hebben we een oplossing gevonden zodat alles weer soepel draait.

Bedankt voor jullie geduld en begrip. We hopen nu weer verder te gaan waar we gebleven waren.

Het team van Ubuntu-NL

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: historie terminal wissen  (gelezen 1212 keer)

Offline MRIG

  • Lid
    • Ger Siemerink
historie terminal wissen
« Gepost op: 2010/12/29, 19:05:54 »
Wie weet of en hoe je de historie in de toepassing 'terminalvenster' kunt wissen.
Als ik de pijl omhoog klik kan ik door een hele historie van ingetypte commando's scrollen.
Kan ik die verwijderen?

Re: historie terminal wissen
« Reactie #1 Gepost op: 2010/12/29, 19:12:28 »
Ze worden ergens in een ik geloof een txt bestand opgeslagen. Waar weet ik niet precies.
Desktop:
Processor: Intel® Core™2 Quad CPU Q8300 @ 2.50GHz × 4, Geheugen: 3.9Gb, GPU: nVidia 220GT OS: Windows 7 64 bit / Ubuntu 12.04 64 bit
Notebook:
Processor: Intel® Core™ i7-4700MQ, Geheugen: 8Gb, GPU: nVidia GTX765m (met Optimus) OS: Windows 8 64 bit / Elementary OS Luna 64 bit

Re: historie terminal wissen
« Reactie #2 Gepost op: 2010/12/29, 19:19:10 »
In het bestand .bash_history in uw persoonlijke map dus ;).

Het bestand verwijderen zou moeten volstaan. Misschien dat er ook een commando voor is.

sprokkel

  • Gast
Re: historie terminal wissen
« Reactie #3 Gepost op: 2010/12/29, 19:23:02 »
open de terminal

rm -f ~/.bash_history
history -c

Stop writing to .bash_history for good

Another way to clear history is to delete .bash_history file.
rm -f ~/.bash_history
However, actions on .bash_history will not clear the history of commands
used in the bash session running at that time. That history is stored in
RAM and written to .bash_history when the session ends. The correct way
to clear history is to use 'history -c' because this will clear all
history, including commands used in the session from which the command
'history -c' is given.

If you don’t want to log any history for good, you can do one of two things; turn it off for all users, or turn off logging history for a single user.

Turn off bash history for all users:

Append “unset HISTFILE” to /etc/profile:

# echo "unset HISTFILE" >> /etc/profile

Turn off bash history for a specific user:

Append “unset HISTFILE” to /home/USER/.bash_profile:

# echo "unset HISTFILE" >> /home/USER/.bash_profile
« Laatst bewerkt op: 2010/12/29, 19:27:53 door sprokkel »