You are not logged in.
Pages: 1
Hi,
Been using Gnome terminal emulator and I can use the up arrow key to see the last command I wrote. Why can't I do this in the xfce emulator?
Thanks.
Offline
Hello and welcome!
My guess is you don't have HISTSIZE and/or HISTFILESIZE set in your ~/.bashrc file. Here's the top half of mine:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
Now with these settings if I want to see what entered 996 commands ago, I can just press the up arrow 996 times. Why the heck I set it that big I'll never know!
Last edited by MrEen (2020-06-22 18:09:46)
Offline
Pages: 1
[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 515.53 KiB (Peak: 529.01 KiB) ]