Saturday, April 27, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 14426  / 3 Years ago, mon, june 7, 2021, 6:36:02

I have Ubuntu 10.04.4 LTS running on a proxmox OpenVZ container.



I imagine it does not come with history because the up arrow on the command line gives me ^[[A



plus...



$ history
-sh: history: not found


But I get this when I trying to install.



$ sudo apt-get install history
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package history


What is the correct package name I need to install to get history working?


More From » command-line

 Answers
0

The history command is a feature of bash. For some reason, Your system might be running dash instead of bash. Perhaps, you need to change your login shell to /bin/bash (should have been the default). Type the below command in terminal:



chsh -s /bin/bash


Then, log out and log in.



If you did not install bash in your system, you can install it by the command:



sudo apt-get install bash


Although, you can use other shell like zsh or tcsh (including history).


[#36769] Monday, June 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
coffekne

Total Points: 114
Total Questions: 122
Total Answers: 126

Location: Mauritania
Member since Sun, Oct 17, 2021
3 Years ago
;