You are not logged in.

#1 2025-07-22 00:41:53

Lr2bej77n892lio
Member
Registered: 2025-04-30
Posts: 20

[SOLVED] How to disable bash history in TTY

I've disabled my bash history, so while records are deleted and no longer saved in gui environment, they're still being recorded and saved in TTY(ctrl+alt+f3)

export HISTSIZE=0
delete bash history txt file.

Are there any settings I still need to configure?
Pardon my ignorance..

Last edited by Lr2bej77n892lio (2025-07-23 02:08:13)

Offline

#2 2025-07-22 06:03:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,204

Re: [SOLVED] How to disable bash history in TTY

no longer saved in gui environment, they're still being recorded and saved in TTY(ctrl+alt+f3)

Where do you export this?
https://wiki.archlinux.org/title/Bash#C … tion_files - the tty logins will be login shells.

Offline

#3 2025-07-23 02:07:57

Lr2bej77n892lio
Member
Registered: 2025-04-30
Posts: 20

Re: [SOLVED] How to disable bash history in TTY

Where do you export this?

Only ~/.bashrc
The problem is solved when I also added it to /etc/profile.

Thanks for answering my silly question.
I appreciate your help.

Offline

Board footer

Powered by FluxBB