我正在删除目录中的一些文件,但没有注意到输入了 rm,我输入了 clear 以清空终端。但是,那不小心删除了命令。我试图重新安装它,但无济于事:
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:~$
我正在使用带有 Gnome 的 Ubuntu 20.04LTS。现在如何恢复该命令?
sudo apt install --reinstall ncurses-bin
应该重新安装所有组件,如果您删除了一个。