I am a beginner with Ubuntu 22.04.2 Desktop. Some of the commands I used before do not work right now, and history is one of them. Previously, I used MobaXterm to only download and upload files. When I used my account on Ubuntu, this is the same message I got from both of them.
Asked
Active
Viewed 2,217 times
1 Answers
2
Based on your screenshot, you are using the sh shell. On Ubuntu systems, /bin/sh is dash, the Debian Almquist shell, which is a lightweight shell that does not provide shell history features.
To switch to Ubuntu's default interactive shell, bash, you can do any one of
type
bashto open a new interactive shell within your sh shelltype
exec bashto replace the current sh shell with bashtype
chsh -s /bin/bashto set your default login shell to bash - you will be prompted to enter your password to confirm the change.
See also Arrow keys, Home, End, tab-complete keys not working in shell
steeldriver
- 142,475
