I was deleting some files in a directory and without noticing that there was rm typed, i typed clear to empty the terminal. But, that accidentally deleted the command. I have tried to reinstall it, but to no avail:
naveen@naveen-hp:~$ clear
Command 'clear' not found, but can be installed with:
sudo apt install ncurses-bin
naveen@naveen-hp:~$ sudo apt install ncurses-bin
[sudo] password for naveen:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ncurses-bin is already the newest version (6.2-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
naveen@naveen-hp:~$ clear
Command 'clear' not found, but can be installed with:
sudo apt install ncurses-bin
naveen@naveen-hp:~$
I am using Ubuntu 20.04LTS with Gnome. How to restore that command now?
sudo apt install --reinstall ncurses-bin
should reinstall all the components, if you removed one.