FG

How can I enable the bash command history?

Fresh3 days ago
Mar 15, 202655988 views
Confidence Score0%
0%

Problem

I am using bash shell on SUSE Linux Enterprise 10 sp1. The bash history was disabled by somebody. That means I can't get the previous command by pressing the UP key. I want to enable the command history. How can I do this?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I enable the bash command history?

Low Risk

At a Bash prompt, type the following commands and do the steps listed after each one: If you get "history off" then add this line at the end of your : Next try: If the first one is blank or , add this line to the end of your : If either of the last …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment